* boot-9.scm (process-define-module): Modified to handle both
keywords and symbols.
This commit is contained in:
parent
220ff1eb2f
commit
04798288c6
2 changed files with 11 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Mon Mar 10 15:48:31 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
|
||||
|
||||
* boot-9.scm (process-define-module): Modified to handle both
|
||||
keywords and symbols.
|
||||
|
||||
Sat Mar 8 04:32:44 1997 Gary Houston <ghouston@actrix.gen.nz>
|
||||
|
||||
* slib.scm: update read usage.
|
||||
|
|
|
|||
|
|
@ -1722,8 +1722,12 @@
|
|||
(for-each (lambda (interface)
|
||||
(module-use! module interface))
|
||||
reversed-interfaces)
|
||||
(case (car kws)
|
||||
((:use-module)
|
||||
(case (cond ((keyword? (car kws))
|
||||
(keyword->symbol (car kws)))
|
||||
((symbol? (car kws))
|
||||
(string->symbol (substring (car kws) 1)))
|
||||
(else (car kws)))
|
||||
((use-module)
|
||||
(if (not (pair? (cdr kws)))
|
||||
(error "unrecognized defmodule argument" kws))
|
||||
(let* ((used-name (cadr kws))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue