home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pop / 183 next >
Encoding:
Internet Message Format  |  1993-01-04  |  2.2 KB

  1. From: kers@hplb.hpl.hp.com (Chris Dollin)
  2. Date: Mon, 4 Jan 1993 09:55:59 GMT
  3. Subject: Re: List and Vector Syntax (long)
  4. Message-ID: <KERS.93Jan4095559@cdollin.hpl.hp.com>
  5. Organization: Hewlett-Packard Laboratories, Bristol, UK.
  6. Path: sparky!uunet!wupost!sdd.hp.com!hpscit.sc.hp.com!hplextra!otter.hpl.hp.com!hpltoad!cdollin!kers
  7. Newsgroups: comp.lang.pop
  8. References: <116670035@otter.hpl.hp.com> <116670041@otter.hpl.hp.com> <C07Bop.DwH@cs.bham.ac.uk>
  9. Sender: news@hplb.hpl.hp.com (Usenet News Administrator)
  10. Lines: 41
  11. In-Reply-To: axs@cs.bham.ac.uk's message of 2 Jan 93 00:50:49 GMT
  12. Nntp-Posting-Host: cdollin.hpl.hp.com
  13.  
  14. Aaron writes:
  15.  
  16.    Having considered Steve Knight's responses to my criticisms of
  17.    the Pepper proposals for changing the quotation conventions in
  18.    Pop-11 I now accept that those proposals are workable and probably
  19.    preferable to the current Pop-11 conventions, given the use of "\"
  20.    as a reserved text item to get over the difficulties I described.
  21.  
  22.    I have not thought through the implications of using "\" in this
  23.    role, nor whether this is consistent with its use as the standard
  24.    `alphabeticiser' as in "don\'t" which should create a word
  25.    containing an apostrophe.
  26.  
  27. It isn't (consistent with its use as a standard alphabeticiser). Pepper
  28. doesn't have the notion of alphabeticiser; it has something else instead.
  29.  
  30. For quoting unusual words (ie, one's that don't form normal Pepper
  31. items) you merely need to quote an escaped string; Aarons example
  32. above becomes
  33.  
  34.     "\'don\'t'"
  35.  
  36. The quotes establish the quote context. The first backslash says 
  37. ``this actual word (and if it's a string, convert it)''. Then there's
  38. a string literal, inside which the backslash means ``special case 
  39. follows'' -- here, insert the quote in the string, rather than take it
  40. as the terminator. 
  41.  
  42. For those brave or perverted enough (such as Certain People who use
  43. identifiers containing control characters in their code), Pepper allows
  44. a string prefixed by a backslash to be used as an identifier *anywhere*
  45. -- just as any word prefixed by a backslash can be used as an identifier.
  46. Thus, if you want to write
  47.  
  48.     42 -> \'Ring\(7)';
  49.  
  50. you can.
  51. --
  52.  
  53. Regards, Kers.
  54. "If anything anyone licks, they'll find it all ready in sticks."
  55.