[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] Unit files for chicken < 3.4.0 (was Re: [Chicken-u
Re: [Chicken-hackers] Unit files for chicken < 3.4.0 (was Re: [Chicken-users] Srfi-19 problems)
Fri, 7 Nov 2008 20:07:36 +0100
On Fri, Nov 07, 2008 at 05:02:51PM -0200, Mario Domenech Goulart wrote:
> This problem is very annoying. To make the transition to the `files'
> unit era transparent to users, I thought about creating a `files' egg
> which only installs something when (chicken-version) < 3.4.0,
> otherwise nothing is installed and the builtin `files' unit is used.
>  something like (use posix)
> So, when we are using chicken < 3.4.0 a files.so file is installed by
> chicken-setup. The code of this file consists of requiring the
> `posix' unit. When we have `(use files)' in the code, this extension
> is used.
> When we are using chicken >= 3.4.0, no file is installed. When we
> have `(use files)' in the code, the `files' unit is used.
> All the eggs that use procedures from the `files' unit should require
> the `files' egg in their .meta file.
> Yes, that's an awful hack... Any thoughts or better alternatives?
We all switch to 4.0 :)
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
Description: PGP signature