D needs a type expression syntax

Nick Treleaven nick at geany.org
Fri May 12 17:55:09 UTC 2023


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

The spec says `sizeof` for an empty struct is implementation 
defined:
https://dlang.org/spec/struct.html#struct_layout


More information about the Digitalmars-d mailing list