On Wed Oct 05 14:00:13 2011, masak wrote:
> <masak> perl6: say -Int
> <p6eval> rakudo ff78b5: OUTPUT«Cannot unbox type object to a native
> integer␤  in sub prefix:<-> [...]
> <p6eval> ..pugs, niecza v10-38-g23f1b2e: OUTPUT«0␤»
> * masak submits rakudobug
> 
> I think -Int should work and yield 0 without an error or warning. So,
> it would seem, do Pugs and Niecza.

moritz++ informs me on #perl6 that it would be more apropos for -Int to 
warn about undefinedness. Only the "modifying" math ops (like ++ and *=) 
don't warn.

Reply via email to