[Bese-devel] Re: rfc2109

Attila Lendvai attila.lendvai at gmail.com
Mon Jun 26 22:38:09 UTC 2006


> Here's another (more complicated) example
> (by Gary King):
>
> (defclass load-only-file-mixin ()
>     ())
>
> (defclass load-only-cl-source-file (load-only-file-mixin cl-source-file)
>     ())
>
> (defmethod perform ((op compile-op) (component load-only-file-mixin))
>     nil)
>
> (defmethod perform ((op load-op) (component load-only-cl-source-file))
>     (load (component-pathname component)))
>
> (defsystem asdf-binary-locations
>     :version "0.1"
>     :author "Gary Warren King <gwking at metabang.com>"
>     :maintainer "Gary Warren King <gwking at metabang.com>"
>     :licence "MIT Style License"
>     :description "Put compiled Lisp files in their places."
>
>     :components ((:module
>                   "dev"
>                   :components ((:load-only-cl-source-file "main")
>
>                                (:static-file "notes.text")))
>
>                  (:module
>                   "website"
>                   :components ((:module "source"
>                                         :components ((:static-file
> "index.lml")))))))

thanks!

i've pushed this solution adapted to rfc2109. now it's always loaded
from source when loaded through asdf (this means (require :rfc2109) in
sbcl, too).

- attila

(alias 101 on irc &no 'its not lisp code :)



More information about the bese-devel mailing list