develooper Front page | perl.perl6.language.subs | Postings from September 2000

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

From:
Nathan Torkington
Date:
September 13, 2000 11:09
Subject:
Re: RFC 212 (v1) Make length(@array) work
Message ID:
14783.49778.268390.884261@prometheus.frii.com
Nathan Wiger writes:
> Brainstorming off the top of my head:
> 
>    sub length (($|@)) {
> 
>    }
> 
> That is, use a regex-like "(x|y)" - or maybe [$@%] ?? - for alternative
> context coercions.

The only RFC on prototype extensions we have is Andy Wardley's #57.
I suggest you ask him to add this feature.

Nat



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About