NULL indicator in Variant
Steve Teale
steve.teale at britseyeview.com
Thu Oct 27 09:55:52 PDT 2011
> Any reason making a custom NULL type wouldn't work? i.e:
>
> struct NULL {}
>
> Variant var = NULL;
>
> assert(var.type == typeof(NULL));
I don't think that is any improvement on hasValue(). It would tell you
the particular value was null, but would not tell you what type it was.
In a typical situation you need to tell the database server the type of
the parameter, even if it is null.
Steve
More information about the Digitalmars-d
mailing list