metaprogramming - Io's method scope -
how io's method scope work? when define:
method(x, x + 1)
what object slot x
belong to? tried self
, call
, object
without luck?
for example in repl:
slotnames
is same as
lobby slotnames
in method:
method(slotnames)
is same as? what?
thanks
x
stored in arguments list of message not slots.
you can access arguments of current message via
m := method(x, y, call message arguments)
.
Comments
Post a Comment