Who wore it better?

Nick Treleaven via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 24 03:40:19 PDT 2016


On Friday, 15 April 2016 at 18:46:01 UTC, Steven Schveighoffer 
wrote:
> inout(T)[] overlap(T)(inout(T)[] r1, inout(T)[] r2)

Might be nice if inout applied to template parameter types:

T[] overlap(inout T)(T[] r1, T[] r2);

If it wasn't for the virtual function issue, I wonder if inout 
would still be needed on runtime arguments given the above 
feature?

Using traits like CopyConstness might be enough.


More information about the Digitalmars-d mailing list