All Questions
2
questions
7
votes
1
answer
2k
views
Was there a bug in Wirth's original Pascal compiler?
It appears that both legacy Pascal compilers I have access to (for the BESM-6) contain a bug: they would happily produce code for
program test(output);(* may have to omit (output) depending on the ...
9
votes
1
answer
2k
views
Is this a bug or an allowed Pascal behavior?
Consider the following Pascal program:
1 1 PROGRAM MAIN(OUTPUT); VAR F:TEXT; I:INTEGER;
2 2 BEGIN
3 2 REWRITE(F);
4 3 FOR I := 10 TO 30 DO BEGIN
5 3 WRITELN( I, ’...