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

Re: new sigil

From:
Larry Wall
Date:
October 25, 2005 14:35
Subject:
Re: new sigil
Message ID:
20051025213510.GB20687@wall.org
On Thu, Oct 20, 2005 at 11:18:14AM -0600, Eric wrote:
: Actualy i think ^ might be my favorite so far.
: 
: sub sametype (^T $x, ^T $y) {...}

I thought that, too, until I realized it wouldn't work as an rvalue:

    ^T.count	# 1's complement of number of T instances

On top of which, if it did work, it should be a placeholder variable,
not something you see in a signature.

Larry



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