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

Packing structures with $next is unintuitive after conditional blocks #191

Open
jasongraffius opened this issue Sep 24, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jasongraffius
Copy link
Collaborator

I've recently reviewed a handful of Emboss definitions where the author intends to tightly pack a struct with $next, but doing so after conditional blocks leaves a "gap" in the structure so that it is not tightly packed. This has been surprising for the author each time, and it seems like this behavior is a bit unintuitive.

We should consider either updating $next to handle this case as the author likely intends or, if this behavior must be maintained for backward-compatibility, provide an alternative built-in for doing this.

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

No branches or pull requests

2 participants