• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re(2): CriticalAlert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re(2): CriticalAlert


  • Subject: Re(2): CriticalAlert
  • From: Jens Bauer <email@hidden>
  • Date: Thu, 20 Dec 2001 20:58:02 +0100

Hi John,


>#define is ==
>#define or ||
>#define and &&

Definately a good solution!

You could also change "is" to "equals" if you like that better:

if (mom equals superman)

I've used exchanging the parameters for many years:

if(4 == count)
{
...
}

-I also *always* put braces after if, while, for, etc:

if(12 == monkeys)
{
// DebugStr("\pYes.");
}

-And I never use "do", but place the while at the top, or use for, to avoid...

{
...
}while(true);


Love,
Jens


  • Follow-Ups:
    • Re: Re(2): CriticalAlert
      • From: Vince DeMarco <email@hidden>
References: 
 >Re: CriticalAlert (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: (OT) auto-indent a big hit here
  • Next by Date: Re: CriticalAlert
  • Previous by thread: Re: CriticalAlert
  • Next by thread: Re: Re(2): CriticalAlert
  • Index(es):
    • Date
    • Thread