"Manfred_Nowak" <[email protected]> wrote in message news:[email protected]... > Andrei Alexandrescu wrote: > >> return result; > > Since when is it legal to return a local array? >
Since D2, if it's a static array (as result is): "Static arrays are value types. Unlike in C and D version 1, static arrays are passed to functions by value. Static arrays can also be returned by functions." - http://www.digitalmars.com/d/2.0/arrays.html#static-arrays
