1

I just installed the scheme48 package from macports and have started experiencing. I was watching this youtube video, link here and was attempting to perform some of the examples. In the lecture the professor is running scheme on a Sun terminal. For example, I attempt to do '(first 473)' and get 'Error: undefined variable first'. Now, I'm assuming I haven't loaded the correct package / library or what ever it is called in scheme but am not sure what the syntax and library is. I believe that scheme48 and the scheme version on that sun terminal in the video are not the same and could be part of the problem.

So, what library do I need to use and how do I load it?

4

1 に答える 1

1

これらの講義ノートは、 Simply Schemeという本に基づいており、本で使用されているライブラリ コードはここにあります。具体的には、 が必要simply.scmです。

(しかし、この種のオーバーロード関数を持つことが良い考えかどうかは議論の余地があります。具体的には、firstが他の多くの言語とは異なる方法で使用されていることに注意してください。)

于 2011-07-05T04:46:09.537 に答える