Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!sri-spam!sri-unix!quintus!ok From: ok@quintus.UUCP (Richard A. O'Keefe) Newsgroups: comp.lang.pascal Subject: Re: Pascal Enumerated I/O Message-ID: <689@cresswell.quintus.UUCP> Date: 25 Feb 88 02:44:44 GMT References: <1077@csuna.UUCP> <284@goofy.megatest.UUCP> Organization: Quintus Computer Systems, Mountain View, CA Lines: 17 Summary: clarification In article <284@goofy.megatest.UUCP>, djones@megatest.UUCP (Dave Jones) writes: : in article <1077@csuna.UUCP>, abcscnuk@csuna.UUCP (Naoto Kimura) says: : > : > In article <673@cresswell.quintus.UUCP> ok@quintus.UUCP (Richard A. O'Keefe) writes: : : > Output I can see how it could be done, but input is another story. The : > compiler would have to have something like yacc or lex built into it. : > : > As someone has already stated, I/O of enumerated types is contradictory to : > the policy of strong typing. : : Huh? Just in case it confused you as much as it confused me, the embedded quotation actually contains no text from me. I am *for* I/O of enumerated data-types, think it is easy to do (I haven't done it for Pascal, but I have done it for another language, and yes, getc()/putc() are all you need; lex is not for serious players), and do not see why anyone would think it went against strong typing. In fact, NOT doing it goes against strong typing.