[bugfix] repl failed to import default libraries

This commit is contained in:
Yuichi Nishiwaki 2015-06-20 02:34:46 +09:00
parent a0323bd5fc
commit 9dbcb2a605
1 changed files with 16 additions and 15 deletions

View File

@ -21,21 +21,22 @@
(define user-env (library-environment (find-library '(picrin user))))
(eval
'(import (scheme base)
(scheme load)
(scheme process-context)
(scheme read)
(scheme write)
(scheme file)
(scheme inexact)
(scheme cxr)
(scheme lazy)
(scheme time)
(picrin macro)
(picrin array)
(picrin library))
user-env)
(begin
(current-library (find-library '(picrin user)))
(eval
'(import (scheme base)
(scheme load)
(scheme process-context)
(scheme read)
(scheme write)
(scheme file)
(scheme inexact)
(scheme cxr)
(scheme lazy)
(scheme time)
(picrin macro))
user-env)
(current-library (find-library '(picrin repl))))
(define (repl)
(let loop ((buf ""))