Variant[Variant]
Ali Çehreli
acehreli at yahoo.com
Mon Aug 26 18:38:54 PDT 2013
On 08/24/2013 04:12 AM, Jason den Dulk wrote:
> Hi
>
> Straight off, I should ask if Variant[Variant] is a feasable idea.
It looks like it:
import std.variant;
void main()
{
Variant[Variant] aa;
aa[Variant(42)] = Variant("forty two");
assert(Variant(42) in aa);
assert(aa == [ Variant(42) : Variant("forty two") ]);
}
> This is the function
I spent 15 minutes trying to complete the code but failed. Could you
please provide a minimal program that almost compiles.
Ali
More information about the Digitalmars-d-learn
mailing list