D
Dr.Ruud
Ben Morrow schreef:
Or bluntly ignoring it.
Can calling conventions be changed for one file only?
With something like: use subs::localize::it.
Dr.Ruud:Ben Morrow:Dr.Ruud:
Well, I might want a localized $_ as alias of $_[0] for every sub.
Are there any good reasons against it?
Subs that want to take $_ as a default value.
An exception is obviously made for a call without arguments, because
then there would not be a $_[0].
That leaves subs where $_ is the default for another argument but the
first. Maybe an attribute could be used for those.
You're not getting it.
Or bluntly ignoring it.
The calling conventions *can't* be changed now,
because it breaks back-compatibility. c.f. Perl6.
Can calling conventions be changed for one file only?
With something like: use subs::localize::it.