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

add minver/maxver attributes to enum values #406

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented Apr 4, 2021

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
Copy link
Contributor Author

robUx4 commented Apr 4, 2021

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

@hubblec4
Copy link

hubblec4 commented Apr 4, 2021

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
Copy link
Contributor Author

robUx4 commented Apr 4, 2021

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

specification.markdown Outdated Show resolved Hide resolved
specification.markdown Outdated Show resolved Hide resolved
specification.markdown Outdated Show resolved Hide resolved
specification.markdown Outdated Show resolved Hide resolved
specification.markdown Outdated Show resolved Hide resolved
Copy link
Contributor Author

@robUx4 robUx4 left a comment

Choose a reason for hiding this comment

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

Updated according to comments.

specification.markdown Outdated Show resolved Hide resolved
specification.markdown Outdated Show resolved Hide resolved
specification.markdown Outdated Show resolved Hide resolved
specification.markdown Outdated Show resolved Hide resolved
@robUx4 robUx4 requested a review from mbunkus June 6, 2021 16:33
@hubblec4
Copy link

hubblec4 commented Jun 6, 2021

@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 3 commits July 11, 2021 08:55
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 added this to the new-rfc milestone Jul 2, 2023
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