Skip to content

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

@jasongraffius

Description

@jasongraffius

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions