pozorvlak@delirium:~> clisp
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8
Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2006
[1]> (defun car (x) (cdr x))
** - Continuable Error
DEFUN/DEFMACRO(CAR): # is locked
If you continue (by typing 'continue'): Ignore the lock and proceed
The following restarts are also available:
ABORT :R1 ABORT
Break 1 [2]> continue
WARNING: DEFUN/DEFMACRO: redefining function CAR in top-level, was defined in
C
CAR
[3]> (car '(3 4))
(4)
[4]> (defun defun (x) (+ 3 x))
DEFUN
[5]> (defun 7)
10 Bad. Ass.
[Those of you who don't speak Lisp may find a measure of enlightenment here. Should be reasonably accessible.]
Tags:
no subject
no subject
You know, I had no suspicion that you'd be able to make a joke in valid Common Lisp... clearly, you have hidden depths that I know nothing about. Besides the hidden depths that I already knew about, obviously.
no subject
no subject
It's not that funny either
no subject
"Hey, this is "
no subject
no subject
no subject
I guess now might be a good time to try liskell then :) Not with actual docs and everything! :)
no subject
no subject
At the moment, I'm coding Haskell with ghci open in one window, my code open in another, and the Parsec code open in a third. At least one function that I've needed hasn't been mentioned in the documentation so far (and the Parsec docs are pretty good, by Haskell community standards) :-(
I've been working on my Lisp interpreter for the last couple of days (hence playing around with clisp). Lexing Lisp code is surprisingly tricky if you want to do it properly...
no subject
no subject
I'm sure I could find this out through the docs, or by experimentation, but idle drawing room conversation on LJ seemed like a more interesting way of doing it :)
no subject
[1]> (defun wilma (x) (car x))
WILMA
[2]> (defun car (x) (cdr x))
** - Continuable Error
DEFUN/DEFMACRO(CAR): # is locked
If you continue (by typing 'continue'): Ignore the lock and proceed
The following restarts are also available:
ABORT :R1 ABORT
Break 1 [3]> continue
WARNING: DEFUN/DEFMACRO: redefining function CAR in top-level, was defined in C
CAR
[4]> (wilma '(3 4))
(4)
So it certainly redefines local functions... however, if we (compile 'wilma) before redefining car, then (wilma '(3 4)) returns 3. As to your actual question... "dunno" is the answer - I don't really understand how modules work in Common Lisp.
no subject
http://sourceforge.net/tracker/index.php?func=detail&aid=1713130&group_id=1355&atid=101355please
next time, plese report clisp bugs to clisp maintainers at http://clisp.cons.org/impnotes/clisp.html#bugs (note the link "How do I report bugs?" on the clisp home page).
no subject