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 .. }
-- Jerome Eteve
In reply to Re^2: Memoize collision with objects
by jeteve
in thread Memoize collision with objects
by jeteve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |