-> (defun (square x) (* x x)) [...] *** ERROR: SQUARE is not a function name
Is that because (a) that's not implemented yet or (b) I'm doing something wrong? I haven't found the time to delve into the source yet.
Oops, that wasn't supposed to have made it in there - I haven't finished up macros yet, and as (defun ...) is a macro construct, it doesn't work properly (at the moment it's just a useless stub).
To define new functions, you can use the behind-the-scenes backdoor method that I'm currently using:
(sys:set-symbol-function 'square #'(lambda (x) (* x x)))
Also, while playing I around I found this happening:
-> (* 2 3) 9 -> (* 4 3) 9
That is probably related to an issue I'd reported last night and for which Leo (I think) has committed a fix. I haven't had a chance to check out the new revision, but I'm fairly certain it's the case.
Looks like a bug. Maybe I'll find time to brush off my Lisp and start writing some tests in the process. :-)
Absolutely. I've been meaning to start up a test suite and anything you can do to further that end would be GREATLY appreciated. :)
-c