in reply to Perl fan being tempted with Python
What's not native about Perl's OO?
It supports object creation natively:
bless({}, $class);
It supports inheritance natively:
$child->parent_method()
It supports method calling natively:
class->method(); # Static
$obj->method(); # Virtual
$obj->class::method(); # Non-virtual, Inherits
class::method($obj); # Non-virtual, Doesn't inherit
As a derict result of the above, encapsulation and polymorphism is natively supported. Perl doesn't support security divisions, but that's just a luxury (or a curse).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl fan being tempted with Python
by Fletch (Bishop) on Jun 16, 2005 at 18:24 UTC | |
|
Re^2: Perl fan being tempted with Python
by Anonymous Monk on Jun 17, 2005 at 11:29 UTC | |
by ikegami (Patriarch) on Jun 17, 2005 at 14:55 UTC | |
by Fletch (Bishop) on Jun 17, 2005 at 16:54 UTC |