home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.23 / text0054.txt < prev    next >
Encoding:
Text File  |  1991-06-15  |  2.1 KB  |  57 lines

  1. Submitted-by: rml@hpfcdc.fc.hp.com (Bob Lenk)
  2.  
  3. In article <131021@uunet.UU.NET>, phil@cs.wwu.edu (Phil Nelson) writes:
  4.  
  5. >  1)  The character '-' "shall" be recognized as both the token
  6. >      ADD_OP and the token '-'.
  7. >      lines: 1587, 1670, 1737, 1738, 1749-1751
  8.  
  9. The intention is that the minus character can be recognized as either
  10. unary minus or as a binary operator (with the same precedence as
  11. the other ADD_OP, binary +).  The lexical specification is indeed
  12. ambiguous and incorrect.
  13.  
  14.  
  15. >  2)  Lines 1642-1644 are
  16. >         parameter_list       : LETTER
  17. >                              | define_list ',' LETTER
  18. >      I presume it should be
  19. >         parameter_list       : LETTER
  20. >                              | parameter_list ',' LETTER
  21.  
  22. This was an error in preparation of Draft 10.  The presumption is
  23. correct.
  24.  
  25.  
  26. >  3)  Lines 1836-1838 state "A whole array passed as an argument
  27. >      shall be specified by the array name followed by empty square
  28. >      brackets." 
  29. >      a) I find no provision in the grammar in the definition of the
  30. >         parameter list define a parameter as an array.  (See lines
  31. >         1642-1644.)
  32. >      b) No provision is made in the grammar for the specification of
  33. >         an array in the actual function call. (See 1657-1659.)
  34.  
  35. This was also an error in the preparation of Draft 10.  The sentence in
  36. question was intended to be deleted.  A reference to this feature in
  37. the grammar was deleted.  This feature has been documented but not
  38. implemented in all historical versions of bc I have encountered.
  39.  
  40. I was the terchnical editor for bc during the ballot that produced Draft
  41. 10.  The three errors noted above are mine.  It is interesting that they
  42. have gone unnoticed for this long (Draft 10 was distributed last summer,
  43. and a full ballot recirculation has completed).
  44.  
  45. I am forwarding this message to the chair of P1003.2, effectively as
  46. ballot comments.  Note that they do not include a resolution for problem
  47. (1).  Those comments and this posting are made strictly as an
  48. individual.
  49.  
  50.         Bob Lenk
  51.         rml@fc.hp.com
  52.         {uunet,hplabs}!fc.hp.com!rml
  53.  
  54.  
  55. Volume-Number: Volume 23, Number 58
  56.  
  57.