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

Re: return() in pointy blocks

Thread Previous | Thread Next
From:
TSa
Date:
June 8, 2005 03:37
Subject:
Re: return() in pointy blocks
Message ID:
42A6CA62.9020509@orthogon.com
Well,

does using -> as blockref creator also give anonymous scalars?

$y = -> $x { $x = 3; $x }; # $y:(Ref of Block of Int)

BTW, is -> on the 'symbolic unary' precedence level
as its read-only companion \ ?. Are they pure macros?
-- 
TSa (Thomas Sandlaß)



Thread Previous | 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