[luatex] Behavior of node lists.
Hans Hagen
pragma at wxs.nl
Fri Nov 9 22:10:20 CET 2012
On 11/9/2012 9:22 PM, Stephan Hennig wrote:
> That is,
>
> node.insert_after(nil, N, x)
>
> is not a short-cut for inserting after N, but returns x as new head?
no, it returns n as head as well as x:
head, current = node.insert_after(nil,current,x)
boils down to
head = current
current = x
so:
head, current = node.insert_after(head,current,x)
becomes:
head = head or current or x
current = x
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
More information about the luatex
mailing list