Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading libraries in Dr Scheme

Tags:

lisp

scheme

sicp

I am working through SICP using Dr Scheme.

How do I load external libraries in Dr Scheme? Say I want to use Math library then how do I ask Dr Scheme to load the particular library?

I tried with the following: (require (lib "math.ss"))

Got the following error: reference to undefined identifier: require

I have chosen R5RS as the language.


2 Answers

Change the language to Pretty Big. 'require' is not an R5RS feature.

like image 126
Cantillon Avatar answered Nov 23 '25 21:11

Cantillon


Use this for r5rs:

(#%require (lib "math.ss"))
like image 26
lvh Avatar answered Nov 23 '25 23:11

lvh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!