[racket] `provide` failed under `#lang racket/load`

From: Yi Dai (plmday at gmail.com)
Date: Sun Aug 4 04:12:31 EDT 2013


I have the following code in a file named `foo.rkt`:

#lang racket/load

(provide foo)

(define foo 'bar)

When trying to run the code, I got the following confusing error:

> `provide`: not at module level in: `(provide foo)`

What does this mean?  Why `provide` is not at module level?
Use `#lang racket` instead does not pose this problem.  I am
confused.  Any idea?

Yours truly,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130804/d6a8afcd/attachment.html>

Posted on the users mailing list.