guile-devel
[Top][All Lists]
Advanced

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

Re: Undocumented procedures


From: Andy Wingo
Subject: Re: Undocumented procedures
Date: Sun, 08 Jan 2012 00:24:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Tue 03 Jan 2012 23:28, Mike Gran <address@hidden> writes:

>> From: Ludovic Courtès <address@hidden>
>>>  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

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