Re: out of memory, even tho remembered nothing!

new topic     » goto parent     » topic index » view thread      » older message » newer message
jaygade said...
eukat said...


I have previously considered any value (whether bit byte, char, string, etc) over 0 as TRUE and any value of zero or less to be FALSE. I refer you to:
http://i53.tinypic.com/x6c6fd.jpg

Fair enough, but none of the languages I've ever used (BASIC, C, Euphoria) have behaved like that.

Not that I'm an expert, because I'm not.

I think there's a good case for -1 being the same as true (since in two bits complement, -1 is the same as having all bits set to 1, whereas the integer 1 is simply a single bit set to 1 and the rest set to 0).

jaygade said...

Edit: I forget - did Euphoria prior to 4.0 do that?

As I stated previously in this thread, no.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu