D needs a type expression syntax

Basile B. b2.temp at gmx.com
Thu May 11 14:02:14 UTC 2023


On Thursday, 11 May 2023 at 13:51:28 UTC, Dukc wrote:
> Good points. I'll add:
>
> - `sizeof(T[0]) == 0`, but `sizeof(Tuple!()) == 1`. I'm not 
> sure why.

That sounds correct because tuples are structs with array 
semantics. Empty struct size is one, so should be the size of an 
empty tuple.


More information about the Digitalmars-d mailing list