Feedback Loading old programs 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork, old
Re: Question scheme won't let me define anything! Help! (Alison Lanki)
Re: None Not running Scheme? (Rich Lusk)
Date: 2002, Oct 09
From: Benedict Singer <singerb@uchicago.edu>

If you mean that there should be a better way of loading old programs into a running scheme interpreter than cutting and pasting, there is. This is the method I use on all my work, actually, since I don't use emacs. If the old code is stored in oldcode.scm in the current directory:

(define file "oldcode.scm")
(load file)

The define is optional, but nice if you intend to load the code multiple times in one session, ie if you edit it and want to reload it. If not, then you can omit that step. Also note that you MUST use DOUBLE quotes - this makes sense since we've seen what scheme does with single quotes, but it still threw me the first time I tried this. Hope this helps.


Messages

to: "Loading old programs"