3 variant questions

Christopher Wright dhasenan at gmail.com
Mon May 11 18:09:42 PDT 2009


Saaa wrote:
> "Christopher Wright" <dhasenan at gmail.com> wrote in message 
> news:gu8v1b$1uth$1 at digitalmars.com...
>> Saaa wrote:
>>> How do I return a variant type in D1?
>>> After assessing that a variadic argument is an array, how do I check its 
>>> depth?
>>> How do I set the variable given to me through the _arguments array?
>>> thanks :)
>> Variant func()
>> {
>> return variant(5);
>> }
> I can't seem to find Variant in D1

In D1/Phobos, you can use std.boxer.Box, which can work with variadic 
arguments.


More information about the Digitalmars-d-learn mailing list