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: Bad define placement?



Along the same lines, code like this contrived example worked in
guile1.3 but doesn't work now:

	(define (test-fun x)
	  (define tt? (eq? x 3))
	  (define return-val
             (if tt? #t #f))
	   return-val)

guile> (version)
"1.3"
;;; 0  msec  (0 msec in gc)
guile> (test-fun 3)
#t
;;; 0  msec  (0 msec in gc)


guile> (version)
"1.3.2"
;;; 0  msec  (0 msec in gc)
guile> (test-fun 3)
standard input:4:14: In expression (if tt? #t ...):
standard input:4:14: Unbound variable: tt?
ABORT: (misc-error)

Type "(backtrace)" to get more information.

Is this a bug related to the currently discussed one, a brand new
bug or an incorrect method that took advantage of a previous bug in
guile?

--Brad

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