Skip to content

Commit

Permalink
outer.rkt in racket/base to reduce runtime dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Yoo committed Apr 20, 2012
1 parent f15f368 commit 7e075c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions outer.rkt
@@ -1,6 +1,7 @@
#lang racket
#lang racket/base
(require racket/splicing
(for-syntax syntax/strip-context))
(for-syntax racket/base
syntax/strip-context))

(provide def outer)

Expand Down
9 changes: 4 additions & 5 deletions test-outer.rkt
Expand Up @@ -5,7 +5,6 @@




(let ()
(def (f x)
(def (g x) (* (outer x) x))
Expand Down Expand Up @@ -203,14 +202,14 @@
((_ id val)
(let ()
(def (h id)
(def (g id)
val)
(g id))
(def (g id)
val)
(g id))
(h 2)))))

(def (g x)
(def (h x)
(m3 x (outer x)))
(h 5))

(check-equal? (g 4) 4))
(check-equal? (g 4) 4))

0 comments on commit 7e075c1

Please sign in to comment.