Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!husc6!harvard!cmcl2!lanl!crs From: crs@lanl.ARPA (Charlie Sorsby) Newsgroups: net.lang.c,net.lang.pascal Subject: Re: Interactive I/O in Pascal Message-ID: <5918@lanl.ARPA> Date: Fri, 1-Aug-86 15:38:31 EDT Article-I.D.: lanl.5918 Posted: Fri Aug 1 15:38:31 1986 Date-Received: Sat, 2-Aug-86 10:23:02 EDT References: <2222@brl-smoke.ARPA> <7014@boring.mcvax.UUCP> <3130@utcsri.UUCP> <175@curly.ucla-cs.ARPA> <5458@topaz.RUTGERS.EDU> Organization: Los Alamos National Laboratory Lines: 28 Xref: watmath net.lang.c:10131 net.lang.pascal:608 > As far as I know, the semantics of lazy I/O allow you to check for any > possible input, printing prompts at any point. This does not mean > that Pascal's input parsing is as powerful as scanf, or that its > output is as powerful as printf. Obviously they are not. Validating > input, to make sure that the user hasn't typed something bogus, can > require a bit more programming in Pascal than in C. For example, in Am I missing something? As I understand it, printf and scanf are not considered part of the C language but rather are part of the standard I/O package. Is this also true for writeln and readln in Pascal? If so, it appears that standard I/O packages are being compared rather than languages. If not, perhaps the comparisons are between apples and oranges. Is there some characteristic of the Pascal language that prevents construction of a Pascal standard I/O package that *would* be as powerful as that of C? Perhaps the existence of this characteristic is implicit in this discussion and that is what I am missing. If so, forgive my ignorance. (I realize that the lack of "separate compilation" in Pascal precludes use of precompiled libraries of functions.) Of course, there is also the fact that Pascal was intended as a teaching language to consider. -- Charlie Sorsby ...!{cmcl2,ihnp4,...}!lanl!crs crs@lanl.arpa