On Wednesday 12 July 2006 11:27, Patrick R. Michaud wrote: > The perl6 compiler has a custom string type, currently called > "Perl6Str". What's the canonically correct mechanism for creating > an object of that type? > > $P0 = new 'Perl6Str' > $P0 = new .Perl6Str > $P0 = new [ 'Perl6Str' ] > > At different stages of Parrot development I've seen different > answers to this question, so it'd be helpful to know what's "correct".
I tend to use: .local int str_type str_type = find_type [ 'Perl6Str' ] .local pmc p6str p6str = new str_type -- c