[plt-scheme] language levels in drscheme

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Wed Jan 17 15:26:28 EST 2007

On Wed, 17 Jan 2007, Corey Sweeney wrote:

> Is there a way to force specific languages for specific files?  i didn't 
> see anything obvious is plt-prefs.ss

Hi Corey,

One way to do this is by using a module, and naming the dependent language 

For example,

(module test-lang (lib "plt-pretty-big.ss" "lang")
   (define (hypotenuse a b)
     (sqr (+ (sqrt a) (sqrt b)))))

The third thing in the module declaration tells mzscheme where all the 
primitives of the language come from.  In this case, we use the 
"plt-pretty-big.ss" from the HTDP "lang" collection.

If you search Help Desk for "plt-pretty-big.ss", you should be able to see 
more about this.

> Or is there a way to permanantly set the default to "pretty big" (my 
> most common), and then just manually set the modules to "module" each 
> time i load?

I'm not quite sure I understand what you mean here yet; can you explain 

Best of wishes!

Posted on the users mailing list.