D1 and read-only views?
Daniel Keep
daniel.keep.lists at gmail.com
Sun Apr 12 01:16:45 PDT 2009
As others have stated, your surmise is correct.
On a related note, I recently wrote a very simple cstring struct that
acts like const(char)[] does in D2. I was using unique interned
strings, and didn't want any surprises. You can still get a mutable
reference to the string by using .toString, but the struct is really
only there to prevent accidental modifications.
-- Daniel
More information about the Digitalmars-d-learn
mailing list