in reply to Re: Get rid of the Indirect Syntax, please!
in thread On the Improvement of Exegesis 12
Personally, I always felt that print() (and friends) has a difficult syntax to work with, given that it is different than every other other CORE function.
Frankly, if that syntax is important enough to you, you could just do something like (in Perl5 syntax):
multisub print { my $invocant = shift; if (UNIVERSAL::can( $invocant, 'print') { return $invocant->print(@_); } print ($invocant, @_); }
Now, you treat it just like a regular function, if necessary.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Get rid of the Indirect Syntax, please!
by adrianh (Chancellor) on Apr 18, 2004 at 23:00 UTC | |
by dragonchild (Archbishop) on Apr 19, 2004 at 12:53 UTC | |
by adrianh (Chancellor) on Apr 19, 2004 at 13:01 UTC | |
by dragonchild (Archbishop) on Apr 19, 2004 at 13:04 UTC | |
by adrianh (Chancellor) on Apr 19, 2004 at 15:03 UTC | |
| |
by theguvnor (Chaplain) on Apr 19, 2004 at 00:49 UTC |