
Nice! Almost as elegant as Ward's legendary Symbol>>value: anObject ^anObject perform: self On 29.04.12 13:49, Georg Heeg wrote:
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----- Von: esug-list-bounces@lists.esug.org [mailto:esug-list-bounces@lists.esug.org] Im Auftrag von vittly Gesendet: Sonntag, 29. April 2012 10:25 An: esug-list@lists.esug.org Betreff: [Esug-list] metaprogramming in smalltalk
Hi! 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 Esug-list@lists.esug.org http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
_______________________________________________ Esug-list mailing list Esug-list@lists.esug.org http://lists.esug.org/mailman/listinfo/esug-list_lists.esug.org
-- Joseph Pelrine [ | ] MetaProg GmbH Email: jpelrine@metaprog.com Web: http://www.metaprog.com As soon as you introduce people, things become complex.