[Issue 1759] Closures and With Statements
https://issues.dlang.org/show_bug.cgi?id=1759 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/38d906b8366a881d19a7f9267b536d372409da31 fix Issue 1759 - Closures and With Statements https://github.com/D-Programming-Language/dmd/commit/a1d857a4f46aa21722712c3014fd40c978ee28c5 Merge pull request #4518 from 9rnsr/fix1759 --
[Issue 1759] Closures and With Statements
https://issues.dlang.org/show_bug.cgi?id=1759 --- Comment #5 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/38d906b8366a881d19a7f9267b536d372409da31 fix Issue 1759 - Closures and With Statements https://github.com/D-Programming-Language/dmd/commit/a1d857a4f46aa21722712c3014fd40c978ee28c5 Merge pull request #4518 from 9rnsr/fix1759 Issue 1759 - Closures and With Statements --
[Issue 1759] Closures and With Statements
https://issues.dlang.org/show_bug.cgi?id=1759 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull Hardware|x86 |All OS|Windows |All --- Comment #4 from Kenji Hara k.hara...@gmail.com --- https://github.com/D-Programming-Language/dmd/pull/4518 --
[Issue 1759] Closures and With Statements
http://d.puremagic.com/issues/show_bug.cgi?id=1759 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #3 from Don clugd...@yahoo.com.au 2012-08-15 06:36:20 PDT --- (In reply to comment #1) This is not a bug it's a feature, No, it's a wrong-code bug. This one has been on my to-do list for years now. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1759] Closures and With Statements
http://d.puremagic.com/issues/show_bug.cgi?id=1759 timon.g...@gmx.ch changed: What|Removed |Added Status|RESOLVED|REOPENED CC||timon.g...@gmx.ch Resolution|INVALID | --- Comment #2 from timon.g...@gmx.ch 2012-08-08 02:05:30 PDT --- (In reply to comment #1) This is not a bug it's a feature, This can lead to memory corruption in @safe code, therefore it is a bug. there's solution: This is a workaround. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 1759] Closures and With Statements
http://d.puremagic.com/issues/show_bug.cgi?id=1759 Salih Dincer sali...@hotmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC||sali...@hotmail.com Resolution||INVALID --- Comment #1 from Salih Dincer sali...@hotmail.com 2012-08-07 20:56:08 PDT --- This is not a bug it's a feature, there's solution: void main() { struct SS { int a, b, c; } int delegate () addss(SS obj){ return { with(obj) return a+b+c; }; } addss(SS(7, 10, 60))().writeln((total numbers 77)); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---