using setjmp

P

pete

Mark said:
Yeah but that breaks my "no numbers except zero" rule. :) Besides,
sometimes 1 looks like l (ell).

ITYM == 0 and != 0 work well for false and true checking.
 
D

dot

ITYM == 0 and != 0 work well for false and true checking.

They should. Any software that does true/false should work on a two level
method... Subroutines should return 1 for true, 0 for false. However when
we test for true/false we should be looking for 0 = false, anything else =
true. That way we catch even the misbehaving stuff.

It's kinda interesting to see how the debate over this rages on, yet nobody
ever gets around to talking about the difference between "what you return"
and "what you test for"... Go figger.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top