D needs a type expression syntax

Max Samukha maxsamukha at gmail.com
Sat May 13 04:16:12 UTC 2023


On Thursday, 11 May 2023 at 13:51:28 UTC, Dukc wrote:
>
> `sizeof(Tuple!()) == 1`. I'm not sure why.

A misfeature copied from C++ ("two instances of an empty class 
must have different addresses"). There are workarounds, such as 
like making the struct 'extern(C)', but they are ugly and 
unreliable.




More information about the Digitalmars-d mailing list