* nil from C
@ 2004-03-25 6:20 Ian Zimmerman
2004-03-25 6:46 ` Paul Jarc
0 siblings, 1 reply; 3+ messages in thread
From: Ian Zimmerman @ 2004-03-25 6:20 UTC (permalink / raw)
Time for next newbie question: how do I create a nil value in C? I
tried SCM_EOL but that seems to translate into #f. I use only the scm_
functions so far, so please don't suggest a gh_ function.
--
Nothing can be explained to a stone.
Or to a stoned person, either.
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nil from C
2004-03-25 6:20 nil from C Ian Zimmerman
@ 2004-03-25 6:46 ` Paul Jarc
2004-03-25 6:52 ` Ian Zimmerman
0 siblings, 1 reply; 3+ messages in thread
From: Paul Jarc @ 2004-03-25 6:46 UTC (permalink / raw)
Cc: guile-user
Ian Zimmerman <itz@buug.org> 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
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nil from C
2004-03-25 6:46 ` Paul Jarc
@ 2004-03-25 6:52 ` Ian Zimmerman
0 siblings, 0 replies; 3+ messages in thread
From: Ian Zimmerman @ 2004-03-25 6:52 UTC (permalink / raw)
Ian> I tried SCM_EOL but that seems to translate into #f.
Paul> Strange. SCM_EOL should be different from SCM_BOOL_F. How
Paul> exactly did you observe this?
Yeah, SCM_EOL works. It was user error - index off by 1.
--
Nothing can be explained to a stone.
Or to a stoned person, either.
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-03-25 6:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-25 6:20 nil from C Ian Zimmerman
2004-03-25 6:46 ` Paul Jarc
2004-03-25 6:52 ` Ian Zimmerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).