[luatex] Luatex: \toksapp seems to be not local
Petr Olsak
petr at olsak.net
Tue May 12 10:54:38 CEST 2020
Hello,
I started to using LuaTeX with my macros (OpTeX) and I reached first
problem.
---------------------------------
\toks0={A}
{\toksapp0{B}\the\toks0 }
\the\toks0
--------------------------------
This is LuaTeX, Version 1.12.0 (TeX Live 2020)
--------------------------------
I expected that first printing of \toks0 gives AB and the second only A.
But it is not true. The second printing is AB too.
It seems that \toksapp (and variants) makes global assignment. The
manual of LuaTeX does not mention explicitly that the assignment is
local, but the \g* variants are here and they are global. So, I derived,
that non-\g* variants are local. But it is not true.
Petr Olšák
More information about the luatex
mailing list.