3 variant questions

Saaa empty at needmail.com
Tue May 12 03:13:45 PDT 2009


I just noticed D1 does have std.stdarg.
I shouldn't just search on the website :(
(where it is missing on the phobos page)

> import std.stdarg;
>
> assert( _arguments[0] is typeid(int*) );
> auto arg = va_arg!(int*)(_argptr);
> *arg = 10;
>
> Probably.
:D
>
>  -- Daniel

So, you make arg point to the same as va_arg.
Why is this extra step necessary and why won't simple casting not work?




More information about the Digitalmars-d-learn mailing list