On Tue, May 12, 2020 at 4:26 PM David Carlisle <[email protected]> wrote:
> > > On Tue, 12 May 2020 at 09:55, Petr Olsak <[email protected]> wrote: > >> 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 >> >> >> >> I can confirm you get A in texlive 2018 but AB in 2019 and 2020 (which > seems wrong) > > David > > I will see it this evening -- luigi
