Why did you remove std.algorithm.inPlace?

Haruki Shigemori rayerd.wiz at gmail.com
Thu Jun 25 07:52:02 PDT 2009


import std.algorithm, std.stdio;
void main()
{
  //valid on dmd 2.011
  //invalid on dmd 2.030 because inPlace is undefined
  inPlace!(writef)(cast(int[])[1,2,3]);
}

However std.algorithm.map requires a function that returns non-void
value as a template parameter.



More information about the Digitalmars-d mailing list