mit-scheme-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: painter implementation for picture language in SICP


From: Taylor R Campbell
Subject: Re: painter implementation for picture language in SICP
Date: Thu, 26 Dec 2019 04:39:09 +0000

> Date: Wed, 25 Dec 2019 14:28:35 -0500
> From: David Liu <address@hidden>
> 
> Thanks Taylor for the tip. I made the flo:vector replacements and the next
> complaint it gives me is that make-picture is not defined. I'm currently
> using the Debian 10 package version of MIT-scheme so src/6001 is not
> included. I downloaded the src tarball and noticed that make-picture is
> indeed defined in pic-reco.scm. There's a 6001.pkg file which I tried to
> load, but ran into the undefined "global-definitions" and "define-package"
> functions. What is the intended way to load the definitions in src/6001?

This is a legacy `package' description.  What you do with it is more
or less as follows:

(cd "/path/to/6001")
(load "6001.sf")
(load "6001.cbf")
(load "make")

The 6001.sf script processes the 6001.pkg file and macro-expands the
source files into .bin files.  The 6001.cbf script compiles the
macro-expanded files into machine code .com files.  The make.scm
script loads it all up.  Then you can interactively enter the student
environment with:

(ge '(student))

Subsequent input at the REPL will be done in the (student) package
with all the bindings described in 6001.pkg.

(Probably all of this package business will go away in the near future
when we finish transitioning to R7RS libraries, but I don't know when
that might happen.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]