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

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!decwrl!borland.com!chard
  3. From: chard@borland.com (Richard Nelson)
  4. Subject: Re: Syntax highlighting misses
  5. Message-ID: <1993Jan13.000353.26068@borland.com>
  6. Originator: chard@genghis.borland.com
  7. Sender: news@borland.com (News Admin)
  8. Organization: Borland International
  9. References: <29506@oasys.dt.navy.mil>
  10. Date: Wed, 13 Jan 1993 00:03:53 GMT
  11. Lines: 21
  12.  
  13. >The syntax highlighting available in the BP7 editor is fine
  14. >as far as it goes. But why are the tokens REAL, INTEGER, WORD, CHAR,
  15. >DOUBLE, etc. NOT highlighted as reserved words (or anything else)
  16. >when STRING makes it?
  17.  
  18. We just discussed this in another thread, but hey...repetition for
  19. emphasis....
  20.  
  21. The word "string" has two possible meanings in Turbo/Borland Pascal.
  22. It can be used as a standard type, and also as a reserved word.
  23. Because the syntax highlighter can't determine which use it's looking
  24. at, it always highlights string, because it is reserved; i.e., you
  25. can't redefine it.
  26.  
  27. The other types you mention are not reserved.  You can define a
  28. variable called Real, for example.
  29. -- 
  30. =========================================================================
  31.  Richard Nelson, Borland Int'l | chard@borland.com | Go Bears! Grrr-rah!
  32.   Had this been Borland's opinion, I would have written it in a manual.
  33.  "...there's no hurry, I'm just sittin' here doing time." - John Lennon
  34.