[Issue 2625] Creating new struct with literal bypasses immutability of members if struct is in array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 4 06:19:13 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2625
maxmo at pochta.ru changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://digitalmars.com/d/2.0
| |/struct.html
Keywords| |spec
------- Comment #5 from maxmo at pochta.ru 2009-04-04 08:19 -------
(In reply to comment #3)
> Where on that page is the issue addressed?
see "Const and Invariant Structs"
> > I think, broken() is correct, since invariant data can be referenced directly,
> > so it's incorrect for it to change in time.
>
> I'm a little puzzled by your use of "correct".
I meant, it's correct that error is given for broken().
--
More information about the Digitalmars-d-bugs
mailing list