[Ecls-list] Too many arguments for generic function CLOSE

Stelian Ionescu stelian.ionescu-zeus at poste.it
Sat Dec 20 14:59:04 UTC 2008

On Sat, 2008-12-20 at 15:51 +0100, Stelian Ionescu wrote:
> Compiling a use of WITH-OPEN-FILE yields the warning "Too many
> arguments
> for generic function CLOSE"
> Test case:
> CL-USER> (handler-bind ((c:compiler-warning
>                          (lambda (err) (describe err))))
>            (compile 'nil '(lambda ()
>                            (with-open-file (f "/tmp/fookoo")))))
> ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0

Also, this happens only with the default optimize levels: if I
(declaim (optimize (speed 1) (debug 3))) I don't get this warning any

Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20081220/f7bac747/attachment.sig>

More information about the ecl-devel mailing list