-3

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 ?

4

2 回答 2

2

函数调用应该是

(getdone)

不是getdone()

于 2015-03-29T07:38:11.347 回答
1

如果您使用的是 newLISP,请不要使用

defun

利用

define

定义所有功能。

如果您没有使用 newLISP,则您的问题标签是错误的。

于 2015-03-29T07:19:35.803 回答