home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7955 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!csus.edu!borland.com!chard
  3. From: chard@borland.com (Richard Nelson)
  4. Subject: Re: BP7 -- five more bugs
  5. Message-ID: <1993Jan7.223044.5463@borland.com>
  6. Summary: Directives vs. reserved words
  7. Originator: chard@genghis.borland.com
  8. Sender: news@borland.com (News Admin)
  9. Organization: Borland International
  10. References: <1993Jan7.153055.3119@odin.diku.dk> <1993Jan7.163036.20607@ericsson.se>
  11. Date: Thu, 7 Jan 1993 22:30:44 GMT
  12. Lines: 25
  13.  
  14. >>2. Syntax highlighting fails for "forward".
  15. >>------------------------------------------
  16. >>
  17. >>"Forward" is highlighted as a reserved identifier. It isn't.
  18. >> ...
  19. >
  20. >Is this true?  I thought forward *was* a reserved identifier for declaring
  21. >forward procedures or do you mean that BP7 allows you to call an identifier
  22. >"forward" when it should be a reserved word?
  23.  
  24. Starting with version 6.0 of Turbo Pascal, certain identifiers that
  25. used to be reserved words are now directives, which can be redefined
  26. by your programs.  Since they have pre-defined meanings, the syntax
  27. highlighting recognizes and highlights them.
  28.  
  29. Basically, all the procedural directives (such as near, far, absolute,
  30. forward, virtual, interrupt, assembler) get highlighted.
  31.  
  32. The distinctions are explained on pages 16-17 of the Borland Pascal
  33. Language Guide.
  34. -- 
  35. =========================================================================
  36.  Richard Nelson, Borland Int'l | chard@borland.com | Go Bears! Grrr-rah!
  37.   Had this been Borland's opinion, I would have written it in a manual.
  38.  "...there's no hurry, I'm just sittin' here doing time." - John Lennon
  39.