[Openmcl-devel] with-package

Pascal J. Bourguignon pjb at informatimago.com
Mon Jan 14 11:07:15 PST 2013


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

> Hi
>
> I hope this time it is ok,

Far from it.  You need at least one or two years studying lisp before
getting close.

You have a lot of non-conforming code (starting with your defpackage
form).

FILE-WRITE-DATE could return nil while the file is still loadable.
If you don't want to modify the package if the file can't be openned,
you can open it with WITH-OPEN-FILE, and pass the file-stream to LOAD.


cl-user> (load "mb.lisp")
;Compiler warnings for "/home/pjb/mb.lisp" :
;   In homeless-symbol-reader: Variable stream not ignored.
#P"/home/pjb/mb.lisp"
cl-user> (use-package :mb)
t
cl-user> (with-package (cl-user)
           (let ((#1=#:hello 'world))
             (print (list #1# #1#))))
> Debug: cannot unuse package #<Package "COMMON-LISP-USER">
>        
> While executing: (:internal swank::invoke-default-debugger), in process repl-thread(25).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 > :q
; Evaluation aborted on #<simple-error #x302001CB87FD>.


-- 
__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