makeIndex not working

Adam D. Ruppe destructionator at gmail.com
Sat Jul 2 19:42:42 PDT 2011


Jonathan M Davis wrote:
> The range has to be mutable.

Is there any easy way around this, aside from casting away
the outer immutable?

It's a very annoying limitation that doesn't really have to be
there - I believe the language itself would let you pass immutable
int[] to a regular function that expects immutable(int)[], since the
outermost reference is passed by value anyway.


More information about the Digitalmars-d-learn mailing list