On Sat, Apr 17, 2004 at 11:52:19AM -0400, Austin Hastings wrote: : Is it permissible to use variable dispatch for private methods?
Don't see why not, as long as the overhead of switching isn't imposed on every method call. : class Cerebellum { : method :think() {...} : method :ponder() {...} : method :cogitate() {...} : : method some_method() { : ... : $activity = «:think, :ponder, :cogitate».random; s/,//g : $brain.$activity; : } : } : : Or would the colons be on the invocation, not the name? Could be made to work either way. : PS: Sorry, Piers. He can just ignore this thread if he thinks it's too much. But Piers really shouldn't carp--the backticks thread is highly compressible... :-) Larry