std.algorithm and immutable arrays
Michel Fortin
michel.fortin at michelf.com
Wed Jun 9 19:09:52 PDT 2010
On 2010-06-09 20:41:48 -0400, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> said:
> (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.
This looks good to me.
Although I wonder what happens if that range is a class, will you get a
rebindable reference to a class?
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list