From: Greg Weeks Date: 2007-11-15T04:39:25+09:00 Subject: Re: "once" meta-method without "module_eval" (Pickaxe) First, thanks (you all) for the info I asked for. > > Am I right to think that eval-ing strings is retro? > > I'm not sure there's anything really wrong with eval. Often the code > looks cleaner compared to these long winded meta-methods. My intuition is that a good argument could be given. But I'm not the person to give it. > not to mention it doesn't create a closure/leak... The fact that I can use "define-method" to *almost but not quite* achieve the affect of a "def" is almost certainly a Ruby wart. If I run into trouble I'll just blame Matz :-) -- Posted via http://www.ruby-forum.com/.