Normalize void

ag0aep6g anonymous at example.com
Tue Jul 10 11:37:25 UTC 2018


On 07/10/2018 11:56 AM, Yuxuan Shui wrote:
> Possible alternatives:
> 
> * struct Void {}. Takes 1 byte, not as ideal
> * alias Void = AliasSeq!(). Doesn't work as template argument. i.e.
>        SomeTemplate!Void; // actually become SomeTemplate!()

What about `void[0]`? It's a proper type. You can declare a field with 
it. Size is 0.


More information about the Digitalmars-d mailing list