---- Thomas Thiriez <tho...@twistedwave.com> wrote: 
> Hi Paul,
> 
> Here is what you should use for xxx:
> 
> SCM FindFunc(const char *funcName)
> {
>    SCM funcSymbol = scm_c_lookup(funcName);
> 
>    if (!funcSymbol)
>       // undefined symbol
>       return 0;
> 
>    return scm_variable_ref(funcSymbol);
> }

Oi!

Never ever ever let 0 be turned loose to Guile as a SCM value.  Segfaults will 
happen!

Also, funcSymbol will never be 0 (or madness would ensue).

-Dale



Reply via email to