----- Original Message ----- From: "John" <nojgoalbyspam / hotmail.com> Newsgroups: comp.lang.ruby To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Sent: Sunday, July 14, 2002 4:42 PM Subject: Re: instance_eval > "ts" <decoux / moulon.inra.fr> wrote in message > news:200207140952.g6E9qFh25967 / moulon.inra.fr... > > >>>>> "J" == John <nojgoalbyspam / hotmail.com> writes: > > > > J> Is this a 1.7 feature? Is it going to be in 1.8? > > > > 1.6.2 feature, if I'm right. > > > > > > Guy Decoux > > > > > > Yes, seems Module.define_method was a 1.6.2 feature. I assumed it was not > 1.6.* because it was not in Pickaxe. I have since found the "features added > since 1.6.1" page located here : > http://www.pragmaticprogrammer.com/ruby/new_features.html. > > I added this information in case someone else wondered about the method. Very interesting... but I have a question. It doesn't actually allow you to define an *arbitrary* method, does it? For example, the method definition syntax allows: def mymeth ... rescue ... ensure ... end Surely you can't do that with define_method? Hal Fulton