Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: OO-style modifiers for 'sub' ?

by Aristotle (Chancellor)
on Jan 24, 2003 at 23:59 UTC ( #229755=note: print w/replies, xml ) Need Help??

in reply to Re: OO-style modifiers for 'sub' ?
in thread OO-style modifiers for 'sub' ?

sub foo # requires interfaces IntA, IntB { my ($self) = @_; IntA::validate($self); IntB::validate($self); }
Excellent! I am impressed - a very simple, concise and - as far as I can tell - robustly versatile approach. Seems to be the perfect distribution of responsibilities. It certainly deserves attention - if it doesn't get much here, please repost it as a root node. I'm very curious to hear the gurus with theoretical background poke at this and comment on it.

Makeshifts last the longest.

Log In?

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

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

    Results (302 votes). Check out past polls.