[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: |
Zeeshan Ali (Khattak) |
Subject: |
Re: Killing off scm_init_guile for Guile 2.0 ? |
Date: |
Wed, 21 Jan 2009 23:52:47 +0200 |
Hi!
I am back (in guile world). :)
On Sat, Jan 17, 2009 at 3:36 AM, Linas Vepstas <address@hidden> wrote:
> 2009/1/16 <address@hidden>:
>> ---- 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
>
>> 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.
>
> This is an excellent example of where scm_init_guile
> is exactly the *wrong* function to use. The problem is,
> of course, that if you scm_init_guile in some .so,
> you will accidentally place the entire system into guile
> mode, and not just the .so, as intended.
Ok, my xchat-guile is exactly that kind of thing so i'll just
replace the call to scm_init_guile with scm_with_guile before the next
release.
> This could be cleared up by having the docs make
> the case more forcefully.
Yeah makes sese! Talking of docs, seems while i had been away the
reference manual has been getting some love. IIRC i wrote xchat-guile
mainly by poking around headers file and asking questions on IRC. Now
it will be easier for me to re-learn guile/scheme. :)
--
Regards,
Zeeshan Ali (Khattak)
FSF member#5124