This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

undefined ?



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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]