load-port/load-into-port now yield errors when called, since I don't know where they could be used
This commit is contained in:
parent
c2045e6407
commit
f8975842de
|
@ -32,19 +32,21 @@
|
|||
; JMG For scsh.
|
||||
|
||||
(define (load-into-port port p)
|
||||
(compile-and-run-port port p
|
||||
(lambda (template)
|
||||
(invoke-template template p))
|
||||
(current-noise-port)
|
||||
#t)); JMG whatever #t means...
|
||||
(error "JMG: load into port called. See rts/eval"))
|
||||
; (compile-and-run-port port p
|
||||
; (lambda (template)
|
||||
; (invoke-template template p))
|
||||
; (current-noise-port)
|
||||
; #t)); JMG whatever #t means...
|
||||
|
||||
(define (load-port port . package-option)
|
||||
(let ((p (if (null? package-option)
|
||||
(interaction-environment)
|
||||
(car package-option))))
|
||||
(noting-undefined-variables p
|
||||
(lambda ()
|
||||
(load-into-port port p)))))
|
||||
(error "JMG: load port called. See rts/eval "))
|
||||
; (let ((p (if (null? package-option)
|
||||
; (interaction-environment)
|
||||
; (car package-option))))
|
||||
; (noting-undefined-variables p
|
||||
; (lambda ()
|
||||
; (load-into-port port p)))))
|
||||
|
||||
;----------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue