This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
undefined ?
- To: guile at sourceware dot cygnus dot com
- Subject: undefined ?
- From: Han-Wen Nienhuys <hanwen at cs dot uu dot nl>
- Date: Thu, 6 Jul 2000 21:33:07 +0200 (CEST)
- Reply-To: hanwen at cs dot uu dot nl
Ah, I can see now why #<undefined> is not made available to Scheme
programs.
SCM
undefd ()
{
return SCM_UNDEFINED;
}
[..]
scm_make_gsubr ("undefd", 0,0, 0, (SCM(*)(...))undefd);
[..]
dokkum:~/usr/src/lilypond$ lilypond
GNU LilyPond 1.3.71.
guile> (undefd)
ERROR: Unbound variable: result
ABORT: (unbound-variable)
guile> (define a (undefd))
guile> (defined? 'a)
#f
guile> (undefd)
#<undefined>
Indeed, I don't even understand why the second call to (undefd)
doesn't fail.
--
Han-Wen Nienhuys | hanwen@cs.uu.nl | http://www.cs.uu/~hanwen/