lua-users home
lua-l archive

Re: a bug in Lua4a table constructor

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,
Yutaka Ueno wrote:
> 
> d=hbox{
> button{ label="ok"},
> button{ label="cancel"} --> error: attempt to call a table value.
> }
> 
I think, this is the right patch:
--- lparser.c.orig Thu Jun 8 04:47:09 2000
+++ lparser.c Thu Jun 8 04:47:31 2000
@@ -652,7 +652,7 @@
 cd->k = 1; /* record */
 }
 else {
- luaK_tostack(ls, &v, 0);
+ luaK_tostack(ls, &v, 1);
 cd->n = listfields(ls);
 cd->k = 0; /* list */
 }
Ciao, ET.

AltStyle によって変換されたページ (->オリジナル) /