Closed davidcarlisle closed 8 months ago
This issue has been automatically marked as stale because it has not had recent activity.
Is this issue already "fixed-in-dev"?
Nope. Sorry for the noise.
This issue has been automatically marked as stale because it has not had recent activity.
Brief outline of the bug
ltluatex allocates
\luadef
tokens in the classic style using a tex count\e@alloc@luafunction@count
to count the allocations. the luatex manual and generic code shows an allocation using the first free slot in the Lua table,The end result is that (for example) pgf and luapstricks over-write the same slots
see
https://tex.stackexchange.com/a/689524/1090
I don't think it is feasible to force generic code to use
\e@alloc
so I think the allocators should ensure the count being allocated is bigger than the table, something likeit would probably have been better not to introduce
\e@alloc@luafunction@count
and always use the table size but it may be difficult to remove, so keeping them in sync seems the best compromise