std.algorithm and immutable arrays

Steven Schveighoffer schveiguy at yahoo.com
Thu Jun 10 05:00:24 PDT 2010


On Wed, 09 Jun 2010 20:41:48 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> (b) Promote a change in the compiler to convert immutable(T[]) to  
> immutable(T)[] when passed by value into a function. This is safe and  
> sensible.

I think this works well.

Same goes for const and shared.

-Steve


More information about the Digitalmars-d mailing list