next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: end

end -- stop loading a file

Synopsis

Description

i1 : load "Macaulay2Doc/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/demo1.m2"
i4 : g 2
/home2/dan/src/M2/M2/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[2]: error: division by zero
/home2/dan/src/M2/M2/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[2]: --entering debugger (type help to see debugger commands)
/home2/dan/src/M2/M2/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:11-8:13: --source code:
     b := 1/x;
ii5 : end
/home2/dan/src/M2/M2/Macaulay2/packages/Macaulay2Doc/demo1.m2:13:11:(3):[1]: --entering debugger (type help to see debugger commands)
/home2/dan/src/M2/M2/Macaulay2/packages/Macaulay2Doc/demo1.m2:13:11-13:15: --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.