On 7/24/07, Jeremy Henty <onepoint / starurchin.org> wrote:
> On 2007-07-24, Robert Dober <robert.dober / gmail.com> wrote:
> > On 7/24/07, Jeremy Henty <onepoint / starurchin.org> wrote:
> >>
> >> class Foo
> >>   count = 0
> >>   define_method(:foo) { count += 1 }
> >> end
> >
> > Terribly slow BTW :(
>
> Why is that?  Are all methods created by define_method slow?  Or is it
> something particular to the way I'm using it here?  I'm really getting
> into metaprogramming with define_method so I'd like to learn about the
> pitfalls.
>
> Regards,
>
> Jeremy Henty

I believe Robert developed a library for using closure based
properties a short while back.  Something to do with a breed of dog or
something :)  Cool stuff.  But he found it to be slow if I remember
correctly.

Todd