in reply to Re: OO-style modifiers for 'sub' ?
in thread OO-style modifiers for 'sub' ?
Right now I do this with the same lines of code again and again, and I'm assuming I'm not the only one doing this kind of check. All the modifiers would add is an implicit check for a valid first argument, possibly pre-assigning it to a 'magic' variable, and leaving the actual arguments in @_...
But as Aristotle pointed out, something quite similar can be done by using Attribute::Handlers. I would define an attribute handler for the 'Method', 'Class' and 'Instance' attributes...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: OO-style modifiers for 'sub' ?
by Aristotle (Chancellor) on Jan 24, 2003 at 20:43 UTC | |
by Gilimanjaro (Hermit) on Jan 24, 2003 at 23:05 UTC | |
|
Re^3: OO-style modifiers for 'sub' ?
by adrianh (Chancellor) on Jan 25, 2003 at 14:43 UTC |