gap> # double a list until there is a memory overflow
gap> l:=[1];; while true do Append(l,l); od;
Error, reached the pre-set memory limit
(change it with the -o command line option)
Stack trace:
*[1] Append( l, l );
   @ *stdin*:3
<function "unknown">( <arguments> )
 called from read-eval loop at *stdin*:3
you can 'return;'
brk> # ... then we should be in a break loop. Exit that, perform some other computations.
brk> quit;
gap> Factorial(42);
1405006117752879898543142606244511569936384000000000
gap> QUIT;
