You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not a bug, whenever you call a name preceded by @, then the value of @ is passed in as the first argument.
@hello"world"
is the same as
self.helloself, "world"
So the same rules apply to @__class.
The special form @@ is a shortcut to @_class like @ is a shortcut for self, but when you call @@ nothing is passed in as the first argument. So you can do:
Aah ok thx.
Btw seems http://moonscript.org/reference/ is being too agressively cached. I opened the link, and there was no "@@" and it appeared after ctrl+f5. Firefox, linux.
prints:
Is it a bug? I think calling @__class should work same as assigning @__class to a variable and then calling it.
Btw it translates to
The text was updated successfully, but these errors were encountered: