[racket] Difference between drscheme and racket

From: John Clements (clements at brinckerhoff.org)
Date: Wed Oct 23 17:56:52 EDT 2013

On Oct 23, 2013, at 6:57 AM, Aomar Maddi wrote:

> I wrote a program using drscheme scheme. I'm having trouble getting it to work with racketeering.
> He tells me the mistakes that I do not understand. Thank you for your help.
>   Here is the source of this program:
> 
> 
> ;(require (lib "compile.ss"))
> ;(compile-file "gplateau.scm" "../gplateau.zo")
> 
> (module gplateau racket
>   (provide (all-defined-out))
>   
>   (require racket/math)
>   (require racket/list)
>   (require racket/class)
>   (require racket/draw)
>   (require racket/gui)
>   (require framework)
>   (require (file "sol-awale.zo"))
>   (require (file "meo-plateau.zo"))

You've got a couple of problems up front, here.  First, you probably want to "require" the *source* files, rather than the compiled files.  So, these last two lines should probably read

(require (file "sol-awale.scm"))
(require (file "meo-plateau.scm"))

Also, I'm not sure why you have these two files ... wherever you have them.  If you put them in the same directory with this file, you can require them simply by writing

(require "sol-awale.scm")
(require "meo-plateau.scm")

I'm sure there will be more issues following this....

John Clements




Posted on the users mailing list.