On 11/5/16 4:22 PM, Adam D. Ruppe wrote:
On Saturday, 5 November 2016 at 20:15:14 UTC, Kapps wrote:
That feels like it should be a compiler warning.
I'm now of the opinion that the {} delegates should be deprecated
(instead use () {} delegates)... this comes up a lot and there's a few
other
On 11/8/16 11:31 AM, Nick Sabalausky wrote:
On 11/05/2016 04:22 PM, Adam D. Ruppe wrote:
On Saturday, 5 November 2016 at 20:15:14 UTC, Kapps wrote:
That feels like it should be a compiler warning.
I'm now of the opinion that the {} delegates should be deprecated
(instead use () {}
On 11/05/2016 04:22 PM, Adam D. Ruppe wrote:
On Saturday, 5 November 2016 at 20:15:14 UTC, Kapps wrote:
That feels like it should be a compiler warning.
I'm now of the opinion that the {} delegates should be deprecated
(instead use () {} delegates)... this comes up a lot and there's a few
On Saturday, 5 November 2016 at 20:15:14 UTC, Kapps wrote:
That's really confusing. I've used D for quite a while, and
didn't know that. Admittedly I doubt I've ever tried () => { },
but given languages like C# which this syntax was partially
taken from(?), that behaviour is very unexpected.
On Sunday, 6 November 2016 at 00:19:57 UTC, Chris Wright wrote:
On Sat, 05 Nov 2016 20:15:14 +, Kapps wrote:
Admittedly I doubt I've ever tried () => { }, but given
languages
like C# which this syntax was partially taken from(?)
D had delegates of that form years before C# had short-form
On Saturday, 5 November 2016 at 20:22:13 UTC, Adam D. Ruppe wrote:
On Saturday, 5 November 2016 at 20:15:14 UTC, Kapps wrote:
That feels like it should be a compiler warning.
I'm now of the opinion that the {} delegates should be
deprecated (instead use () {} delegates)... this comes up a
On Sat, 05 Nov 2016 20:15:14 +, Kapps wrote:
> Admittedly I doubt I've ever tried () => { }, but given languages
> like C# which this syntax was partially taken from(?)
D had delegates of that form years before C# had short-form delegates.
Otherwise it would likely have followed suit.
On Saturday, 5 November 2016 at 20:15:14 UTC, Kapps wrote:
That feels like it should be a compiler warning.
I'm now of the opinion that the {} delegates should be deprecated
(instead use () {} delegates)... this comes up a lot and there's
a few other places too where it is a pain... and it
On Saturday, 5 November 2016 at 10:09:55 UTC, Adam D. Ruppe wrote:
On Saturday, 5 November 2016 at 08:27:49 UTC, Nemanja Boric
wrote:
// This - does nothing
variant.visit!((string s) => { enforce(false); x = 2;
},
It calls the function... which returns a delegate, which you
On Saturday, 5 November 2016 at 10:09:55 UTC, Adam D. Ruppe wrote:
On Saturday, 5 November 2016 at 08:27:49 UTC, Nemanja Boric
wrote:
[...]
It calls the function... which returns a delegate, which you
never called.
This is one of the most common mistakes people are making: {}
in D is a
On Saturday, 5 November 2016 at 08:27:49 UTC, Nemanja Boric wrote:
// This - does nothing
variant.visit!((string s) => { enforce(false); x = 2; },
It calls the function... which returns a delegate, which you
never called.
This is one of the most common mistakes people are
11 matches
Mail list logo