Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: OO-style modifiers for 'sub' ?

by hardburn (Abbot)
on Jan 24, 2003 at 17:45 UTC ( #229648=note: print w/replies, xml ) Need Help??

in reply to OO-style modifiers for 'sub' ?

The really cool thing about Perl 5's object system is that it didn't require adding any new syntax. Admittedly, this doesn't make for the greatest object system, but it's somehow inspiring to know that OO Perl is just the combination of existing Perl structures.

While your ideas could probably be done for Perl 6, I suggest just letting Perl 5 go without it if it means defining new syntax. Though if you can get the same thing in a module, go ahead and try.

Replies are listed 'Best First'.
Re^2: OO-style modifiers for 'sub' ?
by adrianh (Chancellor) on Jan 25, 2003 at 14:50 UTC
    The really cool thing about Perl5's object system is that it didn't require adding any new syntax

    Apart from -> method invocation, indirect object syntax and SUPER:: that is ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://229648]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2016-10-22 22:47 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (299 votes). Check out past polls.