delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/17/04:26:40

From: pspeller AT linx DOT co DOT uk (Phil Speller)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Integer variables
Date: Thu, 14 Aug 1997 15:58:13 GMT
Organization: Linx Printing Technologies plc
Lines: 21
Message-ID: <33f72aec.173194789@snews.zippo.com>
References: <9707138715 DOT AA871517558 AT bcslgt DOT bcsl DOT com> <33F246EE DOT 3AEA AT cornell DOT edu>
Reply-To: pspeller AT linx DOT co DOT uk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Wed, 13 Aug 1997 19:44:46 -0400, "A. Sinan Unur" <asu1 AT cornell DOT edu>
wrote:

>Stanley Tsang wrote:
>  if ( i == 1)
>
>rather than if (i = 1)?
>
Always a good typo that one!  I prefer...

  if ( 1 == i )

thus enabling the compiler to catch the above.

Phil Speller,
Cambridgeshire,
England.

Email:      pspeller AT linx DOT co DOT uk     [Work]
        Phil DOT Speller AT dial DOT pipex DOT com [Home]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019