Does opSlice work with immutable values?
Joseph Cassman
jc7919 at outlook.com
Mon Feb 24 09:11:19 PST 2014
On Monday, 24 February 2014 at 11:37:43 UTC, anonymous wrote:
> Mark opSlice const then.
That did it. Thanks.
The const/immutable language spec page states that mutable and
immutable are implicitly convertible to const. Never thought
about this in the other direction though. And from what I
understand, the const keyword added to a function makes the this
pointer const. Can't see exactly why this works but it does.
Anyways appreciate the help.
Joseph
More information about the Digitalmars-d-learn
mailing list