[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Loading a user-specified list of extensions?
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Loading a user-specified list of extensions? |
Date: |
Mon, 10 Nov 2008 08:09:26 +0100 |
On Sun, Nov 9, 2008 at 1:55 PM, Alejandro Forero Cuervo
<address@hidden> wrote:
> What's the best way for a program to load an egg specified by the user
> (not known at compile time; and which, obviously, doesn't export
> macros to the loading program)?
>
> For instance, I'd like to do something like:
>
> (load-extension (read))
>
> Ideally, this should indicate success with the return value (or raise
> a condition if the egg could not be loaded).
>
> I've found that I can use ##sys#require for this, but is there a way
> to do it without using functions with hashes (ie. I don't want to have
> to change this with every new release due to depending on internal
> functions)?
>
Just using "(require 'my-ext)" should do the job.
cheers,
felix