sumtypes for D

Timon Gehr timon.gehr at gmx.ch
Tue Nov 29 14:21:21 UTC 2022


On 11/29/22 15:18, Timon Gehr wrote:
> 
> sumtype WithDefault(T){
>      Default;
>      T;
> }

Should have been:

sumtype WithDefault(T){
     Default,
     T value,
}


More information about the Digitalmars-d mailing list