(git HEAD) std.datetime spewing deprecation messages

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 6 01:14:13 PDT 2014


On Friday, 6 June 2014 at 00:34:19 UTC, Jonathan M Davis via 
Digitalmars-d wrote:
> And like with them, it's impossible to use ref for this, 
> because you can't use
> ref with variadic template arguments.

Wait what?

void foo(T...)(ref T args)
{
	args[0] = 42;
}

void main()
{
	int x;
	foo(x);
	assert(x == 42);
}


More information about the Digitalmars-d mailing list