develooper Front page | perl.perl6.language | Postings from May 2005

(1,(2,3),4)[2]

Thread Next
From:
Autrijus Tang
Date:
May 11, 2005 13:53
Subject:
(1,(2,3),4)[2]
Message ID:
20050511205427.GA18345@aut.dyndns.org
In a somewhat related topic:

    pugs> (1,(2,3),4)[2]
    4

Because the invocant to .[] assumes a Singular context.
I'm not sure how any invocant can assume a Plural context anyway,
so this behaviour seems correct.  Is it, though? :)

Thanks,
/Autrijus/

Thread Next


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