On Wed, Jul 12, 2006 at 01:55:39PM -0500, Patrick R. Michaud wrote: > On Wed, Jul 12, 2006 at 11:36:56AM -0700, chromatic wrote: > > On Wednesday 12 July 2006 11:27, Patrick R. Michaud wrote: > > > > > > $P0 = new 'Perl6Str' > > > > I tend to use: > > > > .local int str_type > > str_type = find_type [ 'Perl6Str' ] > > > > .local pmc p6str > > p6str = new str_type
That's a rather complicated :-) way of expressing the one-liner above. > Along similar lines... > > - If another HLL wants to create a Perl6Str, how does it do it? loadlib 'perl6' # or load_bytecode or whatever $P0 = new 'Perl6Str' > - If another HLL wants to create a subclass of Perl6Str...? loadlib 'perl6' # or load_bytecode or whatever clas = subclass 'Perl6Str', 'MyStr' > Pm leo