François Perrad wrote:
2009/3/15 Allison Randal <[email protected]>:
Lua:
[ ] Passes all tests on trunk
No, failed 151/1202
Are these expected failures (i.e. because Lua is targeting a version
other than trunk)?
[ ] Installs
ok, but an installed Lua cannot load external libraries
(languages/lua/library/*.pbc)
Ah, you're right. I intended to merge in the load_language branch right
after 0.9.1, but it appears I didn't. It's a small feature addition (2
new opcodes and supporting C functions), but I'd rather not make it so
close to release. I'll make the change right after the release, and have
added a deprecation item for the C API that makes the change easier.
In the meantime, I recommend installing into a language-name
subdirectory within the main library/ directory, for example:
/usr/lib/parrot/1.0.0/library/lua/*.pbc
Then loading with:
load_bytecode 'lua/foo.pbc'
Not ideal, but it is at least solid, stable, and guaranteed to be easily
found with existing stored configuration data in parrot_config and the
Parrot::Config::Generated library. (It will also continue to work even
after the new HLL loading opcodes are added, so won't require a
deprecation notice.)
Allison
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev