[luatex] robustness of node.traverse

Stephan Hennig mailing_list at arcor.de
Thu Nov 8 22:47:33 CET 2012


Hi,

the manual is quite terse about node.traverse().  I'd like to know what
operations (insertion/removal) on the node list given as argument to
node.traverse() are save in a loop like

  for n in node.traverse(head) do
    ...
  end

I'd guess removing the current node in the loop body is not a good idea.
 But anything else?  Sure, inserting before/after the current node
changes the current node, too.  But that shouldn't be a problem, should it?

Best regards,
Stephan Hennig


More information about the luatex mailing list