Ok. perform: is working for arithmetic but what about perform: itself?
Mmm thnx for replie! I'll run this code and experemt with it2012/4/29 Georg Heeg [via Smalltalk] <[hidden email]>
Von: [hidden email]Please try to understand the following code:
| a b c |
a := 3.
b := 4.
c := '+'.
^a perform: c asSymbol with: b
Georg Heeg eK, Dortmund und K��then, HR Dortmund A 12812
Wallstra��e 22, 06366 K��then
Tel. +49-3496-214328, Fax +49-3496-214712
-----Urspr��ngliche Nachricht-----
[mailto:[hidden email]] Im Auftrag von vittlyAn: [hidden email]Gesendet: Sonntag, 29. April 2012 10:25Betreff: [Esug-list] metaprogramming in smalltalkHi! Please could you help me understand smalltalk capabilities in
metaprogramming? Q: could I construct arbitrary message by program? Create
keywords from strings and than build sequence of them to make a message. Mm?
Or may be store keywords in variables and then pass variables withing
messages extracting stored keywords?
Am I dreamer?)
--
View this message in context:
http://forum.world.st/metaprogramming-in-smalltalk-tp4595928p4595928.html
Sent from the ESUG mailing list archive at Nabble.com.
_______________________________________________
Esug-list mailing list[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
_______________________________________________
Esug-list mailing list
[hidden email]
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
http://forum.world.st/metaprogramming-in-smalltalk-tp4595928p4596217.htmlIf you reply to this email, your message will be added to the discussion below:
View this message in context: Re: metaprogramming in smalltalk
_______________________________________________
Esug-list mailing list
Esug-list@lists.esug.org
http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org