[luatex] Luatex: \toksapp seems to be not local

David Carlisle d.p.carlisle at gmail.com
Tue May 12 16:25:27 CEST 2020


On Tue, 12 May 2020 at 09:55, Petr Olsak <petr at olsak.net> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20200512/63a12457/attachment.html>


More information about the luatex mailing list.