12 interesting bug

Jim Blandy (jimb@red-bean.com)
Thu, 12 Jun 1997 23:38:01 -0500

>try this sometime:
>
>$ guile
>guile> (define 'foo 'bar) ; note that this is not very sensible
>guile> 'foo
>
>I submit that the resulting behavior (at least under
>guile-core-970516) is sub-optimal.

Well, you've redefined quote. The expression you've typed there is
really:

(define (quote foo) (quote bar))

In other words, you've redefined quote as a function. You've got to
kind of expect the system to lose its mind.

When we fix up the module system, it will protect Guile's innards from
sillyness like this. At the moment, it's a pain to fix.