Upcoming bitfield and adam's call to make it even better

ryuukk_ ryuukk.dev at gmail.com
Tue Oct 18 19:11:35 UTC 2022


If you didn't know, bitfields just landed in the latest beta!

https://dlang.org/changelog/2.101.0.html#dmd.bitfields

Definitely a huge improvement over the current way of doing 
bitfields (import module + template) (in my opinion)

However, in his blog, adam has some interesting concerns about 
it, and shared a proposal on how it could be made better

I personally like his proposal, i would love to hear what Walter 
thinks about it!

It takes what C offers, and make it safer to use! it's exactly a 
BetterC language!

(btw, we could do the same for tagged union and .enum ;) ;) ;) ;) 
;) ;) ;), just dropping this idea here)


Here is the link of adam's blog post: 
http://dpldocs.info/this-week-in-d/Blog.Posted_2022_09_12.html#d-bitfields-could-be-good


More information about the Digitalmars-d mailing list