This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: the right way to compile and load modules
- From: mikel evins <mevins at me dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: mikel evins <mevins at me dot com>, kawa at sourceware dot org
- Date: Tue, 13 May 2014 05:23:23 -0500
- Subject: Re: the right way to compile and load modules
- Authentication-results: sourceware.org; auth=none
- References: <9F312D97-98C6-4F47-BDD9-B6CAF3868A28 at me dot com> <5371CFD0 dot 7070708 at bothner dot com> <7D1A5D60-5997-4B7A-9176-8F6FA315F016 at me dot com> <ED4375FE-30EE-4ABC-A9DC-2C6C4D67A87A at me dot com>
On May 13, 2014, at 3:40 AM, mikel evins <mevins@me.com> wrote:
> How can I make a system load file that will import or require all of the sources of a project into an interactive session without using load?
Turns out it's easy. If my source files are foo.scm, bar.scm, and baz,scm, I just make a a loadfile like this:
(require "foo,scm")
(require "bar,scm")
(require "baz,scm")
...and place the loadfile in the same directory as "foo.scm", "bar.scm", and "baz.scm".