[Openmcl-devel] Scribble demo
    Stas Boukarev 
    stassats at gmail.com
       
    Wed Jun  3 12:56:04 PDT 2009
    
    
  
Neil Baylis <neil.baylis at gmail.com> writes:
> I think this is a CL question more than specifically CCL, but I'll ask here anyway: When I run the scribble demo from within Emacs/Slime,
> it works OK if I (load "scribble.lisp") at the slime REPL. But if I use C-c C-k, a.k.a. "compile and load file" it complains that there's
> no package named "GUI". I imagine this is because the meaning of  (require :cocoa) is different when compiling vs loading. If I do
> (require :cocoa) before I do C-c C-k then it works OK. There's probably no bug here, I just don't understand exactly what's happening.
Symbols are read before compilation, and packages should exist before
they are read. One way to do it is by putting #.(require :module) in the
file. Load executes each form sequentially, so (require :module) is
executed before other forms are read.
-- 
With best regards, Stas.
    
    
More information about the Openmcl-devel
mailing list