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


>./perl6 -e 'my $a = "a" x 2**30;say $a.chars'
1073741824

>./perl6 -e 'my str $a = "a" x 2**30;say $a.chars'
===SORRY!===
String too long for string constants segment

>./perl6 -version
This is Rakudo version 2016.04-17-g5a14162 built on MoarVM version 2016.04
implementing Perl 6.c.

There may be some perfectly good reason, but in that case maybe the error
message should reference that this is a limitation of native strings.

Reply via email to