use of opcode load_language
François Perrad
francois.perrad at gadz.org
Fri Sep 11 12:57:16 UTC 2009
2009/9/11 Allison Randal <allison at parrot.org>:
> François Perrad wrote:
>>
>> I've refactored the language WMLScript with the opcode load_language.
>> That's work fine for dynops & dynpmc.
>>
>> But when I load the runtime standard libraries (in src/wmlsstdlibs.pir),
>> I always need the prefix 'library' in the path
>>
>> sub 'load_stdlibs'
>> load_bytecode 'library/wmlslang.pbc'
>> load_bytecode 'library/wmlsfloat.pbc'
>> load_bytecode 'library/wmlsstring.pbc'
>> load_bytecode 'library/wmlsconsole.pbc'
>>
>> What I missed ?
>
> You're not missing anything. Parrot was missing adding the language-specific
> library search path in 'load_language'. Try it after r41189.
>
> Allison
>
Parrot_str_substr doesn't work with negative offset.
So, I patched the call in src/packfile.c (line 4806).
It's just a workaround.
François.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: packfile.patch
Type: text/x-diff
Size: 826 bytes
Desc: not available
URL: <http://lists.parrot.org/pipermail/parrot-dev/attachments/20090911/e9247c92/attachment.bin>
More information about the parrot-dev
mailing list