[racket] modules: require and provide behaviour

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Fri Apr 20 17:13:27 EDT 2012

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")

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.