# New Ticket Created by  Chris Fields 
# Please include the string:  [perl #54724]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=54724 >


Using 'reverse' returns a Str which is-a 'String', not a 'Perl6Str'.   
Using the attached test script I get the following result:

cjfields$ parrot ~/src/parrot/languages/perl6/perl6.pbc string.p6
$str is-a Str, is "Foo", has chars 3
$rev is-a Str, is "ooF", has chars Method 'chars' not found for  
invocant of class 'String'
current instr.: '_block11' pc 276 (EVAL_10:78)
called from Sub 'parrot;PCT::HLLCompiler;eval' pc 783 (src/PCT/ 
HLLCompiler.pir:458)
called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1065 (src/PCT/ 
HLLCompiler.pir:587)
called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1244 (src/ 
PCT/HLLCompiler.pir:676)
called from Sub 'parrot;Perl6::Compiler;main' pc 9794 (perl6.pir:186)

cjfields$ svn info
Path: .
URL: https://svn.perl.org/parrot/trunk
Repository Root: https://svn.perl.org/parrot
Repository UUID: d31e2699-5ff4-0310-a27c-f18f2fbe73fe
Revision: 27766
Node Kind: directory
Schedule: normal
Last Changed Author: pmichaud
Last Changed Rev: 27766
Last Changed Date: 2008-05-23 11:37:13 -0500 (Fri, 23 May 2008)

Attachment: string.p6
Description: Binary data




Reply via email to