* standard libraries now have version (6).

* #<library> now prints versions in proper form.
This commit is contained in:
Abdulaziz Ghuloum 2007-10-26 01:22:11 -04:00
parent 959b682588
commit 75a95bc189
4 changed files with 6 additions and 2 deletions

Binary file not shown.

View File

@ -1443,7 +1443,7 @@
[visible? (caddr legend-entry)])
(let ([id (gensym)]
[name name]
[version '()]
[version (if (eq? (car name) 'rnrs) '(6) '())]
[import-libs '()]
[visit-libs '()]
[invoke-libs '()])

View File

@ -2791,6 +2791,7 @@
(cdr x)))
subst)))
((library name) (eq? library 'library)
;;; FIXME: versioning stuff
(let ((lib (find-library-by-name name)))
(unless lib
(error 'import

View File

@ -52,7 +52,10 @@
(unless (library? x)
(error 'record-type-printer "not a library"))
(display
(format "#<library ~s>" (append (library-name x) (library-ver x)))
(format "#<library ~s>"
(if (null? (library-ver x))
(library-name x)
(append (library-name x) (list (library-ver x)))))
p)))
(define (find-dependencies ls)