(reset-primes!)
(add-secondary-gc-daemon! reset-primes!)))
-(define (error:illegal-stream-element stream operator operand)
- (error (make-illegal-stream-element "stream" stream operator operand)))
-
-(define make-illegal-stream-element)
(define condition-type:illegal-stream-element)
+(define error:illegal-stream-element)
(define (initialize-conditions!)
(set! condition-type:illegal-stream-element
(lambda (condition port)
(write-string "The object " port)
(write (access-condition condition 'DATUM) port)
- (write-string ", occurring in the " port)
+ (write-string ", passed as the " port)
(write-string (ordinal-number-string
(+ (access-condition condition 'OPERAND) 1))
port)
(write-string " argument to " port)
(write-operator (access-condition condition 'OPERATOR) port)
(write-string ", is not a stream." port))))
- (set! make-illegal-stream-element
- (condition-constructor condition-type:illegal-stream-element
- '(TYPE DATUM OPERATOR OPERAND)))
+ (set! error:illegal-stream-element
+ (let ((signaller
+ (condition-signaller condition-type:illegal-stream-element
+ '(TYPE DATUM OPERATOR OPERAND)
+ standard-error-handler)))
+ (named-lambda (error:illegal-stream-element stream operator operand)
+ (signaller "stream" stream operator operand))))
unspecific)
\ No newline at end of file