Skip to content

Instantly share code, notes, and snippets.

@samth
Created July 25, 2014 15:17
Show Gist options
  • Save samth/2a32033410846ec96ccb to your computer and use it in GitHub Desktop.
Save samth/2a32033410846ec96ccb to your computer and use it in GitHub Desktop.
#lang racket
(require "foo.rkt")
(define ns (make-base-namespace))
(define v*
(let ()
(parameterize ([current-namespace ns])
(dynamic-require "foo.rkt" 'v))))
(x? v*) ;; should be #f
#lang racket
(struct x ())
(define v (x))
(provide v x?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment