[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] how should I handle callbacks into eggs?
From: |
F. Wittenberger |
Subject: |
Re: [Chicken-users] how should I handle callbacks into eggs? |
Date: |
Mon, 06 Dec 2010 14:08:56 +0100 |
Am Sonntag, den 05.12.2010, 19:42 -0700 schrieb Alan Post:
> How do I tell jbogerna that it is making a bunch of procedure calls
> that it won't be able to resolve at compile-time, so I can specify
> the actual library having those calls at that point?
>
In such a case I usually resort to a pattern, where an interface module
exports those procedures jborafskesamselpla et al will provide and bind
them in the initialization of jborafskesamselpla to their eventual
value.
Whereby "bind" could be either a plain set!, procedure calls containing
these set!'s exported by the interface module, or the interface
exporting parameter objects. Depends on taste and performance, at
least.
/Jörg