sylwester wrote:Proper CLISP??? CLISP is not a synonym for Common Lisp. CLISP is one of many Common Lisp implementations and just like SBCL or CCL. As with all implementations they might be a superset and sure enough arglist is defined in it, but it doesn't make it more portable.
[1]> (defpackage :test (:use :cl))
#<package test>
[2]> (in-package :test)
#<package test>
test[3]> #'arglist
*** - function: undefined function arglist
The following restarts are available:
USE-VALUE :R1 Input a value to be used instead of (fdefinition 'arglist).
RETRY :R2 Retry
STORE-VALUE :R3 Input a new value for (fdefinition 'arglist).
ABORT :R4 Abort main loop
Break 1 test[4]>
See?
Sorry, what should I see? You forcibly switched to a different package, did not find a function in it, and conclude that the function is not defined in the implementation???
Then look here:
C:dev>clisp -on-error abort
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
Welcome to GNU CLISP 2.49 (2010-07-07) <http://clisp.cons.org/>
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-2010
Type :h and hit Enter for context help.
[1]> #'arglist
#<COMPILED-FUNCTION ARGLIST>
[2]> (arglist #'eql)
(#:ARG0 #:ARG1)
[3]> (arglist #'length)
(#:ARG0)
[4]> (defpackage :test (:use :cl))
#<PACKAGE TEST>
[5]> (in-package :test)
#<PACKAGE TEST>
TEST[6]> #'arglist
*** - FUNCTION: undefined function ARGLIST
TEST[7]>
See?
