C++ traps that D2 doesn't avoid yet?
Denis Koroskin
2korden at gmail.com
Thu Nov 6 12:46:18 PST 2008
On Thu, 06 Nov 2008 23:34:55 +0300, Walter Bright
<newshound1 at digitalmars.com> wrote:
> Steven Schveighoffer wrote:
>> Even experienced developers fall into some of these traps. I know I
>> occasionally fell into this trap:
>> if(x);
>> x->doSomething();
>> But no more with D, because it's not allowed. Those kinds of things
>> can be easily prevented, and are common mistakes by all programmers.
>
> Here's another fun one:
>
> printf("%d\n", 8l);
>
> What does that print?
Yay, it is hardly distiguishable even at 500% zoom (Courier New)!
More information about the Digitalmars-d
mailing list