[racket] modules: require and provide behaviour

From: Harry Spier (vasishtha.spier at gmail.com)
Date: Fri Apr 20 17:18:29 EDT 2012

Apologies Danny,
I should have removed the line
"(require "imagemagick_interface.rkt")"
It has nothing to do with the GUI and is only used later on.
Harry

On Fri, Apr 20, 2012 at 5:13 PM, Danny Yoo <dyoo at cs.wpi.edu> wrote:
> Hi Harry,
>
> I'm a little confused, and need a little bit more information.
>
> I'm assuming that the first file in your message is
> 'imagemagick_interface.rkt'. Is it the file that constructs the GUI,
> and provides the function 'get-devanagari-page'?
>
>
> When you show the content of another file called 'get-devanagari-page.rkt':
>
> ----------------------------
> #lang racket/gui
> (require "imagemagick_interface.rkt")
> (require "get-devanagari-page.rkt")
> get-devanagari-page
> ----------------------------
>
> something strikes me as wrong here: there's a circular import, as if
> the file itself is called 'get-devanagari-page.rkt', then it appears
> to be trying to require itself.  That doesn't look right.  Are you
> sure that's the content of this file?


Posted on the users mailing list.