Becoming a Macintosh Programmer


Attention to Detail

How do these code blocks differ?

while (notDone) {
  err = GrabLine( &theLine );
  err = ProcessLine( theLine );
  if (err=noErr) return err;
}

while (notDone) {
  err = GrabLine( &theLine );
  err = ProcessLine( theLine );
  if (err==noErr) return err;
}


Becoming a Macintosh Programmer, Eric Gundrum <http://www.ericgundrum.com/>