January 12, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com Version|D2 |D1 & D2 --- Comment #10 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-11 19:44:07 PST --- Added D1 to mark Issue 2945 a duplicate. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 12, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |benoit@tionex.de --- Comment #11 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-11 19:44:14 PST --- *** Issue 2945 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: ------- |
January 19, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com Version|D1 & D2 |D2 --- Comment #12 from Walter Bright <bugzilla@digitalmars.com> 2013-01-19 11:37:42 PST --- D1 isn't going to get enhancements. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 19, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 --- Comment #13 from Walter Bright <bugzilla@digitalmars.com> 2013-01-19 11:42:36 PST --- This seems more of a "why do this" rather than "why not" ? Is C# doing it really a compelling case? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 19, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 --- Comment #14 from bearophile_hugs@eml.cc 2013-01-19 12:20:48 PST --- (In reply to comment #13) > Is C# doing it really a compelling case? Generally C# is a well designed languages. But in this case it's not a matter of copying C#. In D I often have had to write: (new Foo()).bar() But that's not nice, because in D you are used to use UFCS: new Foo().bar() So it's not a big thing, but (unless it clashes with something else I am unaware of) it's a nice little improvement to have. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 20, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 --- Comment #15 from timon.gehr@gmx.ch 2013-01-19 18:42:48 PST --- (In reply to comment #13) > This seems more of a "why do this" rather than "why not" ? In my opinion it is exactly the other way round. The "why not" question people actually ask. Note that this has been requested independently at least 5 times, and it has come up a few times on D.learn as well IIRC. It lifts an arbitrary restriction and is very cheap. (Move a few lines of parser code somewhere else.) > Is C# doing it really a compelling case? No. But I do not think C# programmers ask "why do this". -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 09, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 --- Comment #16 from bearophile_hugs@eml.cc 2013-02-08 16:27:38 PST --- An even better syntax is to allow new to act as a static method, that allows a fully UFCS syntax: class Foo { void bar() {} } Foo().new.bar(); Foo f = Foo.new; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 22, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 Denis Shelomovskij <verylonglogin.reg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |verylonglogin.reg@gmail.com --- Comment #17 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2013-02-22 11:39:49 MSK --- `c.new N().foo();` is already a valid syntex as Kenji Hara mentioned in pull discussion so I don't see any reasons to not merge implementing pull as current situation doesn't look consistent. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 09, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 --- Comment #18 from github-bugzilla@puremagic.com 2013-06-08 19:57:41 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/405a549e87cce88e68367e7a3aeb358cfd38f41d Fix issue 8635 - Allow postfix expressions for new https://github.com/D-Programming-Language/dmd/commit/44fdd81dcd0086e551fd04c0ee9f109315755465 Merge pull request #1111 from tgehr/master Issue 8635 - Allow postfix expressions for new -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 09, 2013 [Issue 8635] Allow postfix expressions for new | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8635 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #19 from Kenji Hara <k.hara.pg@gmail.com> 2013-06-08 23:57:50 PDT --- Grammar fix: https://github.com/D-Programming-Language/dlang.org/pull/337 -- 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