guile-devel
[Top][All Lists]
Advanced

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

gh_lookup() equivalent


From: stefan
Subject: gh_lookup() equivalent
Date: Tue, 29 Jan 2002 12:09:06 +0100 (CET)

Hello list,

  you could use `scm_c_lookup()' instead of `gh_lookup()'.  Unfortunately
the scm equivalent throws an `unbound variable' exception if the requested
symbol does not exist.  The former `gh_lookup()' just returned
SCM_UNDEFINED.  Shall we provide something like
`scm_c_lookup_no_exception()' with and additional argument passing the
SCM location to put in the return value when successful?

SCM scm_c_lookup_no_exception (char *symbolname, SCM *value);

This could return `SCM_BOOL_T' and store in `value' when successful and
return `SCM_BOOL_F' otherwise.

Does it make sense?

Thanks in advance,
        address@hidden




reply via email to

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