guile-devel
[Top][All Lists]
Advanced

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

Re: Argh! Module system frustration.


From: Han-Wen Nienhuys
Subject: Re: Argh! Module system frustration.
Date: Tue, 13 Nov 2001 15:53:47 +0100

address@hidden writes:
> > I suggest that this be documented more prominently, I spent more than
> > 1.5 hours figuring out why the attached program didn't work.
> 
> ( The solution is to export foobar in order to make it visible to the
>   outside.  You can do that with scm_c_export ("foobar", NULL). )

I couldn't find any documentation for this function, so here goes:


@code{scm_c_export}(@var{name-list})

@code{scm_c_export} exports symbol from the current module, making
them visible to users of the module. This function takes a list of
string arguments, terminated by NULL, e.g.

@example
        scm_c_export ("add-double-record", "bamboozle-money", NULL);
@end example


nitpicks:

* I think that the real interface is needlessly complicated. I suggest
that scm_c_export(NULL) do the right thing.

* Secondly, va_arg() should be ended by va_end() according to the ANSI
standard.




> 

-- 

Han-Wen Nienhuys   |   address@hidden    | http://www.cs.uu.nl/~hanwen/




reply via email to

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