home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4619 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.3 KB

  1. Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!blade!stephan
  2. From: stephan@blade (Stephan Eggermont)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: Is this legal - why/why not?
  5. Message-ID: <4905@tuegate.tue.nl>
  6. Date: 30 Jul 92 15:09:20 GMT
  7. References: <l7b682INNasf@muleshoe.cs.utexas.edu>
  8. Sender: root@tuegate.tue.nl
  9. Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
  10. Lines: 32
  11. X-Newsreader: Tin 1.1 PL4
  12.  
  13. sirosh@cs.utexas.edu (Joseph Sirosh) writes:
  14. : However, the following declaration does not work, though Pascal definition
  15. : does not say anything against it.
  16.  
  17. Think Pascal as well as Turbo Pascal don't claim to be Standard Pascal 
  18. compilers, so the Pascal definitions are not going to be of any help.
  19. The only place wher you can find the source of the problem is your manual
  20. (and the internet of course :-) ).
  21.  
  22. :     Type Used2 = (Integer);
  23. : The error message from the compiler is 'This does not make sense'.
  24. : Why? Why is this declaration illegal?
  25.  
  26. Declaring an enumeration of one item doesn't make much sense, does it? 
  27. Here Integer is just an identifier.
  28.  
  29. : 2. The second question is similar. How come the following declaration
  30. : does not work,
  31. :  Var ar1: array[Integer] of char;
  32.  
  33. Just another compiler bug. And of course it's 64K, which is a big no-no.
  34.  
  35.   Groetjes,
  36.   Stephan
  37.   stephan@blade.stack.urc.tue.nl
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.