Ilya
http://rt.perl.org/rt3/Ticket/Display.html?id=57378
I tried to implement it once, and couldn't even install a multi that
would be called on "abc".split(/b/)
String handling is rather confusing because there are Perl6Str, String
and Str around, and I don't know how they are related.
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
String is Parrot's built-in string type.
Perl6Str is a subclass of String -- it basically exists so that we
can get the correct numification semantics from Strings.
It's written in C because:
1. numification is a frequent operation
2. it's easier to write this in C than in PIR
Str is the official Perl 6 string type, it is a subclass of
Perl6Str and Any.
There are a few places in the PIR builtins that create Perl6Str objects
manually because we want to make sure that if the strings are numified
they do so according to the Perl 6 semantics instead of the Parrot ones.
Ultimately most of these will be handled by HLL type mapping, so it
won't be necessary to explicitly coerce things into Perl6Str or Str.
Pm