Where statement
bearophile
bearophileHUGS at lycos.com
Sun Jul 25 06:48:21 PDT 2010
Michel Fortin:
> Is this really an improvement over using a delegate literal?
>
> auto c = {
> auto a = retrieve_a();
> auto b = retrieve_b();
> return sqrt(a*a + b*b);
> };
Cute :-) I have never seen this used in D code. I think you will need to add () at the end when @property get implemented fully. I hope the D compiler is able to inline that delegate.
Bye,
bearophile
More information about the Digitalmars-d
mailing list