Hi,
I have a situation where I have available name of object's method slot
which I would like to invoke. What is the best way to do this? I would
like for the method to be invoked in the context of the object on which
method slot resides.
Something like
Test := Object clone do(
a := method(s,
s println
self slotNames println
self getSlot("b") call("bbb")
)
b := method(s,
self slotNames println
s println
)
)
t := Test clone
t getSlot("a") call("aaa") # 1)
the_a := t getSlot("a") # 2)
the_a("aaa") # 2)
Problem with this example is that method slot 'a' is not invoked in
context of its object 't' ... 'self slotNames println' prints Lobby
contents.
Regards
--
Milos Negovanovic
milos.negovanovic@...