diff options
Diffstat (limited to 'STk.init')
-rw-r--r-- | STk.init | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -116,9 +116,9 @@ thunk (lambda () (exchange old))))))) -;;@ *FEATURES* is a list of symbols naming the (SLIB) features +;;@ SLIB:FEATURES is a list of symbols naming the (SLIB) features ;;; initially supported by this implementation. -(define *features* +(define slib:features '( source ;can load scheme source files ;(SLIB:LOAD-SOURCE "filename") @@ -289,13 +289,16 @@ (let ((cep (current-error-port))) (if (provided? 'trace) (print-call-stack cep)) (display "Warn: " cep) - (for-each (lambda (x) (display #\ cep) (write x cep)) args)))) + (for-each (lambda (x) (display #\space cep) (write x cep)) args)))) ;;; define an error procedure for the library -(define (slib:error . args) - (if (provided? 'trace) (print-call-stack (current-error-port))) - (error (apply string-append (map (lambda (x) (format #f " ~a" x)) args)))) - +(define slib:error + (let ((error error)) + (lambda args + (if (provided? 'trace) (print-call-stack (current-error-port))) + (error + (apply string-append + (map (lambda (x) (format #f " ~a" x)) args)))))) ;;; define these as appropriate for your system. (define slib:tab (integer->char 9)) |