http://qs1969.pair.com?node_id=354999


in reply to Re: Functional Inside Out Closure Objects
in thread Functional Inside Out Closure Objects

Actually, this would not be the same. ${class}::$name would point to the CODE ref for the last object that was created. With the way I have it, the goto jumps to the CODE ref for the particular instance that the method is being called on.
  • Comment on Re: Re: Functional Inside Out Closure Objects

Replies are listed 'Best First'.
Re: Re: Re: Functional Inside Out Closure Objects
by stvn (Monsignor) on May 20, 2004 at 16:57 UTC

    Nevermind me, I am still half asleep. You are right, I was reading the source wrong. However, in light of my new understanding of your module, I would tend to agree with dave_the_m that this is creating a rather large overhead for your module. Not to mention that you may find yourself having to deal with the nested closure memory leak issue.

    -stvn