These are questions asked by
mscheer
hi all,
swapping variables in the export line of a module changes its behavior.
First Example (works fine):
restart;
mp:= module() option package;
export mult, f2;
mult:=proc(v) return(3*v) end proc;
f2 :=proc(v) mult(v); end proc;
end module;
savelibname:="E:\\tmp";
savelib('mp');
restart;
libname := libname, "E:\\tmp";
with(mp);
mp:-f2(5);
mp:-mult(4);
# Output: [f2,mult], 15, 12