enum return type

Frustrated Frustrated at nowhere.com
Wed Mar 5 15:31:09 PST 2014


On Wednesday, 5 March 2014 at 23:20:08 UTC, bearophile wrote:
> Frustrated:
>
>> how does an enum return type work?
>>
>> enum foo(string s) { return s; }
>
> As far as I know that's not valid D (but D is extremely 
> tolerating).
>
> Bye,
> bearophile

Well, it works... not sure exactly what it's doing though.


More information about the Digitalmars-d-learn mailing list