Re: RFC 212 (v1) Make length(@array) work
[email protected] (Damian Conway) Thu, 14 Sep 2000 10:25:48 +1100 (EST)
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
> > This proposal makes length() an un-prototypable (and therefore
> > unoverridable). Do you have a proposal for how to handle that?
>
> Pray to Damian for a prototype that supports this? :-)
If you'd been studying the holy writings properly, young Torkington,
instead of those wicked magazines under your bed, you'd be familiar with
RFC 128, specifically:
http://tmtowtdi.perl.org/rfc/128.html#Context_classes
Should that epistle find favour in Larry's eyes, the specification
of the proposed modification to C<length> would be:
sub length ([\@$]) { ... }
;-)
Damian