const debacle
Sean Kelly
sean at invisibleduck.org
Fri Mar 21 11:22:54 PDT 2008
== Quote from Steven Schveighoffer (schveiguy at yahoo.com)'s article
> Hm... can't you just do this like:
> T[] func(T)(T[] buf) {...}
> and T will be either const(T), invariant(T), or just T?
> In any case, the crux of the problem is still there. For the version with
> just T, the compiler is not guaranteeing that func doesn't modify the input.
You're right of course. Darn mornings.
Sean
More information about the Digitalmars-d
mailing list