guile-user
[Top][All Lists]
Advanced

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

Re: nil from C


From: Paul Jarc
Subject: Re: nil from C
Date: Thu, 25 Mar 2004 01:46:59 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Ian Zimmerman <address@hidden> wrote:
> Time for next newbie question: how do I create a nil value in C?

That depends on what you mean by "nil".  There's the symbol 'nil,
which has no special properties in Scheme.  There's #f (SCM_BOOL_F),
which is the Scheme-level false value.  And there's '() (SCM_EOL),
which is the empty list.

> I tried SCM_EOL but that seems to translate into #f.

Strange.  SCM_EOL should be different from SCM_BOOL_F.  How exactly
did you observe this?


paul




reply via email to

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