Why typedef's shouldn't have been removed :(
H. S. Teoh
hsteoh at quickfur.ath.cx
Fri May 11 12:44:18 PDT 2012
On Fri, May 11, 2012 at 03:04:52PM -0400, Steven Schveighoffer wrote:
[...]
> struct S
> {
> int x;
> static S opNull() { return S(0);}
> }
>
> S s = null; // equivalent to S(0);
[...]
Wait, is this existing syntax, or proposed syntax?
It would be mindblowingly awesome if it was existing syntax...
T
--
The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners... -- Slashdotter
More information about the Digitalmars-d
mailing list