guile-user
[Top][All Lists]
Advanced

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

Re: [guile/scwm] 2nd argument problem to scm_definedp()


From: Rob Browning
Subject: Re: [guile/scwm] 2nd argument problem to scm_definedp()
Date: Mon, 16 Sep 2002 14:55:03 -0500
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-pc-linux-gnu)

Marius Vollmer <address@hidden> writes:

> If you want to default an optional argument from C, use SCM_UNDEFINED:
>
>   if (SCM_NFALSEP (scm_definedp (load_path_symbol, SCM_UNDEFINED)))
>     ...
>
> I guess you want the default.  If not, things get messy.  The lexical
> environment that definedp expects is the data structure that gets
> passed as the second argument to macro transformers.

Do we have anything like

  scm_defined_in_modulep (sym, module)

If not, should we?  (ISTR some discussion about this a while back...)

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD




reply via email to

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