Ion Alexandru Morega <[EMAIL PROTECTED]> wrote: > Hello, i'm new to this list and to parrot programming, so i decided to > start with something simple. I implemented a String PMC that is pretty > much complete, it compiles, but i haven't tested it yet. It would be > great if someone had a look at it, and later when i write some tests > i'll check in a patch. The .pmc is attached.
Looks quite good. Some notes: - (you mentioned it) needs tests - "extends mmd_default" isn't needed anymore, we do MMD anyway - the patch duplicates a lot of PerlString's behaviour. So it would probably be best to: 1) rename perlstring.pmc -> string.pmc 2) create: pmclass PerlString extends String 3) then duplicate the differing functions namely the set_<type>_native funcs that morph a PerlString and don't in the String PMC. leo