dev-serveez
[Top][All Lists]
Advanced

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

Re: [dev-serveez] guile: garbage collection ?


From: Martin Grabmueller
Subject: Re: [dev-serveez] guile: garbage collection ?
Date: Tue, 13 Mar 2001 12:26:21 +0100 (MET)

> From: "Raimi 'Raimi' Jacob" <address@hidden>
> Date: Tue, 13 Mar 2001 11:08:00 +0100 (CET)
> 
> some of the guile converter functions such as gh_scm2newstr() return
> pointers to 'new' memory. do i have to free that? is it in the guile gc ?

The malloc()ed memory returned by these functions is not handled by
the Guile GC and has to be explicitly free()ed.

> where do i find documentation to guil/gh.h. i just see the prototypes and
> code against those but i am (as in this case) not sure about the
> semantics.

Check out the (preliminary) Guile Reference Manual, online at 

http://www.glug.org/docbits/guile-doc-out/html/guile-1.4/guile_toc.html

especially about the GH high-level interface at 

http://www.glug.org/docbits/guile-doc-out/html/guile-1.4/guile_33.html#SEC231

Tarballs available at

http://www.glug.org/docbits/

Regards,
  'martin



reply via email to

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