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
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^2: Language design: direct attribute access and postponed mutators (Perl Vs Python)
by LanX
in thread Language design: direct attribute access and postponed mutators (Perl Vs Python)
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |