[racket] strange interference with prompt/abort

From: 1 at depikt.net (1 at depikt.net)
Date: Fri Dec 13 10:22:28 EST 2013


learning usage of prompt/abort i've met this
strange behavior (code reduced for this example,
thus not really sensy):

(define (·first occurrences x L)
     (define R (filter (λ(ix) (set-member? (list-ref L ix) x)) L))
       (take R (min (length R) occurrences)))
(print (·first 5 (set #\q #\a #\h) "this is a sequence."))

(prompt (+ 2 (abort 5)))

is failing (in DrRacket) with:

call-with-continuation-prompt: contract violation
   expected: continuation-prompt-tag?
   given: #\q
   argument position: 2nd
   other arguments...:

The 'prompt line alone, taken from the
reference, is working perfectly, as in some
other environments also. What is wrong here ?

Regards, Joost Behrends

Posted on the users mailing list.