Lisp complaining with invalid function

279 Views Asked by At

I write these code and compile withnewlisp. I wrote these code:

(defun getdone ()(format t "we have a IDE for cLisp"))
getdone()

and the error message

ERR: invalid function : (defun getdone () (format t "we have a IDE for cLisp"))

====================

I finally realized that it is syntax error because newlisp's grammar is different from clisp's grammar. Now my code is runing well:

(define (getdone) (format "we have a IDE for cLisp"))
(getdone)

I don't know what is the t in format t used for ?

2

There are 2 best solutions below

0
On BEST ANSWER

If you're using newLISP, don't use

defun

use

define

to define all your functions.

if you're not using newLISP, your question's tags are wrong.

0
On

The function call should be

(getdone)

not getdone().