using a string as method name
Michael Rueger
michael at impara.de
Mon Jun 6 15:00:06 UTC 2005
Hilaire Fernandes wrote:
> How can a string be used to build up a method name?
>
> For example in a string object I have 'toto', and I would like to use it
> to call a method: anObject toto
anObject perform: aString asSymbol
asSymbol is relatively expensive though, so try to avoid repeated
conversions.
Michael
More information about the Squeak-dev
mailing list
|