[perl #67050] $str.Num should be the same as +$str

2009-06-30 Thread Carl Mäsak via RT
On Tue Jun 30 01:56:39 2009, allb...@ece.cmu.edu wrote: > I thought unary + was scalar/item? context in perl6, not numify. When in doubt, check the spec. :) S03 (]): ] Unlike in Perl 5, where + is a no-op, this operator coerces to ] numeric context in Perl 6. So prefix:<~> stringifies, prefix:<+

Re: [perl #67050] $str.Num should be the same as +$str

2009-06-30 Thread Mark J. Reed
On Tue, Jun 30, 2009 at 4:55 AM, Brandon S. Allbery KF8NH wrote: > I thought unary + was scalar/item? context in perl6, not numify.  + is numeric context - which is one of several subtypes of item context. Generic item context is item(); + numifies; ? boolifies; ~ stringifies. I'm guessing you

Re: [perl #67050] $str.Num should be the same as +$str

2009-06-30 Thread Brandon S. Allbery KF8NH
I thought unary + was scalar/item? context in perl6, not numify. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu electrical and computer engineering, carnegie mellon universityKF8NH PGP.si

[perl #67050] $str.Num should be the same as +$str

2009-06-30 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #67050] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=67050 > 13:52 < zulon> rakudo: say "3".Num 13:52 < p6eval> rakudo d95def: OUTPUT«Method 'Num' not