Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!amdahl!dlb!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.pascal Subject: Re: Pascal Enumerated I/O Message-ID: <283@goofy.megatest.UUCP> Date: 23 Feb 88 23:19:42 GMT References: <1077@csuna.UUCP> Organization: Megatest Corporation, San Jose, Ca Lines: 37 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: >>.. >>In article <11903@brl-adm.ARPA>, jipping@frodo.cs.hope.EDU (Mike Jipping) writes: >>> It seems to me that doing I/O on enumerated types goes against the grain >>> of the concept. [ Stuff about concepts and philosophy omited. ] > > Pascal allows only output, not input of booleans. What would you > suggest for input of boolean variables ? Are you going to have the > compiler generated code to require 'TRUE' for TRUE on text input? [ Lots of strident rhetorical questions omited. ] The Sun compiler "pc", and the Berkeley "pc" and "pi" on which it is based purportedly allow for both reading and writing enumerated types, including boolean. You will get a warning, saying that the feature is non-standard , if you don't use the -w flag. The canonical spelling for reading *true* is "true" and the canonical spelling for reading *false* is "false". But don't expect it really to work. It's buggy. Dave Jones Megatest Corp. 880 Fox Lane San Jose, CA. 95131 (408) 437-9700 Ext 3227 UUCP: ucbvax!sun!megatest!djones ARPA: megatest!djones@riacs.ARPA NO ROT