[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: Compiling files that 'import' eggs that aren't insta
From: |
Alejandro Forero Cuervo |
Subject: |
[Chicken-users] Re: Compiling files that 'import' eggs that aren't installed? |
Date: |
Sat, 3 Jul 2010 19:07:42 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
> How does one compile a file that requires an extension which is not
> currently installed? I couldn't find the answer looking at The
> Chicken Manual. Obviously, the file being compiled does not depend on
> macros from the module, it just depends on it at runtime.
>
> In Chicken 3 this was not an issue. In Chicken 4, I'm getting:
>
> > Syntax error (import): cannot import from undefined module
>
> I know one can do something like:
>
> (load (string-append (repository-path) module-name ".so"))
>
> But I'm thinking about something cleaner than that (that, because it
> uses the normal code that loads eggs at runtime, will, for instance,
> not load the module if it had already been loaded by another
> extension).
>
> This is a problem for me because (1) I have files that want to execute
> different codepaths depending on which eggs are available (loading
> those that are) and (2) I have mutually dependent eggs (which now I
> can't install in Chicken 4).
(The particular eggs are the format-compiler egg, which has embedded
tests using my embedded-test framework, and the embedded-test, which
uses format when tests fail.)
Alejo.
http://azul.freaks-unidos.net/
- [Chicken-users] Compiling files that 'import' eggs that aren't installed?, Alejandro Forero Cuervo, 2010/07/03
- [Chicken-users] Re: Compiling files that 'import' eggs that aren't installed?,
Alejandro Forero Cuervo <=
- Re: [Chicken-users] Compiling files that 'import' eggs that aren't installed?, Thomas Chust, 2010/07/03
- [Chicken-users] Re: Compiling files that 'import' eggs that aren't installed?, Felix, 2010/07/03
- [Chicken-users] Re: Compiling files that 'import' eggs that aren't installed?, Alejandro Forero Cuervo, 2010/07/04
- [Chicken-users] How to load an extension?, Alejandro Forero Cuervo, 2010/07/04
- [Chicken-users] bug in let-optionals in 4.5.0?, Alejandro Forero Cuervo, 2010/07/04
- [Chicken-users] Exporting proc and macro that references it?, Alejandro Forero Cuervo, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Peter Bex, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Alejandro Forero Cuervo, 2010/07/05
- Re: [Chicken-users] Exporting proc and macro that references it?, Peter Bex, 2010/07/05