Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Thanks, but I think this will be called every time a property is accessed.
That's like tie'ing the underlying blessed hash in Perl, then every read write access to $obj->{attribute} must be handled via FETCH and STORE. This must slow down OO handling considerably. The mechanism I described above will only affect especially "enhanced" properties and only when accessed over the external interface.
Cheers Rolf
In reply to Re^2: Language design: direct attribute access and postponed mutators (Perl Vs Python)
by LanX
|
|