This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MySQL and guile


Ahhh :)

I figured it might be something like that.

I've been generally thrilled with guile so far.  My only complaint,
really, is the obvious one about the documentation.  Since I've only
been playing with the package for a few days, I don't feel qualified to
fully rewrite them, but would sending a list of the errors in the
documentation be helpful ?  I get the feeling that they are awaiting a
big overhaul, so I don't know if this would be helpful or just annoying.

-hal

> Aha!
> 
> Sorry to spoil the fun, but you indeed mucked up the gh_list call.
> SCM_EOL *is* the canonical empty list, so you should be doing
> 
>     gh_make_vector (gh_int2scm (x), SCM_EOL);
> 
> gh_list is a var_args functions, as you might know, but the end of the
> arguments is not marked by SCM_EOL (which is a very valid thing to
> include in a list), but by SCM_UNDEFINED.  So
> 
>     SCM_EOL == gh_list (SCM_UNDEFINED)
> 
> cheers,
>  Marius