Variant is very usefull but a function who take a variant as parameter
do not works whithout a cast. but You can assign a value form any type
in statement Variant v = 2u.
the code below explain well the problem
---
import std.string;
import std.stdio;
import std.variant;
void func(
On 11/30/2011 07:53 PM, bioinfornatics wrote:
Variant is very usefull but a function who take a variant as parameter
do not works whithout a cast. but You can assign a value form any type
in statement Variant v = 2u.
the code below explain well the problem
---
import std.string;
Le mercredi 30 novembre 2011 à 22:19 +0100, Timon Gehr a écrit :
On 11/30/2011 07:53 PM, bioinfornatics wrote:
Variant is very usefull but a function who take a variant as parameter
do not works whithout a cast. but You can assign a value form any type
in statement Variant v = 2u.
the
On 11/30/2011 11:55 PM, bioinfornatics wrote:
Le mercredi 30 novembre 2011 à 22:19 +0100, Timon Gehr a écrit :
On 11/30/2011 07:53 PM, bioinfornatics wrote:
Variant is very usefull but a function who take a variant as parameter
do not works whithout a cast. but You can assign a value form any