RE: object.lisp / aggregates.lisp dependency
"James Anderson" <[email protected]> Tue, 7 Jun 2005 17:42:18 +0200
| Newsgroups | gmane.lisp.uffi.devel |
|---|---|
| Message-ID | <[email protected]> |
hello; i'm hooking uffi contingently into a much larger system. one which does not build with asdf, so i'm trying to make the link "single point". which means that when, in the larger build, a single component compiles, then the entire uffi compiles. i could just make it do an entire asdf compile-and-load, but i thought i'd try the two phase process. the problem arises when one tries to (asdf:operate 'asdf:compile-op :uffi). when that tries to compile aggregates.lisp, there is a macro expansion which requires that size-of-foreign-type has been defined. for a compile-only pass, this happens only if the respective definition is wrapped in (eval-when (:compile-toplevel ...) ... ) ... > -----Original Message----- > From: Cyrus Harmon [mailto:ch-uffi-dl6SmSK5uza1Z/[email protected]] > Sent: Tuesday, June 07, 2005 17.03 > To: james anderson > Cc: [email protected] > Subject: Re: [UFFI-Devel] object.lisp / aggregates.lisp dependency > > > > Forgive my ignorance, but can you explain more about this? Under > which situations does the eval-when need to fire? How will this > prevent an intermediate load? > > Thanks, > > Cyrus > > On Jun 7, 2005, at 5:04 AM, james anderson wrote: > > > hello; > > > > i observe that, in order to compile uffi without intermediate > > loads, the definition of size-of-foreign-type in objects.lisp needs > > an eval-when wrapper, as a macro-expansion in aggregates.lisp > > requires it. > > > > ... > > > > > > _______________________________________________ > > UFFI-Devel mailing list > > [email protected] > > http://lists.b9.com/mailman/listinfo/uffi-devel > >