[DGD] boolean integers: mudos vs dgd

Raymond Jennings shentino at gmail.com
Sun Apr 21 10:07:28 CEST 2013


A friend of mine (blain) reports that the expression (5 || 3) returns 5,
and the expression (3 || 5) returns 3, whereas dgd returns 1 for both of
them.

First of all, any major reason for the difference?

Secondly, is treating an integer as a boolean value in this way stepping on
undefined or implementation defined behavior either in LPC or regular C?



More information about the DGD mailing list