NULL indicator in Variant

Steve Teale steve.teale at britseyeview.com
Thu Oct 27 06:54:08 PDT 2011


> 
> I'm not sure having three possible states in Variant is a good idea, but
> maybe I'm not quite following.
> 
> Doesn't it already carry type information when not set to a value?
> 
> - Alex

Don't believe so. If you haven't set any value, hasValue() will return 
false, so it is kind of null, and it is not associated with a type - how 
would it know?

Steve



More information about the Digitalmars-d mailing list