std.typecons: PrimitiveRef

Dicebot via Digitalmars-d digitalmars-d at
Tue Mar 24 12:39:55 PDT 2015

On Tuesday, 24 March 2015 at 15:38:04 UTC, Andre wrote:
> I think it is useful to add to std.typecons as there is no 
> possibility
> to use ref for type tuples.

This sounds like a bad idea because in D `ref` is not a type 
qualifier and thus not part of a type. Not though that you can 
apply ref storage class to type tuple as a whole:

void foo(T...)(ref T args) { }

More information about the Digitalmars-d mailing list