readf anyone?

Steven Schveighoffer schveiguy at yahoo.com
Tue Jun 22 13:50:20 PDT 2010


On Tue, 22 Jun 2010 16:42:46 -0400, Tomek Sowiński <just at ask.me> wrote:

>> 	double q;
>> 	readf("%s", &q);
>
> Why it takes a pointer, not a ref?

Probably because it's variadic, so the compiler will pass by value if you  
don't use a pointer.

-Steve


More information about the Digitalmars-d mailing list