home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18515 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.7 KB

  1. Path: sparky!uunet!usc!srhqla!quest!kdq
  2. From: kdq@quest.UUCP (Kevin D. Quitt)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Questions about token merging and trigraphs
  5. Message-ID: <iJqwVB1w165w@quest.UUCP>
  6. Date: Wed, 16 Dec 92 19:36:29 PST
  7. References: <1TA04E3@cdis-1.compu.com>
  8. Reply-To: srhqla!quest!kdq
  9. Organization: Job quest  (805) 251-8210,  So Cal: (800) 400-8210
  10. Lines: 33
  11.  
  12. tanner@cdis-1.compu.com (Dr. T. Andrews) writes:
  13.  
  14. > ) What are trigraphs?
  15. > Trigraphs are an unpleasant invention from the successor  to  the
  16. > horse  committee...
  17.  
  18.     Perhaps Dr. Andrews should spend a little time in thought before
  19. lashing out at necessary and occasionally useful, if obscure, parts of C.
  20.  
  21.  
  22. > Trigraphs are a nasty way to write certain characters  in  the  C
  23. > source  character  set.   These  more  difficult  characters  are
  24. > represented  as  three  characters  starting  with   "??".    For
  25. > instance, you can represent `#' as "??=".
  26.  
  27.     Trigraphs are the *only* way to represent certain critical
  28. characters on machines that do not support the ASCII character set.
  29. Their use on other machines is supported for portability.
  30.  
  31.  
  32. > The change means that certain old programs may have strings, most
  33. > likely error messages, compiled into something unexpected.
  34.  
  35.     I suppose anything is possible, but it's pretty remote.  Just how
  36. remote it is, is easily shown by the fact that many experienced C
  37. programmers know nothing about trigraphs; therefore they've never had a
  38. problem from them.  The cost of something unexpected in an error string
  39. is a fairly small price to pay for allowing non-ASCII machines to
  40. support portable C code; after all, *code* isn't going to break.
  41.  
  42.  
  43.  _
  44. Kevin D. Quitt      96.37% of all statistics are made up.     srhqla!quest!kdq
  45.