Re: RFC 212 (v1) Make length(@array) work

[email protected] (Nathan Wiger) Wed, 13 Sep 2000 11:06:49 -0700
Newsgroups perl.perl6.language.subs
Message-ID <[email protected]>
Nathan Torkington wrote:
> 
> I think we're going to have to see prototypes extended to cope with
> functions like this, anyway.  I'll mention this requirement in the
> next version of the RFC.

Brainstorming off the top of my head:

   sub length (($|@)) {

   }

That is, use a regex-like "(x|y)" - or maybe [$@%] ?? - for alternative
context coercions.

-Nate