Generic collection/element function signatures in D2 versus D1

BLS windevguy at hotmail.de
Sun Sep 5 06:40:59 PDT 2010


On 05/09/2010 02:16, Jonathan M Davis wrote:
> void foo(T)(T[] collection, T elem)
>>  {
>>       // Blah, whatever
>>  }
>>

I am curious, how this will look and feel once inout is working ?

inout void foo(T)(inout(T)[] collection, inout T elem)
{
   // Blah, whatever}
}



More information about the Digitalmars-d-learn mailing list