# New Ticket Created by  Elizabeth Mattijsen 
# Please include the string:  [perl #126492]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126492 >


[21:38:17]  <lizmat>    m: use nqp; class A { has str $!a; method BUILD() { 
nqp::chars($!a) } }; A.new  # tada
[21:38:18]  <+camelia>  rakudo-moar 3cc195: OUTPUT«(signal SEGV)»
[21:38:46]  <lizmat>    m: use nqp; my str $foo; say $foo
[21:38:46]  <+camelia>  rakudo-moar 3cc195: OUTPUT«␤»
[21:39:05]  <lizmat>    I always thought that native strings initialized to the 
empty string ?
[21:39:23]  <lizmat>    jnthn: ^^^  ??
[21:39:46]  <jnthn>     lizmat: In Rakudo I think we make that happen.
[21:39:50]  <jnthn>     In NQP maybe not
[21:39:51]  <lizmat>    m: use nqp; my str $foo; say nqp::chars($foo)
[21:39:51]  <+camelia>  rakudo-moar 3cc195: OUTPUT«0␤»
[21:40:17]  <lizmat>    apparently it only goes wrong with native string 
attributes ?
[21:40:41]  <lizmat>    jnthn: this is rakudo, so bug?
[21:41:39]  <jnthn>     lizmat: oh, mis-read...
[21:41:58]  <jnthn>     Yeah, bug then
[21:42:10]  <lizmat>    ok, will rakudobug it

Reply via email to