In many cases, an object might have a method (filter, selector, etc) attached to it so that the object can run the correct method..for instance, an object might have a filterMethod variable with a value 'filterByArtist'.. in ruby, i would do something like:instance.send(filter_method)how would i do that in pharo, and is this a bad idea?
thanks! -- ----peace,sergiophotographer, journalist, visionary#BitMessage BM-2D8VWUJSS41RFKh1ec83preVabHrnniExahttp://www.Village-Buzz.com http://www.ThoseOptimizeGuys.comhttp://www.CodingForHire.comhttp://www.coffee-black.com http://www.painlessfrugality.comhttp://www.twitter.com/sergio_101http://www.facebook.com/sergio101
In many cases, an object might have a method (filter, selector, etc) attached to it so that the object can run the correct method.. for instance, an object might have a filterMethod variable with a value 'filterByArtist'.. in ruby, i would do something like:instance.send(filter_method)how would i do that in pharo,
and is this a bad idea?
camille teruel wrote "instance perform: filterMethod asSymbol"