[Issue 2483] DMD allows assignment to a scope variable
https://issues.dlang.org/show_bug.cgi?id=2483 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 2483] DMD allows assignment to a scope variable
http://d.puremagic.com/issues/show_bug.cgi?id=2483 --- Comment #5 from github-bugzi...@puremagic.com 2012-01-30 12:24:53 PST --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b0f5018d1c28cf1129c5eeb111262dbcf4a13d02 fix Issue 2483 - DMD allows assignment to a scope variable -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2483] DMD allows assignment to a scope variable
http://d.puremagic.com/issues/show_bug.cgi?id=2483 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2483] DMD allows assignment to a scope variable
http://d.puremagic.com/issues/show_bug.cgi?id=2483 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||patch CC||yebbl...@gmail.com Platform|x86 |All OS/Version|Windows |All --- Comment #3 from yebblies yebbl...@gmail.com 2012-01-30 16:31:05 EST --- https://github.com/D-Programming-Language/dmd/pull/659 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2483] DMD allows assignment to a scope variable
http://d.puremagic.com/issues/show_bug.cgi?id=2483 Denis verylonglogin@gmail.com changed: What|Removed |Added CC||verylonglogin@gmail.com Version|1.037 |D1 D2 --- Comment #1 from Denis verylonglogin@gmail.com 2012-01-22 17:10:28 MSK --- This bug leads to not calling destructor for the stack object and deleting the last heap object instead: --- import std.stdio; scope class C { int n; this(int n) { writefln( this(%s) at %s, this.n = n, cast(void*)this); } ~this() { writefln(~this(%s) at %s, n, cast(void*)this); } } void main() { int i; writefln(Stack is at %s, i); writefln(Heap is at %s, (new void[1]).ptr); { scope C c = new C(1); // at stack, never destroyed c = new C(2); // at heap, destroyed on collect c = new C(3); // ditto c = new C(4); // at heap, destroyed on scope exit } writeln(after scope); } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 2483] DMD allows assignment to a scope variable
http://d.puremagic.com/issues/show_bug.cgi?id=2483 Denis verylonglogin@gmail.com changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #2 from Denis verylonglogin@gmail.com 2012-01-22 17:22:40 MSK --- *** Issue 4214 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---