home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16383 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.1 KB  |  33 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!news.tek.com!psgrain!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
  3. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  4. Subject: Re: Hows this for odd
  5. Message-ID: <1992Nov12.094905.20522@thunder.mcrcim.mcgill.edu>
  6. Organization: McGill Research Centre for Intelligent Machines
  7. References: <1992Nov9.102217.23060@monu6.cc.monash.edu.au>
  8. Date: Thu, 12 Nov 92 09:49:05 GMT
  9. Lines: 23
  10.  
  11. In article <1992Nov9.102217.23060@monu6.cc.monash.edu.au>, bena@yoyo.cc.monash.edu.au (Ben Aveling) writes:
  12.  
  13. >     ... ,(i==0)?TRUE:FALSE,...
  14.  
  15. Of course, it depends on what TRUE and FALSE are.  Someone else already
  16. mentioned what I was going to say, the possibility that TRUE and FALSE
  17. may not be C-context true and false at all but rather (say) boolean
  18. values in a Pascal interpreter.
  19.  
  20. So I'll just mention some odd code I happened across.  I was
  21. disassembling a binary (you don't want to know why) and found a
  22. sequence that was obviously compiled from a loop something like
  23.  
  24.     char *s;
  25.     ...
  26.      for (i=0;i<strlen(s);i++)
  27.       { ...code that doesn't modify the string s points to...
  28.       }
  29.  
  30.                     der Mouse
  31.  
  32.                 mouse@larry.mcrcim.mcgill.edu
  33.