djm@nmtvax.UUCP (01/31/85)
code is executed,
a memory error is generated and a system halt is performed. This
requires a re-boot.
Example : if condition then
begin
statement1;
statement2;
end; <-- explodes here when run
another_statement;
2) If you read from the console a character at a time, each character
must be separated by a carriage return. I am under the impression
that either a) data is buffered one line at a time, or b) data would
be physically read one character at a time. (My Pascal references
aren't handily available as to which is standard, but C/R between
each sounds silly to me).
Dieter Muller
{lanl|unmvax}!nmtvax!djmlindley@ut-ngp.UUCP (John L. Templer) (02/03/85)
> I have found a couple of bugs in Turbo Pascal on an IBM PC-clone running > MS-DOS. I define these as bugs, since the same code works on the campus > DEC-20 (not a good standard, I know, but it's what I have to work with). . . . > 1) If a ';' is incorrectly places before a keyword, the compiler will > not complain. However, when that section of code is executed, > a memory error is generated and a system halt is performed. > This requires a re-boot. > > Example : if condition then > begin > statement1; > statement2; > end; <-- explodes here when run > another_statement; I seem to be confused; I can't find any errors in the example given. The semicolon between "statement2" and "end" is not needed, but it is not an error. Are you sure it is not something else causing the memory error? -- John L. Templer University of Texas at Austin {allegra,gatech,seismo!ut-sally,vortex}!ut-ngp!lindley "and they called it, yuppy love."