[Openmcl-devel] with-package

Pascal J. Bourguignon pjb at informatimago.com
Sun Jan 13 01:39:56 PST 2013


Taoufik Dachraoui <dachraoui.taoufik at gmail.com> writes:

> replace with-package by the following:

1- can't access lexical bindings:

cl-user> (let ((hello 'world))
           (mb:with-package (MB)
             (print hello)))

;Compiler warnings :
;   In an anonymous lambda form: Unused lexical variable hello
> Debug: #<unbound-variable #x302001E4CDBD>


2- the error messages are not printed nicely (after "Debug: ").
   Compare with:

cl-user> (let ((hello 'world))
           (print whatchamacalit))
;Compiler warnings :
;   In an anonymous lambda form: Undeclared free variable whatchamacalit
;   In an anonymous lambda form: Unused lexical variable hello
> Debug: Unbound variable: whatchamacalit


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.




More information about the Openmcl-devel mailing list