Delegate type inferred as pure
cal
callumenator at gmail.com
Mon Jan 28 10:12:30 PST 2013
On Monday, 28 January 2013 at 10:44:22 UTC, qznc wrote:
> On Monday, 28 January 2013 at 03:16:24 UTC, cal wrote:
>> Is the 'typeof((int a){return z;})' getting it wrong here?
>
> Do you really need the type? You could just use "auto".
>
> auto dg = (int a) {return z;};
Yeah this is reduced from something I'd like to use typeof for,
usually auto would be fine like you say.
More information about the Digitalmars-d-learn
mailing list