NULL indicator in Variant

Robert Jacques sandford at jhu.edu
Thu Oct 27 08:16:07 PDT 2011


On Thu, 27 Oct 2011 10:16:26 -0400, Alex Rønne Petersen <xtzgzorex at gmail.com> wrote:
> On 27-10-2011 15:50, Steve Teale wrote:
>>>
>>> Surely Variant.init should do the trick?
>>
>> Dmitry,
>>
>> Are you talking about the new std.variant - I don't see 'init' currently.
>>
>> Steve
>
> He is probably referring to the 'init' property on the *type*, i.e.
> int.init and so on.
>
> - Alex

Init is a built-in property of all types and for Variant (both new and old) setting a variant to its init will cause it to have no value.


More information about the Digitalmars-d mailing list