home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / pascal / 4591 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.0 KB  |  35 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!aurora.cc.monash.edu.au!ins894r
  3. From: ins894r@aurora.cc.monash.edu.au (Aaron Wigley [Wigs])
  4. Subject: Re: Is this legal - why/why not?
  5. Message-ID: <1992Jul29.072408.23090@monu6.cc.monash.edu.au>
  6. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  7. Organization: Monash University
  8. X-Newsreader: Tin 1.1 PL4
  9. References: <l7b682INNasf@muleshoe.cs.utexas.edu>
  10. Date: Wed, 29 Jul 1992 07:24:08 GMT
  11. Lines: 22
  12.  
  13. sirosh@cs.utexas.edu (Joseph Sirosh) writes:
  14. : I have two questions.
  15. : 1. The following declaration for an enumerated type is legal.
  16. :     Type Used = (Integer, Char, Boolean);
  17. : even though Integer, Char, Boolean etc. are names of predefined types.
  18. : This works on Think Pascal on the Mac.
  19.  
  20. In pascal it is possible to redefine types:
  21. Eg,
  22.  
  23. Type
  24.     real = extended;
  25.  
  26. What it seems you are doing is redefing the types Integer, Char, Boolean,
  27. and I would expect big problems..
  28.  
  29. : Joseph 
  30.  
  31. Aaron Wigley
  32. ins894r@aurora.cc.monash.edu.au
  33.