[racket] Oh, load! Where art thou?

From: Richard Cleis (rcleis at mac.com)
Date: Fri Jul 23 21:58:52 EDT 2010

Given a file of "some-scheme.rxt":

;#lang racket

(define a-var 'a-val)

and a program in a definitions window:

#lang racket

(define (f) (load "some-scheme.rkt"))

... Entering (f) in the interactions window defines a-var.

If the comment is removed from ;#lang racket, a-var is not defined.  Where did it go?

If the comment is removed from ;(f), an 'unbound identifier' error is triggered during the Run. [(f) still works in the interactions window.] Which identifier is unbound?  

How can I explain where (load) evaluates it's contents?

Does (load) have a future in racket?


Posted on the users mailing list.