I think I've read it in pretty every OO tutorial I've seen, including PBP and Damian's OO book.
The explanation seemed very obvious to me, since one is directly accessing the internal implementation of a blessed hash.
> Also, DBI does that as well (but uses tie) behind the curtain.
Uhm, I ignored this till now ... but DBI is a very byzantine module anyway.
But you convinced me to s/uncommon/oldfashioned/ , thanks :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
*) OK you can tie the hash/data structure, but this will slow down all internal access to any $self->{attribute}
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |