in reply to Re^2: OO systems and Perl 5 (Was: Recap: Future of Perl 5)
in thread OO systems and Perl 5 (Was: Recap: Future of Perl 5)
What exactly? ? ?
update
I read all of it and this is semantically almost identical.
Larry just reused package for class ° and added more freedom:
- you can choose the name of your constructor(s) (usuall new)
- you can bless any reference as instance container not only hashes
- you won't have collisions between methods and instance vars
- class attributes don't collide with object attributes
Actually you can translate this whole tutorial almost 1-to-1 with a bit of syntactic sugar!
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
°) python doesn't seem to have anything like a package keyword
In Section
Meditations