[luatex] node.isert_before() bug?

Taco Hoekwater taco at elvenkind.com
Sun Jun 19 23:40:44 CEST 2011


On 19 jun. 2011, at 21:44, Khaled Hosny <khaledhosny at eglug.org> wrote:

> Hi all,
> I just found that when node.insert_before() is executed on the very
> first node in an hlist no nodes get inserted, I'm not sure if this is a
> bug, feature or some dumb thing in the code I wrote. Tested with luatex
> 0.70.1 and 0.67.0.
I write this 'blind' now, but iirc node.insert_before() has  a return value. But if not, remeber that variables do not auto-update themselves in side-effects in lua, so if you need to alter a list head, you will need to do something like 

  head = newdir_var


Hope this makes sense,


More information about the luatex mailing list