[luatex] Behavior of node lists.

Stephan Hennig mailing_list at arcor.de
Fri Nov 9 21:22:19 CET 2012


Am 08.11.2012 09:15, schrieb Taco Hoekwater:
> On 11/07/2012 07:37 PM, Stephan Hennig wrote:
>> Am 06.07.2011 15:43, schrieb Taco Hoekwater:
>>>
>>> Actually H is also useful if N is nil (that is a tail-append the list
>>> that starts at H), but it is true that H is generally unused.
>>
>> If N is known to be non-nil, e.g., a glyph node, is it save to call
>>
>>    node.insert_after(nil, N, x)  ?
>>
>> If the answer is 'Yes',
> 
> Well, yes.

Hmm, I've just found

| If head is initially nil, it will become new.

That is,

  node.insert_after(nil, N, x)

is not a short-cut for inserting after N, but returns x as new head?

Best regards,
Stephan Hennig



More information about the luatex mailing list