login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Testing Lisp under Axiom Interpreter

fricas
)lisp (setq $dalymode t)
Value = T (+ 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.


file lisptest.input contains two lines:
)lisp (setq $dalymode t)
(+ 2 3)</p>
<p>(1) -> )read lisptest.input
)list (setq $dalymode t)</p>
<p>Value = T
(+ 2 3)<p>   Cannot ...</p>
</p>
<p>(1)-> (+ 2 3)
(1)-> 
Value = 5
(1)->

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.




  Subject:   Be Bold !!
  ( 13 subscribers )  
Please rate this page: