[Issue 8192] inconsistent behavior of initialized immutable instance fields

2012-12-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8192 Andrej Mitrovic changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 8192] inconsistent behavior of initialized immutable instance fields

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8192 --- Comment #3 from art.08...@gmail.com 2012-06-03 12:25:49 PDT --- A better example: struct S { immutable int x = 1; int y; } struct S2 { immutable int x; int y; } void main(){ S s; S2 s2; static assert(s.y.off

[Issue 8192] inconsistent behavior of initialized immutable instance fields

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8192 art.08...@gmail.com changed: What|Removed |Added CC||art.08...@gmail.com --- Comment #

[Issue 8192] inconsistent behavior of initialized immutable instance fields

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8192 --- Comment #1 from timon.g...@gmx.ch 2012-06-03 10:23:29 PDT --- Better test case: struct S{ immutable y = 1; } void main(){ assert(S.y==1); // ok assert(&S.y!is null); // compile error with(S){ assert(&y!is null); //