Thu 31 Mar 2005 09:54:47 PM UTC, original submission:
This is an excerpt from the last project I had to do.
I'm pretty sure it's not the intended behavior.
Hope it's useful (I didn't find it in the list of
corrected bugs since that version)
GB
----------------------------------------------------------
;; Side-note
; I found a bug in the procedure symbol<? in my scheme interpreter, which is
; Rel 7.5.1 Mc 11.165 Rt 14.180 Edwin 3.99 6.001 15.30
; and is the one I downloaded from the 6.001 site.
; My computer is an i686 with Linux (kernel: 2.6.9-gentoo-r4).
; The error is the following:
; symbol<? doesn't perform type checking, or at least not as it is supposed to
; also doesn't conform to the specification
; It is not described in the Revised 5 Report on Scheme, but in the guide.
;
; The expression
; (symbol<? '10 'ab)
; should be equivalent to
; (string<? (symbol->string '10) (symbol->string 'ab))
; however, the second one correctly sees the error, halting execution and
; printing the usual
;The object 10, passed as an argument to symbol-name, is not a symbol.
;Type D to debug error, Q to quit back to REP loop: q
;Quit!
; Whereas, symbol<? end up in segmentation fault:
;Hardware trap SIGSEGV
;Type D to debug error, Q to quit back to REP loop: q
;Quit!
; The debugger is not useful in this situation, and locating the source of
; the problem is a pain!
|