Hi! I am back (in guile world). :) On Sat, Jan 17, 2009 at 3:36 AM, Linas Vepstas <linasveps...@gmail.com> wrote: > 2009/1/16 <dsm...@roadrunner.com>: >> ---- Neil Jerram <neiljer...@googlemail.com> 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