Warnings `_IOFBF' is deprecated. Use the symbol 'block instead.

2018-07-08 Thread Roel Janssen
Dear Guilers, When compiling my project, setting GUILE_WARN_DEPRECATED to "detailed", I get various warnings like these: `_IOFBF' is deprecated. Use the symbol 'block instead. `_IONBF' is deprecated. Use the symbol 'none instead. `_IOLBF' is deprecated. Use the symbol 'line instead. I grepped

Parsing command line arguments, predicate error

2018-07-08 Thread Zelphir Kaltstahl
Hi! I decided to take a look at how one can parse command line arguments in Guile and was looking for something like argparse in Python. It seems that (use-modules (ice-9 getopt-long)) does the job, except that I hit one problem and don't know what the mistake I am making is. It seems to be connec

Re: Parsing command line arguments, predicate error

2018-07-08 Thread Matt Wette
On 07/08/2018 04:49 AM, Zelphir Kaltstahl wrote: Hi! I decided to take a look at how one can parse command line arguments in Guile and was looking for something like argparse in Python. It seems that (use-modules (ice-9 getopt-long)) does the job, except that I hit one problem and don't know

Re: guile-user Digest, Vol 188, Issue 9

2018-07-08 Thread Zelphir Kaltstahl
On 08.07.2018 18:00, guile-user-requ...@gnu.org wrote: > -- > > Message: 3 > Date: Sun, 8 Jul 2018 08:44:22 -0700 > From: Matt Wette > To: guile-user@gnu.org > Subject: Re: Parsing command line arguments, predicate error > Message-ID: > Content-Type: text/plain; cha

Re: guile-user Digest, Vol 188, Issue 9

2018-07-08 Thread Matt Wette
On 07/08/2018 10:00 AM, Zelphir Kaltstahl wrote: On 08.07.2018 18:00, guile-user-requ...@gnu.org wrote: Apart from this issue, what are the reasons for SRFI-37 to be recommended over getopt-long? The reason I changed was that I wanted to handle multiple flagged arguments (e.g, "-x abc -x def"

Re: guile-user Digest, Vol 188, Issue 9

2018-07-08 Thread Keith Wright
Zelphir Kaltstahl writes: >>> I decided to take a look at how one can parse command line arguments in >>> Guile and was looking for something like argparse in Python. It seems >>> that (use-modules (ice-9 getopt-long)) does the job, except that I hit >>> one problem and don't know what the mistak

Re: guile-user Digest, Vol 188, Issue 9

2018-07-08 Thread Zelphir Kaltstahl
On 09.07.2018 05:42, Keith Wright wrote: > Actually my copy of the manual says: > (predicate func) > ... > then getopt-long will apply func to the value, > and throw an exception if it returns #f. > > func should be a procedure which accepts a string and > returns a boole