Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » end
next | previous | forward | backward | up | index | toc

end -- stop loading a file

Description

i1 : load "Macaulay2Doc/demos/demo3.m2"
hi
i2 : get loadedFiles#(#loadedFiles-1)

o2 = print hi
     end
     print ho

Here is an example of its use in the debugger.

i3 : load "Macaulay2Doc/demos/demo1.m2"
i4 : g 2
${prefix}/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:11:(3):[2]: error: division by zero
${prefix}/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:11:(3): entering debugger (enter 'help' to see commands)
${prefix}/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:8:
10-8:13: --source code:
     b := 1/x;
ii5 : end
${prefix}/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:13:11:(3): entering debugger (enter 'help' to see commands)
${prefix}/share/Macaulay2/Macaulay2Doc/demos/demo1.m2:13:
10-13:16: --source code:
     d := f(y-2);
ii6 : end
i7 : g 3

     7
o7 = -
     2

o7 : QQ

See also

For the programmer

The object end is a symbol.


The source of this document is in Macaulay2Doc/ov_system.m2:252:0.