From: Taylor R Campbell Date: Wed, 9 Jan 2019 03:49:23 +0000 (+0000) Subject: Restore printing strings in #[uri ...]. X-Git-Tag: mit-scheme-pucked-10.1.10~6^2~58 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=1756da579fde805b1e95ccb1a51d7c647bbf5b3c;p=mit-scheme.git Restore printing strings in #[uri ...]. --- diff --git a/src/runtime/url.scm b/src/runtime/url.scm index 4b76d6331..abccf69e6 100644 --- a/src/runtime/url.scm +++ b/src/runtime/url.scm @@ -41,6 +41,11 @@ USA. (fragment uri-fragment) (string uri->string)) +(define-print-method uri? + (standard-print-method 'uri + (lambda (uri) + (list (uri->string uri))))) + (define (make-uri scheme authority path query fragment) (let ((path (if (equal? path '("")) '() path))) (if scheme (guarantee uri-scheme? scheme 'make-uri))