DMD 1.035 and 2.019 releases
Tomas Lindquist Olsen
tomas at famolsen.dk
Thu Sep 4 06:13:38 PDT 2008
Denis Koroskin wrote:
>
> It may have problems with the q{}:
>
> struct q
> {
> float t;
> }
>
> auto foo = q{ t = 3.1415f }; // what's the type of foo?
>
> But then, does anybody using it?
>
> Other than that I agree, current solution is not very good.
>
A valid point, I can think of lots of other ways to provide this specific feature though. I'd
also guess that struct literals are much more common than tokenized strings...
So... I don't think this is a valid reason to dismiss this!
More information about the Digitalmars-d-announce
mailing list