[Top][All Lists]

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

Re: Killing off scm_init_guile for Guile 2.0 ?

From: dsmich
Subject: Re: Killing off scm_init_guile for Guile 2.0 ?
Date: Fri, 16 Jan 2009 16:32:14 -0500

---- Neil Jerram <address@hidden> wrote: 
> scm_init_guile has always been a bit problematic, as it requires lots
> of heuristic and OS-dependent code to try to determine where the base
> of the stack is.  It's never been formally deprecated, but we have
> always advised people to use scm_boot_guile or scm_with_guile if they
> can, and the manual says:
>      The function `scm_init_guile' might not be available on all
>      platforms since it requires some stack-bounds-finding magic that
>      might not have been ported to all platforms that Guile runs on.
>      Thus, if you can, it is better to use `scm_with_guile' or its
>      variation `scm_boot_guile' instead of this function.

[ ... ]

> Thoughts?  On the other hand, does moving to BDW-GC take a lot of this
> out of our hands anyway?  In any case, it would be interesting to hear
> whether people think that scm_init_guile is really needed.

Iirc, scm_init_guile is mainly used when you do not have access to main(), for 
example writing a module for apache.  Generally, when you want to add Guile to 
an already existing application that has plugins or extension modules via .so's.


reply via email to

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