[Top][All Lists]

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

Re: argz SMOB

From: Brian S McQueen
Subject: Re: argz SMOB
Date: Mon, 12 Jan 2004 08:08:03 -0800 (PST)

The db libraries are a fact I must live with here.  But I made the SMOB
interface, and started fiddling with it and noticed that, since NULL is
allowed in a scheme string, that the entire argz thing can be viewed as a
single string, and the guile string interface can be used.  I will try it

BTW - GNU C's argz and envz are quite simple to use.  You can do bust up a
query string into a hash like structure with near perl like ease.  There
is no memory allocation.  Another very cool feature of GNU C is the

I will post again when I test out the SCM string to C argz.


On Fri, 9 Jan 2004, Daniel Skarda wrote:

> > I have several libraries in use here which make database queries,
> > returning all the results in an argz (actually as an envz).  I wanted to
> > be able to tweak anything via guile. So I added guile to the project,
> > giving me the ability to tweak from a script file without recompiling.
>   Before I sent you my message, I read argz/envz description in libc reference
> manual and wondered why anybody would like to use such strange data structure.
> (which I still do not understand :)
>   IMHO it would be better to convert output from your database queries to 
> lists
> of strings and symbols (or alists in case of envz). They are more "natural" 
> and
> "convenient" way for data representation in Scheme/Lisp and for processing
> results you can use tools already present in Guile (for-each, map, fold, ...)
> instead of reinventing your own for argz/envz SMOBS.
> 0.

reply via email to

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