How does this work ?

2012-04-19 Thread Somedude
I'm going through a number of bug reports, trying to reproduce the problems and see what can be closed easily (i.e non reproduced, correct behaviour, etc), and I just came accross http://d.puremagic.com/issues/show_bug.cgi?id=7326 titled "write interprets enum with byte backing type as a character"

How does this work?

2014-11-23 Thread Freddy via Digitalmars-d-learn
I know what this does, but can someone explain how it works? static if((typeof((inout int=0){ })));

Re: How does this work ?

2012-04-19 Thread Andrej Mitrovic
On 4/19/12, Somedude wrote: > Can anyone explain me if it is the correct behaviour, and if yes, why ? It's fixed now and we can close this down. I think it was related to formatting issues, that's all.

Re: How does this work?

2014-11-23 Thread ketmar via Digitalmars-d-learn
On Sun, 23 Nov 2014 22:51:48 + Freddy via Digitalmars-d-learn wrote: > I know what this does, but can someone explain how it works? > > static if((typeof((inout int=0){ > > }))); > it was here somewhere. this is, as you can see, a lambda. `typeof()` can be used even for invalid cod