[Issue 3091] "auto x = new shared foo" does not compile
https://issues.dlang.org/show_bug.cgi?id=3091 Andrei Alexandrescu changed: What|Removed |Added Version|2.030 |D2 --
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 Kenji Hara changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 --- Comment #7 from Kenji Hara 2012-09-25 06:44:15 PDT --- Fix for language reference: https://github.com/D-Programming-Language/d-programming-language.org/issues/159 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 --- Comment #6 from github-bugzi...@puremagic.com 2012-09-25 01:28:44 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/77a617330302166c334f7760fb02e57032d08d21 Issue 3091 - "auto x = new shared foo" does not compile https://github.com/D-Programming-Language/dmd/commit/ec3e3300949b5aef30c7a71a0287a77135739144 Merge pull request #556 from 9rnsr/fix3091 Issue 3091 & 6873 - Make "StorageClasses Type" syntax available in some where -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 --- Comment #5 from Kenji Hara 2011-12-12 05:33:41 PST --- (In reply to comment #4) > With that patch, when will "new shared foo()" be allowed? Is it semantically > equivalent to "cast(shared) new foo()"? "new shared foo()" is allowed, and it is semantically equivalent to "new shared(foo)()", not cast. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 --- Comment #4 from Jason House 2011-12-12 05:13:23 PST --- With that patch, when will "new shared foo()" be allowed? Is it semantically equivalent to "cast(shared) new foo()"? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 Kenji Hara changed: What|Removed |Added Keywords||patch --- Comment #3 from Kenji Hara 2011-12-12 04:27:19 PST --- https://github.com/D-Programming-Language/dmd/pull/556 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 --- Comment #2 from Kenji Hara 2011-12-12 04:07:44 PST --- NewExp and StructLiteralExp have this issue. inout(int) test3091(inout(int) _dummy = 0) { struct Foo {} auto pm = new Foo; auto pc = new const Foo; auto pw = new inout Foo; auto psm = new shared Foo; auto psc = new shared const Foo; auto psw = new shared inout Foo; auto pi = new immutable Foo; auto m = Foo(); auto c = const Foo(); auto w = inout Foo(); auto sm = shared Foo(); auto sc = shared const Foo(); auto sw = shared inout Foo(); auto i = immutable Foo(); return 0; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com Severity|minor |enhancement -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 3091] "auto x = new shared foo" does not compile
http://d.puremagic.com/issues/show_bug.cgi?id=3091 Sobirari Muhomori changed: What|Removed |Added Severity|normal |minor --- Comment #1 from Sobirari Muhomori 2009-10-28 10:02:46 PDT --- Seems like an RFE. Try to compile this: --- class A{} int main() { const a = new const A(); const a = new immutable A(); return 0; } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---