Enum that can be 0 or null

ParticlePeter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 7 11:50:11 PDT 2016


On Tuesday, 7 June 2016 at 14:31:40 UTC, Alex Parrill wrote:
> I don't think opCast gets called for implicit conversions; it 
> only gets called for explicit casts. I'll test it later.

It does for type bool, but I fear that's the only exception.


More information about the Digitalmars-d-learn mailing list