chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] How to structure a project


From: John Cowan
Subject: Re: [Chicken-users] How to structure a project
Date: Wed, 10 Jan 2007 15:48:37 -0500
User-agent: Mutt/1.3.28i

Zbigniew scripsit:

> The various SSAX egg ports also use 'include'.  The reason is the
> source distributions are made up of a bunch of interrelated .scm
> files, with a lot of internal procedures that you don't want exported
> to the user.  One option is to generate separate .so files and use a
> module system to restrict the visible namespace.  Another is to
> 'include' the source files into one main file and compile everything
> into a single .so, exporting only what is necessary.  Given that
> there's no "standard" module system for Chicken or R5RS Scheme in
> general, I felt the latter was more practical (and it seems to work
> fine).  As a bonus, the internal procedures will be treated as block
> global without any additional effort on your part.

My thoughts exactly.

-- 
John Cowan  address@hidden  http://ccil.org/~cowan
And now here I was, in a country where a right to say how the country should
be governed was restricted to six persons in each thousand of its population.
For the nine hundred and ninety-four to express dissatisfaction with the
regnant system and propose to change it, would have made the whole six
shudder as one man, it would have been so disloyal, so dishonorable, such
putrid black treason.  --Mark Twain's Connecticut Yankee




reply via email to

[Prev in Thread] Current Thread [Next in Thread]