-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1234 Protoype Access in :: Operator #1590
Conversation
…ccess node before any additional property accesses
…oncat into Value#add; removed unnecessary INDEX_PROTO
Here's a full diff of the entire patch (since the diff in Commits <> only shows the changes between the last two commits). |
Nice to see progress :] I wonder, why do you gist a diff and not commit to a fork? |
@Dykam I will if that makes life easier for the |
I see all 3 commits and a combined diff. No idea what you guys are talking about. |
The diff didn't get on the mail, so I looked over it, never mind. |
class A | ||
b: (arr) -> | ||
eq this.toString(), nonce | ||
toString: -> nonce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be a little less confusing:
class C
method: -> @nonce
nonce: nonce
arr = []
eq nonce, C::method arr... # should be applied to `C::`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes -- that looks better. I'll update in a moment :)
Awesome patch, @geraldalewis. LGTM. |
Thanks to you @michaelficarra :) |
Gorgeous patch. |
#1234 Protoype Access in :: Operator
Issue #1234: Applying a splat to a prototype using :: applies the splat to the wrong object
Opened by: @Dykam
Date opened: March 25, 2011
Milestone: 1.2
Thanks to @michaelficarra for pointing to a solution and review!
Dykam's illustrative code:
Solution: Adding an intermediary
prototype
Access
node between the class and the method within the grammar.I have some questions regarding some possible refinements posted in the
src/
commit.This issue ties into a larger issue on how
::
is handled ( with respect to@
) -- I will open a new issue that addresses the super-issue within two days.