[GAP Forum] Delayed printing

Anvita anvita21 at gmail.com
Fri Dec 21 09:46:57 GMT 2012


Dear Forum,

Why does the program

-------------------------------------
repeat
 Print("Before the pause...");
 for i in [1..2^28-1] do od;  # pause
 Print("After the pause\n");
until true;
-------------------------------------

behave in the same way as

-------------------------------------
repeat
 for i in [1..2^28-1] do od;  # pause
 Print("Before the pause...");
 Print("After the pause\n");
until true;
-------------------------------------

instead of printing the first message immediately?

Thank you,
Anvita


More information about the Forum mailing list