Detect 8-bit alligned type TXY by TX,TY.
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Tue Sep 19 06:33:25 UTC 2023
I assume what you are wanting is to get the alignment for a given type?
https://dlang.org/spec/property.html#alignof
If instead you want the offset of a given field that's different.
``T.field.offsetof``
https://dlang.org/spec/struct.html#struct_field_properties
Note: alignment cannot be represented by a type, it can only be
represented by a number (for instance it could be 3).
More information about the Digitalmars-d-learn
mailing list