[luatex] Luatex: \toksapp seems to be not local
luigi scarso
luigi.scarso at gmail.com
Fri May 29 01:11:38 CEST 2020
On Tue, May 12, 2020 at 4:59 PM luigi scarso <luigi.scarso at gmail.com> wrote:
>
>
> On Tue, May 12, 2020 at 4:26 PM David Carlisle <d.p.carlisle at gmail.com>
> wrote:
>
>>
>>
>> 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
>>
>>
> I will see it this evening
>
> --
> luigi
>
It should be fixed now in experimental (revision 7367).
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20200529/15b90952/attachment.html>
More information about the luatex
mailing list.