Perl Object Orientation
- Perl Reformed OO Syntax
- Perl5 vs Perl6 OO Syntax
- synopsis perll 6 OO
- Perl6::Bundle article on CPAN
- intro to OO, presentation
Requirements
- notation should be close to standard OO
- should not reduce execution speed much
- should allow flexible design
- should be usable piece by piece (e.g. only attribute accessors)
Candidates
- Use the existent mechanisms of Perl 5.8
- reformed perl
- Perl6::Classes
- Moose based onClass::MOP
Deficits of Perl5 OO
problem Perl6 Moose Reformed Attribute Accessors missing compact 'inherits from' "isa" "<" usage of "->" instead of "." solved no
- own document: Perl Oo Perilipsis?
Attribute Accessors
- conveniently via
- val = obj->attribute
- obj->attribute = val
- has overloadable global get/set methods, set('attribute', 'val')
- has overloadable specific get/set methods, set_attribute('val')
Issues
Type: question (4 matches)
| Ticket | Summary | Owner | Status | Priority | Milestone | Component |
|---|---|---|---|---|---|---|
| #7 | How do I inherit the member variables (attributes) from another class? | new | high | Lang | ||
| #2 | Which Perl 5 OO extension can be seen as "standard" (defacto, quasi)? | new | normal | Lang | ||
| #6 | How do I inherit the methods from another class? | new | normal | Lang | ||
| #12 | How to keep Documentation close to the Method using POD? | new | normal | Lang |