[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] export() docs and example?
From: |
Category 5 |
Subject: |
Re: [Chicken-users] export() docs and example? |
Date: |
Thu, 15 Apr 2004 09:44:31 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (berkeley-unix) |
Terrence Brannon wrote:
> However, I am not clear on how to use export
Yes, the docs on declarations and the unit system are a little sketchy
at the moment. By far the best tack to take is to look at a couple of
the many existing examples - see how current eggs do it.
But export is very simple:
(declare (export foo bar ...)) says to only export the listed
identifiers and their bindings to other compilation units. This is the
basic low-level feature that gives you some namespace control when you
write libraries - you can define a bunch of internal procedures and not
export them, and code outside the library won't see them.
--