-
-
Notifications
You must be signed in to change notification settings - Fork 379
add bitfields documentation #3190
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request, @WalterBright! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
@CyberShadow can we please have a way to find what the errors are with DAutoTest? |
With DautoTest (unless you have LeTeX error in which case you're screwed) scroll all the way to the bottom of of the Build Log (click view). In this case your problem is
|
c4bd672
to
55a1b93
Compare
Oh, I clicked on "base view". No errors there. I wonder what that is. Anyhow, thanks! Hope it works now. |
The text mentions |
55a1b93
to
0b956a0
Compare
@MrSmith33 it does now! |
0b956a0
to
3dca68e
Compare
3dca68e
to
ccdacb6
Compare
The dmd bitfields PR has been merged, under the -preview=bitfields switch. This one needs to be, too. |
OK - As soon as it mentions the preview flag I will merge it |
does the best practices section at line 44 still hold? |
DeclaratorInitializer should also get a rule with BitfieldDeclarator in the grammar. DeclaratorIdentifier is only used for declarators after the first comma, while DeclaratorInitializer is used for the first declarator. |
Another potential ambiguity in the grammar:
The statement could be a bitfield with Edit: The text already says "Bit fields can only be fields in structs, unions and classes.", so that may be enough. |
@WalterBright you may want to update this part: Lines 90 to 94 in ae9d2d6
|
@maxhaton If bitfields are here to stay it would be good to merge this after adding any of the diff suggestions as you see fit. After that I can make a pull to fix #3190 (comment) |
ccdacb6
to
cd59a5f
Compare
We really shouldn't document this useless trash feature that never passed the DIP review to be added to the language. |
cfe1bf7
to
8f7a8c2
Compare
Done. |
8f7a8c2
to
83b51b3
Compare
Ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like Adam said, this feature hasn't been added to the language. This specification text makes it sound like it is. Perhaps it can be documented on a separate page for preview switches.
A preview switch doesn't imply it's not part of the language, there are preview switches for current language features. |
Since bitfields do not influence anything else in the language semantics, there's no longer a purpose to putting bitfields behind a preview switch. |
Implementation: dlang/dmd#13568