in reply to Re: Language design: direct attribute access and postponed mutators (Perl Vs Python)
in thread Language design: direct attribute access and postponed mutators (Perl Vs Python)
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}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Language design: direct attribute access and postponed mutators (Perl Vs Python)
by Corion (Patriarch) on Sep 16, 2019 at 07:45 UTC | |
by LanX (Saint) on Sep 16, 2019 at 16:15 UTC |