in reply to Re: Memoize collision with objects
in thread Memoize collision with objects

Hi,

I actually added a unique id to all my instances, and it solves the problem:

sub bar{ my ( $self, etc .. ) = @_; return $self->_memBar($self->id(), etc ...); } memoize('_memBar') ; sub _memBar{ my ( $self , $id , etc .. ) ; .. do the real stuff .. }