Hacker News new | ask | show | jobs
by dzogchen 498 days ago
C and C++ both have support for bit-fields.

https://en.wikipedia.org/wiki/Bit_field#Examples

https://fbb-git.gitlab.io/cppannotations/cppannotations/html...

https://en.cppreference.com/w/cpp/language/bit_field

1 comments

However they lack support for pointers to those fields. Which zig has.