Skip to content

add minver/maxver attributes to enum values - #406

Merged
robUx4 merged 2 commits into
masterfrom
enum-minver
May 3, 2026
Merged

add minver/maxver attributes to enum values#406
robUx4 merged 2 commits into
masterfrom
enum-minver

Conversation

@robUx4

@robUx4 robUx4 commented Apr 4, 2021

Copy link
Copy Markdown
Collaborator

This allows adding new enum values without forcing old readers to support them.

The explanation is copied from the minver attribute of "element"

This is necessary (IMO) to add new values like zstd compression

@robUx4 robUx4 added clarifications Improve the readability and comprehension of the specs format addition To consider in future EBML versions labels Apr 4, 2021
@robUx4

robUx4 commented Apr 4, 2021

Copy link
Copy Markdown
Collaborator Author

Actually the default value should not be 1 but the minver value of the element...

@hubblec4

hubblec4 commented Apr 4, 2021

Copy link
Copy Markdown

Thats the same thing with the element attribute "minver" and "maxver"

What is when this enum is removed in the next ebml-version... and what is when this enum returns in a next next version?

@robUx4

robUx4 commented Apr 4, 2021

Copy link
Copy Markdown
Collaborator Author

Indeed, there's no reason to have one and not the other. I added both.

Comment thread specification.markdown Outdated
Comment thread specification.markdown Outdated
Comment thread specification.markdown Outdated
Comment thread specification.markdown Outdated
Comment thread specification.markdown Outdated

@robUx4 robUx4 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated according to comments.

Comment thread specification.markdown Outdated
Comment thread specification.markdown Outdated
Comment thread specification.markdown Outdated
Comment thread specification.markdown Outdated
@robUx4
robUx4 requested a review from mbunkus June 6, 2021 16:33
@hubblec4

hubblec4 commented Jun 6, 2021

Copy link
Copy Markdown

@robUx4 can you change the title to
"add a minver and a maxver attribute to enum values"

@robUx4 robUx4 changed the title add a minver attribute to enum values add minver/maxver attributes to enum values Jun 13, 2021
robUx4 added 2 commits May 3, 2026 10:41
This allows adding new enum values without forcing old readers to support them.

The explanation is copied from the minver attribute of "element"
This could allow deprecating enum values.
@robUx4

robUx4 commented May 3, 2026

Copy link
Copy Markdown
Collaborator Author

Merging so we can publish the first draft and discuss changes if needed.

@robUx4
robUx4 merged commit c2c1f54 into master May 3, 2026
1 check passed
@robUx4
robUx4 deleted the enum-minver branch May 3, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clarifications Improve the readability and comprehension of the specs format addition To consider in future EBML versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants