Re: request for change of boolean

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

Huh. Learn something new everyday.

I've never encountered a language where any nonzero value was counted as
"false". I know that some languages treat true as equal to "-1" and some others
treat true as equal to "1" but that's for converting boolean to integer.

Which languages treat numbers <= 0 as false? Which versions of Pascal?

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu