page procedure bug?

Sat, 03 May 97 17:37:19 -0400


Hello,

The discussion of 'clrscr' caused me to look into GPC's support of the page
procedure.  [On all of the Pascal variants I've used in the past -- I've
never used any Borland variant --  'page' would effectively clear the
screen.]  While GPC on the other hand seems to follow the standard
literally and output just a FF (ASCII 12).  No problem there, but the
problem is that GPC gives a parse error if use just 'page' but accepts
'page(output)'.    My reading of the standard is that page with no
parameters should assume standard output, at least if output is explicitly
declared in the program heading.  (ISO 7185 6.9.5)

E.g.  this program should compile:

program pagetest(output);

begin
	page;
end.

-Kevin

--
Kevin A. Foss   ---   kfoss@mint.net
--


Kevin A. Foss (kfoss@mint.net)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es