home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!blade!stephan
- From: stephan@blade (Stephan Eggermont)
- Newsgroups: comp.lang.pascal
- Subject: Re: Is this legal - why/why not?
- Message-ID: <4905@tuegate.tue.nl>
- Date: 30 Jul 92 15:09:20 GMT
- References: <l7b682INNasf@muleshoe.cs.utexas.edu>
- Sender: root@tuegate.tue.nl
- Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
- Lines: 32
- X-Newsreader: Tin 1.1 PL4
-
- sirosh@cs.utexas.edu (Joseph Sirosh) writes:
- : However, the following declaration does not work, though Pascal definition
- : does not say anything against it.
-
- Think Pascal as well as Turbo Pascal don't claim to be Standard Pascal
- compilers, so the Pascal definitions are not going to be of any help.
- The only place wher you can find the source of the problem is your manual
- (and the internet of course :-) ).
-
- : Type Used2 = (Integer);
- : The error message from the compiler is 'This does not make sense'.
- : Why? Why is this declaration illegal?
-
- Declaring an enumeration of one item doesn't make much sense, does it?
- Here Integer is just an identifier.
-
- : 2. The second question is similar. How come the following declaration
- : does not work,
- : Var ar1: array[Integer] of char;
-
- Just another compiler bug. And of course it's 64K, which is a big no-no.
-
- Groetjes,
- Stephan
- stephan@blade.stack.urc.tue.nl
-
-
-
-
-
-
-
-