How to call method by variable?
squeak at bokelberg.de
Sat Jan 18 14:22:56 UTC 2003
This surely has been answered already,
but i couldn't find it, sorry.
I want to call a method of an object,
whose name is in a variable.
The following script is not correct,
but it shows (hopefully) my intention.
Transcript show: 'meth 1 called'.
Transcript show: 'meth 2 called'.
actMeth _ meth1
"I want to call the method which is in actMeth"
How can this be done ?
More information about the Squeak-dev