This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Too many classes definitions?
- From: Per Bothner <per at bothner dot com>
- To: David St-Hilaire <sthilaid at iro dot umontreal dot ca>
- Cc: kawa at sources dot redhat dot com
- Date: Sun, 07 Oct 2007 19:14:48 -0700
- Subject: Re: Too many classes definitions?
- References: <4709613A.7090401@iro.umontreal.ca>
David St-Hilaire wrote:
Hi all!
I have a really weird problem... I'm defining a few simple-class's in a single
.scm file. At first everything was going well. At some point, everytime I add
another simple-class, I get all kinds of problems,
...
If you send me complete self-contained test-case (preferably
simplified), I'll take a look.
Oh and I'd also like what are the difference between 'include, 'load and
'require. I think that include just copy/pastes the code in the file
Basically, yes.
but I'm not
sure what is the diff. with the 'load and 'require forms.
Require is syntax that is processed at compile-time (as well as
run-time) - it imports a module, and is compatible with static
scoping.
load is a pure run-time function, and so the compiler can't
type-check or optimize any time.
If you can work with require (and one usually can), it is strongly
preferred.
--
--Per Bothner
per@bothner.com http://per.bothner.com/