On Mon Oct 15 04:19:04 2012, masak wrote:
> <flussence> oh btw, I found this while you were away :)
> <flussence> echo -e 'my \\a = any set <1 2 3>; \n say 1 ~~ a' | perl6
> <moritz> Segmentation fault (core dumped)
> <flussence> works fine if you omit the \n, though.
> <masak> has it been RT'd?
> <flussence> I've been too busy trying to break rakudo to file bugs :P
> * masak submits rakudobug


Alternatively, it also explodes on the JVM:

$  echo -e 'my \\a = any set <1 2 3>; \n say 1 ~~ a' | ./perl6
> my \a = any set <1 2 3>;
any(3, 2, 1)
>  say 1 ~~ a
scgethandle can only operate on an SCRef
java.lang.RuntimeException: java.lang.Exception: Cannot understand '- 
QAST::CompUnit'
java.lang.RuntimeException: java.lang.ClassCastException: __P6opaque__18 cannot 
be cast to 
org.perl6.nqp.runtime.EvalResult
Cannot stringify this

And without the \n :

$ echo -e 'my \\a = any set <1 2 3>; say 1 ~~ a' | ./perl6
> my \a = any set <1 2 3>; say 1 ~~ a
True
True

-- 
Will "Coke" Coleda

Reply via email to