From: Robert Dober Date: 2007-09-08T15:17:26+09:00 Subject: Re: before, after and around Ruby 1.9 On 9/7/07, Trans wrote: > > > > much more importantly, any such implementation is going to be severely > > > hampered in execution efficiency compared to a native capability. > > > > Losing you here, do you mean that special bytecode would be emitted > > for these three constructs that would be more efficent than for method > > redefinition? > > No no. I simply mean that any lib built-on top of Ruby's current meta- > programming constructs is going to be much slower (and less robust) > than something built-in to Ruby itself, basically because method > composition operates at such a low-level. > Hmm maybe yes, the VM could simply recompile the method, OTOH if Ruby2 will give us the ability we could recompile the method ourselves as we could e.g. in Squeak. Cheers Robert > T. > > > -- I'm an atheist and that's it. I believe there's nothing we can know except that we should be kind to each other and do what we can for other people. -- Katharine Hepburn