3 ms·
Even in C you can e.g. use singleton structs to distinguish different semantic types.
by eutectic 10y ago
Even in C you can e.g. use singleton structs to distinguish different semantic types.
- JoeAltmaier 10y agoDidn't you used to be able to use typedef scalars for that? Somewhere that got lost (some name-mangling issue trumped it).
- Bromskloss 10y ago> Didn't you used to be able to use typedef scalars for that? Oh, I was so disappointed when I realised that those aren't considered distinct types. That ruins half the use of typedef.