On Fri, 22 Apr 2005, Matt Diephouse wrote:
-> (defun (square x) (* x x)) T -> (square 2) *** ERROR: SQUARE is not a function name
A quick follow-up - I've just checked in code implementing some primitive macros, so if you wanted to give (defun ...) a go again, you should find
that it works now. (Note that Lisp is now included in the languages subdirectory of the latest Parrot SVN tree.)
Also, while playing I around I found this happening:
-> (* 2 3) 9 -> (* 4 3) 9
I've noticed this is also happening for floating point numbers:
-> (* 2 3.2) 9.6 -> (+ 1.2 3)
I'm not sure what kind of magic you worked last time with Integers, Leo, but would you mind working it again? (Or pointing me in the right direction so that I can fix it myself. :)
-c