Can't Use My Procedures after Loading Scheme File

Viewed 36

I use an IDE called DrRacket to help to learn scheme.

I read a book named Simply Scheme and I downloaded the package simply-scheme so that I could run examples and do exercises in this book.

This book provides a package named functions.scm, the book instructed me to load it(functions.scm) into the interpreter so I could explore those functions and procedures inside it.

But it seems that I can't use procedures inside the file(functions.scm) after I loaded it.

This is OK when I found I could just open it(functions.scm) in IDE and click run button top right-hand corner.

However, when I kept reading this book, I wrote more and more procedures. And there are more and more times when I want to reuse my procedures defined before.

enter image description here

It becomes a severe problem that I can't use my procedures after loading files into scheme interpreter.

I really don't understand why would this happen. When I add extra parentheses into those files and then I loaded them into Scheme, the interpreter would show error message about unmatched parentheses. This means the interpreter does read the loading files. But why can't I just use the procedures I defined inside it?

enter image description here

I would appreciate it if there is anyone who could explain it and give me a solution to this issue.

0 Answers
Related