On Tue 03 Jan 2012 23:28, Mike Gran <spk...@yahoo.com> writes:

>> From: Ludovic Courtès <l...@gnu.org>
>>>  scm_sym2var
>> 
>> It’s public for historical reason, but I personally don’t like it,
>> because it has a stupid name and complex semantics.  ;-)
>  
>> 
>> Depending on what you’re doing, you may be able to use one of the scm_c_
>> functions in modules.h.  WDYT?
>
> It always bothered me, though, that the many scm_c_lookup and
> scm_c_{public,private}_* procedures have so many non-local exits.
> It does seem like a lot of C code is necessary just to check if a
> variable is there or not, since you have to catch all the exceptions.

What about scm_c_public_variable ?  Granted, it will exit nonlocally if
the module doesn't exist and have a public interface, but it does return
#f if the name is not bound in the given module.

Andy
-- 
http://wingolog.org/

Reply via email to