home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7966 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.7 KB

  1. Path: sparky!uunet!psinntp!cmcl2!adm!news
  2. From: stone@hilbert.math.grin.edu (John David Stone)
  3. Newsgroups: comp.lang.pascal
  4. Subject: BP7 -- five more bugs
  5. Message-ID: <34932@adm.brl.mil>
  6. Date: 8 Jan 93 15:09:34 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 29
  9.  
  10.  
  11.         Morten Welinder writes:
  12.  
  13. >           "Forward" is highlighted as a reserved identifier. It isn't.
  14.  
  15. and Jim replies:
  16.  
  17. >           Is this true?  I thought forward *was* a reserved identifier
  18. >  for declaring forward procedures or do you mean that BP7 allows you to
  19. >  call an identifier "forward" when it should be a reserved word?
  20.  
  21.         In standard Pascal, "forward" is not a reserved word, nor is that
  22. sequence of characters normally used as an identifier (though such a use
  23. would be legal).  It is, however, a predefined directive, the only required
  24. directive in Pascal.  The language provides no mechanism by which
  25. programmers can define or redefine directives, but an implementation of
  26. Pascal may provide other directives, such as "external", as extensions.
  27.  
  28.         In Turbo Pascal, it seems to be a long story.  I have manuals only
  29. for versions 3.0, 5.0, and 6.0.  In version 3.0, "forward" was a reserved
  30. identifier.  In version 5.0, it was a directive, not an identifier, but it
  31. was still a reserved word.  In version 6.0, it was still a directive, but
  32. it was no longer reserved.  For present and future versions, you'd better
  33. check your documentation carefully.
  34.  
  35. ------  John David Stone - Lecturer in Computer Science and Philosophy  -----
  36. --------------  Manager of the Mathematics Local-Area Network  --------------
  37. --------------  Grinnell College - Grinnell, Iowa 50112 - USA  --------------
  38. --------  stone@math.grin.edu - (515) 269-3181 - stone@grin1.bitnet  --------
  39.