[DGD] boolean integers: mudos vs dgd

Noah Gibbs noah_gibbs at yahoo.com
Sun Apr 21 16:52:01 CEST 2013


I think it's actually undefined in C as well, according to standard.  But if it's undefined, 1 is a perfectly good answer.


________________________________
 From: Felix A. Croes <felix at dworkin.nl>
To: dgd at dworkin.nl 
Sent: Sunday, April 21, 2013 4:11 AM
Subject: Re: [DGD] boolean integers: mudos vs dgd
 

Raymond Jennings <shentino at gmail.com> wrote:

> 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.

It's 1 in C.  || evaluates to a boolean value.


> First of all, any major reason for the difference?

Who knows what the reason might be?  It's MudOS, not DGD, which has some
explaining to do.

Regards,
Felix Croes
____________________________________________
https://mail.dworkin.nl/mailman/listinfo/dgd


More information about the DGD mailing list