Testing Lisp under FriCAS Interpreter
fricas
(1) -> )lisp (setq $dalymode t)
Your user access level is compiler and this command is therefore not
available. See the )set userlevel command for more information.
(+ 2 3)
Cannot find a definition or applicable library operation named 2
with argument type(s)
PositiveInteger
Perhaps you should use "@" to indicate the required return type,
or "$" to specify which version of the function you need.
The above works exactly the same under Linux with a file containing the two lisp lines and then read in using )read. However, in Linux (but not here), a subsequent (+ 2 3) will evaluate to 5.
fricas
(+ 2 3)
Cannot find a definition or applicable library operation named 2
with argument type(s)
PositiveInteger
Perhaps you should use "@" to indicate the required return type,
or "$" to specify which version of the function you need.
So it seems Tim's patch to intercept the Interpreter is not "thorough". There are other entry points like )read ...
or )lisp (load ...)
where lines are fed to the Interpreter without being intercepted.