On 9-9-2010 6:29, Patrick Gundlach wrote:


While I am at the user_defined whatsit. Is there a way to store a function? I 
can dump the function to a string, but that doesn't sound too efficient. The 
manual states that the table is a token list, so I am not trying to do

n.value = { function () do whatever I want until the end }

maybe use an indirect method:

list, last= { }, 0

... set ....

last = last + 1
list[last] = fnc
n.value = last

.... whatever ...

after usage
list[n.value] = nil

... use and forget ...

-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------
_______________________________________________
dev-luatex mailing list
dev-luatex@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to