Initializers are Evil!
nazo
lovesyao at gmail.com
Fri Jun 22 01:38:19 PDT 2007
dennis luehring さんは書きました:
> nazo schrieb:
> >>auto number = int.void
>
> are there different types of void?
> int.void != float.void != double.void?
see the following.
> why on earth should void be type-dependend? it isn't!
In other hand, add "nothing" keyword and NothingExp's type is made void.
But module's type is also void. so I think that it is not good.
> and typeof(int.void) should be void?
int.void should be VoidExp and typeof(int.void) should be int. And
compiler should optimize VoidExp for assign.
> why change the auto semantic?
don't change
>
> ciao dennis
More information about the Digitalmars-d
mailing list