Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 18, 2012 [Issue 7311] New: typeof(x~y) should never be const(T)[] | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7311 Summary: typeof(x~y) should never be const(T)[] Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: timon.gehr@gmx.ch --- Comment #0 from timon.gehr@gmx.ch 2012-01-18 10:56:30 PST --- typeof(x~y) should never be const(T)[]. const only has a meaning in presence of aliasing. Unique const data is meaningless. int[] a; immutable int[] b; const int[] c; static assert(typeof(a~b)==int[]); static assert(typeof(a~c)==int[]); static assert(typeof(b~b)==immutable(int)[]); static assert(typeof(b~c)==immutable(int)[]); static assert(typeof(c~c)==int[]); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 19, 2012 [Issue 7311] typeof(x~y) should never be const(T)[] if T has no mutable indirections | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7311 timon.gehr@gmx.ch changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|typeof(x~y) should never be |typeof(x~y) should never be |const(T)[] |const(T)[] if T has no | |mutable indirections --- Comment #1 from timon.gehr@gmx.ch 2012-01-19 02:31:01 PST --- (of course, this only applies if T has no mutable indirections) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 26, 2013 [Issue 7311] typeof(x~y) should never be const(T)[] if T has no mutable indirections | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=7311 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |DUPLICATE --- Comment #2 from yebblies <yebblies@gmail.com> 2013-04-26 16:37:06 EST --- *** This issue has been marked as a duplicate of issue 1654 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation