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