In Chez Scheme, I can use (load "./xyz.scm") to include definitions of functions in xyz.scm to the current file and use these function in the current file.
I have seen that racket support require, import and load. However, when using #lang sicp, it seems that require and import are both undefined. load is defined, but (load "./xyz.rkt") can not bring definitions of functions in "xyz.rkt" into the scope of the current file. Can I achieve the same effect of load in Chez Scheme in SICP language?
In Chez Scheme, I can use
(load "./xyz.scm")
to include definitions of functions inxyz.scm
to the current file and use these function in the current file.I have seen that racket support require, import and load. However, when using
#lang sicp
, it seems thatrequire
andimport
are both undefined.load
is defined, but(load "./xyz.rkt")
can not bring definitions of functions in "xyz.rkt" into the scope of the current file. Can I achieve the same effect of load in Chez Scheme in SICP language?