[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Using egg getopt-long, basic question.
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] Using egg getopt-long, basic question. |
Date: |
Thu, 13 May 2010 23:59:20 +0200 |
User-agent: |
Mutt/1.4.2.3i |
On Thu, May 13, 2010 at 06:47:40PM -0300, Christiano F. Haesbaert wrote:
> Hi,
>
> I'm new to this list (and to scheme), don't know if this kind of
> question is appropriate, here it is:
Sure, this list is fine for generic questions.
> I'm trying to use getopt-long, the first argument is a list of strings, like:
>
> (getopt-long '("program" "--ram" "foo" "bar")
> grammar))
>
> --> ((@ "program" "foo" "bar") (ram . #t))
>
> What is that @ ?
A quick check of the source code reveals this comment:
"There is a special item in the returned alist with a key @: the list of
arguments that are not options or option values."
The @ is just a literal symbol with the string value "@".
Looks like the egg documentation is just lacking; it doesn't mention
the @ sign at all.
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