Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] Changes for LuaTable

0 views
Skip to first unread message

Klaas-Jan Stol

unread,
Jan 13, 2006, 9:08:22 AM1/13/06
to perl6-i...@perl.org
this patch changes the behaviour of the LuaTable PMC.
changes have to do with the reference semantics that PMCs have, and
LuaTables should not have.

Setting and getting a value now will set (and get) a copy of the value.

Clone() returns a reference to itself, as clone() should be used for
register to register copying (due to the by-value semantics of Lua values)

regards,
klaas-jan

luatable.patch

Jonathan Worthington

unread,
Jan 13, 2006, 5:36:21 PM1/13/06
to perl6-i...@perl.org
Hi,

* Fixed the Lua PMCs to no longer use the now-deprecated Parrot_PMC_typenum,
so it builds. Also tested out how Lua handles on Win32 - basically it builds
but all the tests give something like this:-

--
lua\t\while...........NOK 2# Failed test (lua\t\while.t at line 37)
# got: 'Can't locate object method "bsstr" via package
"Math::BigFloat"
(perhaps you forgot to load "Math::BigFloat"?) at
languages/lua/Lua/build.pm line 79, <$__ANONIO__> line 1.
# Error reading source file languages/lua\t\while_2.pir.
# '
# expected: 'one
# two
# three
# '
# 'perl -Ilanguages/lua languages/lua/luac.pl languages/lua\t\while_2.lua &&
.\parrot.exe languages/lua\t\while_2.pir' failed with exit code 7.
--

* m4 will now build on Win32. Get a 96% test rate.

Jonathan

0 new messages