Skip to content

Instantly share code, notes, and snippets.

@cametan001
Created May 7, 2010 20:26
Show Gist options
  • Save cametan001/393965 to your computer and use it in GitHub Desktop.
Save cametan001/393965 to your computer and use it in GitHub Desktop.
(in-package #:hello)
(defparameter *a* "hello, ")
(in-package #:hello)
(defparameter *b* "World!")
(defpackage :hello-system (:use :asdf :cl))
(in-package :hello-system)
(defsystem hello
:name "hello"
:author ""
:version ""
:maintainer ""
:licence ""
:description ""
:long-description ""
:components
((:file "packages")
(:file "a" :depends-on ("packages"))
(:file "b" :depends-on ("packages"))
;; string-of-hello-world は packages.lisp、a.lisp、b.lispに依存している
(:file "string-of-hello-world" :depends-on ("packages" "a" "b"))
;; body-of-hello-world.lisp は packages.lisp と string-of-hello-world.lisp に依存している
;; しかし、a.lisp と b.lisp への依存は明示しなくて良い
(:file "body-of-hello-world" :depends-on ("packages" "string-of-hello-world"))))
(in-package #:hello)
(defparameter *h* (concatenate 'string *a* *b*))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment