third draft: add bitfields to D

Steven Schveighoffer schveiguy at gmail.com
Fri Jul 5 21:16:28 UTC 2024


On Sunday, 5 May 2024 at 23:08:29 UTC, Walter Bright wrote:
> https://github.com/WalterBright/documents/blob/2ec9c5966dccc423a2c4c736a6783d77c255403a/bitfields.md
>
> Adds introspection capabilities.
>
> https://github.com/dlang/dmd/pull/16444

"In practice, however, if one sticks to int, uint, long and ulong 
bitfields, they are laid out the same."

This has been proven false: 
https://forum.dlang.org/post/gsofogcdmcvrmcfxhusy@forum.dlang.org

I no longer agree that this is a good feature to add, at least 
with the deferral of specification to the incumbent C compiler.

-Steve


More information about the dip.development mailing list