Object self
is disabled
#469
-
In language reference, super(aMessage)
Sends the message aMessage to the receiver's proto with the context of self. Example:
self test(1, 2) // performs test(1, 2) on self
super(test(1, 2)) // performs test(1, 2) on self proto but with the context of self
However, it is disabled in source code. What's the reason behind this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Lines 226 to 232 in 8eb1200 There isn't a global |
Beta Was this translation helpful? Give feedback.
-
@iacore does @zephyrtronium’s response answer your question? |
Beta Was this translation helpful? Give feedback.
-
IIRC, there may also be a thisContext or thisObject method to return the current local context. |
Beta Was this translation helpful? Give feedback.
self
is set while activating blocks, along with a couple other slots:io/libs/iovm/source/IoBlock.c
Lines 226 to 232 in 8eb1200
There isn't a global
self
.