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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: OO systems and Perl 5 (Was: Recap: Future of Perl 5)
by RonW (Parson) on Aug 31, 2018 at 00:04 UTC | |
by LanX (Saint) on Aug 31, 2018 at 01:15 UTC | |
by RonW (Parson) on Aug 31, 2018 at 21:08 UTC | |
by LanX (Saint) on Aug 31, 2018 at 21:34 UTC |
In Section
Meditations