[Dev-luatex] unique node id?

Patrick Gundlach patrick at gundla.ch
Sun Aug 29 00:20:11 CEST 2010


Hi,

is there a unique "node id" which I could use for example as a key in a table? Using the node directly somehow doesn't work. I am thinking of something like

n = node.new("glyph")
n.unique_id

Something similar like this would suffice:

print( tostring({}) )
table: 0x100106da0

this id doesn't change for that table.


Is the following 172 something like I need? How would I access that (besides string.gsub())?

<node    nil <    172 >    nil : hlist 2>

Patrick




More information about the dev-luatex mailing list