Path: utzoo!utgpu!attcan!uunet!lll-winken!ames!mailrus!cornell!batcomputer!wilker From: wilker@batcomputer.tn.cornell.edu (Clarence W. Wilkerson Jr.) Newsgroups: comp.lang.pascal Subject: Re: TP-5.0 can't do ``write(, );'' Summary: Not new to V. 5.0 Keywords: Turbo Pascal, TeXware Message-ID: <7131@batcomputer.tn.cornell.edu> Date: 7 Jan 89 00:13:12 GMT References: <12976@duke.cs.duke.edu> Organization: Theory Center, Cornell U., Ithaca NY Lines: 15 This is not new to version 5.0, and is not special to byte variables. I think that any typed variable has the same problem. Of course, you would not be tempted often by non-scalar variables. I have not seen or noticed this as a constraint on "write" in the manuals, so you could consider it a bug. On the other hand the work around is obvious: ... var x : byte; ... x:=myconstant; ... write(myfile,x); I have not tried the write with "typed constants" declared by const x: byte=myconstant; I suspect that this works, since now the compiler knows the "type" of x.