-- -*- M2-comint -*- hash: 5808051059559127129

i1 : fn = temporaryFileName()

o1 = /tmp/M2-3102637-0/0

i2 : fn << "f = x -> x+1\n" << close

o2 = /tmp/M2-3102637-0/0

o2 : File

i3 : autoload(f,fn)

i4 : code f

o4 = /usr/share/Macaulay2/Core/autoload.m2:8:19-12:22: --source code:
          sym <- f := x -> (
               load filename;
               if f === value sym 
               then error("symbol '", toString sym, "' didn't acquire a new value in file '", filename, "'");
               (value sym) x
               );
          )
     | symbol    class            value                                                    location of symbol
     | ------    -----            -----                                                    ------------------                             
     | f         FunctionClosure  -*Function[/usr/share/Macaulay2/Core/autoload.m2:8:19-.  /usr/share/Macaulay2/Core/autoload.m2:8:12-8:13
     | sym       Symbol           f                                                        /usr/share/Macaulay2/Core/autoload.m2:6:28-6:31
     | filename  String           "/tmp/M2-3102637-0/0"                                    /usr/share/Macaulay2/Core/autoload.m2:6:32-6:40

i5 : f 4

o5 = 5

i6 : removeFile fn

i7 : 
