New in C#4

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Oct 29 13:45:38 PDT 2008


On Wed, Oct 29, 2008 at 4:28 PM, bearophile <bearophileHUGS at lycos.com> wrote:
> Denis Koroskin:
>
>> graphicsDevice->updateSettings(fullScreen: true, verticalSync: true,
>> enableBloom: false, fullScreenAA: true);
>
> Seeing this, now I think the syntax with equals is a little shorter, so maybe I prefer the equals:
>
> graphicsDevice->updateSettings(fullScreen=true, verticalSync=true,
> enableBloom=false, fullScreenAA=true);

Er, what?  They are exactly the same size..

Besides, = is already an expression in D.  f(x = 5) has a well-defined
meaning already.



More information about the Digitalmars-d mailing list