News for hackers. Stuff that matters.
Re:The problem with C by InfiniteRand on Sunday September 06, 2020 @10:51AM (#24391719)
Anonymous struts and unions allow fine grained control of memory layout in embedded code. (I am not 100% sure this is not UB but I have seen it in a lot of embedded code)

Not sure if this is impossible in C++, I think some of the alignment functionality added in the past several versions might cover this, but it is not as simple.

IMHO, Not a big reason since every compiler offers some non-standard keywords to cover this use case, but a reason nonetheless

There are no comments on this comment yet.