This is the mail archive of the guile@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: `undefine' bug or feature?



jostobfe@calvados.zrz.tu-berlin.de writes:
> (define a 1)
> (define (l) (display a))
> (l) -> 1
> 
> (undefine a)
> (l) -> #<undefined>
> 
> 
> I think it is better to let `undefine' remove the symbol completely instead
> of setting its value to undefined.
> 

I think this is a bug, udefined variables do get gc'd collectively,
but until then, accessing a variable with an undefined value should
throw an error as usual.

 - Maciej Stachowiak