Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global coffin inconsistent local/global assignment #1443

Closed
blefloch opened this issue Feb 11, 2024 · 2 comments
Closed

Global coffin inconsistent local/global assignment #1443

blefloch opened this issue Feb 11, 2024 · 2 comments
Labels
bug Something isn't working l3coffins

Comments

@blefloch
Copy link
Member

As it turns out, \vcoffin_gset:Nnn shares an auxiliary with the local version, and both use under the hood \prop_put:Nnn to set coffin poles. This trips up the l3debug check-declarations code, which produces the (correct) error Inconsistent local/global assignment. Presumably the poles are then lost at the end of the group, but I didn't track that carefully.

\documentclass{article}
\ExplSyntaxOn
\debug_on:n { check-declarations }
\ExplSyntaxOff
\begin{document}
\ExplSyntaxOn
\vcoffin_gset:Nnn \g_tmpa_coffin { 10pt } { XXX } % gives the error
\coffin_typeset:Nnnnn \g_tmpa_coffin { t } { l } { 0pt } { 0pt }
\ExplSyntaxOff
\end{document}
@blefloch blefloch added bug Something isn't working l3coffins labels Feb 11, 2024
@josephwright
Copy link
Member

Isn't this addressed by 08347a0?

@blefloch
Copy link
Member Author

Yes, indeed, thanks! I came across the problem when working on my #1059 pull request, in a branch that is 30 commits behind main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working l3coffins
Projects
None yet
Development

No branches or pull requests

2 participants