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]

Re: undefined ?


Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:

> Jost Boekemeier <jostobfe@calvados.zrz.TU-Berlin.DE> writes:
> 
> > Han-Wen Nienhuys <hanwen@cs.uu.nl> writes:
> > 
> > > 	guile> (undefd)
> > > 	ERROR: Unbound variable: result
> > 
> > Yeah, no;  that's a problem with the current module system.
> 
> The value SCM_UNDEFINED is simply not intended to exist on the
> Scheme level.  It's part of

Yup.  What about renaming SCM_UNDEFINED to SCM_C_UNDEFINED?


> Guile's internal mechanisms.
> 	#f
> 	guile> (undefd)
> 	#<undefined>
         ^^^^^^^^^^^

> Indeed, I don't even understand why the  second call to (undefd)
> doesn't fail. 

Try this:

(define (b) (display a))
(define a 12)
(b)                        -> 12
(undefine a)
(b)                        -> #<undefined>


Jost

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