And using separate hashes means less typing.use strict; my %prop; sub method { my ($self) = @_; $prXp{id($self)} = 1; # throws an error: $prXp is not declared }
One other thing: using refaddr is not safe when using fork() (on windows) or threads (on any system) since the refaddr changes over a CLONE. Object::InsideOut seems to deal with this issue.
In reply to Re: Inside Out Classes and the internal Hashes
by Joost
in thread Inside Out Classes and the internal Hashes
by KurtSchwind
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |