News for hackers. Stuff that matters.
Re:System programming in Rust: beyond safety by steveklabnik on Thursday June 15, 2017 @09:30AM (#14560156)
> I don't know how that macro works, but in kernel C bitfields are used in structs that map to device registers (that are mapped to memory).

Same thing. There's no requirement to use it in a kernel context, though you can if you'd like.

> So if i want to store a series of things with random (length) types in a single array, i can ? Sounds like i can, even though you explained the simpler case.

Yes, though it'd use a lot of unsafe code.

> And for the third (edit:second) time, that is not my point. Thing is that C does not have "secret stuff" and rust does.

Ah, sorry! The contrapositive (or whatever) is tough. My bad for misunderstanding.

There are no comments on this comment yet.