chicken-users
[Top][All Lists]
Advanced

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

Re: Chicken-setup redesign (was: Re: [Chicken-users] Re: getopt, getopt_


From: Peter Bex
Subject: Re: Chicken-setup redesign (was: Re: [Chicken-users] Re: getopt, getopt_long?)
Date: Thu, 10 Jul 2008 19:23:15 +0200
User-agent: Mutt/1.4.2.3i

On Thu, Jul 10, 2008 at 02:41:27PM +0200, Peter Bex wrote:
> Of course, this would also require the possibility of loading a
> particular version of a library.  I propose this syntax:
> 
> (require-library foo (bar 1.2) (qux 1))
> 
> This requires the latest installed version of foo (whatever that is),
> and version 1.2 of bar.  From qux the latest installed minor version
> with major version 1 is required (so, if you have 1.1 and 1.2 installed,
> it will pick 1.2).  These semantics match those of the 'versions' egg,
> I think.

On second thought, the syntax above is needlessly complex.

(require-library foo bar-1.2 qux-1) is much more straightforward and
maps _directly_ to the code in the 'versions' egg, too.  It also reserves
the "structured library names" like (bar ..) for future enhancements.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"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

Attachment: pgpxOXCyyU27R.pgp
Description: PGP signature


reply via email to

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