You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-lib/br/syntax-scopes-test-3.rkt

22 lines
325 B
Racket

9 years ago
#lang br
(require "subscope.rkt")
(introduce-scope blue)
(introduce-scope red)
(define #'(double-x)
(with-blue-identifiers (x)
9 years ago
#'(set! x (+ x x))))
(define #'(display-x)
(with-blue-identifiers (x)
#'(displayln x)))
9 years ago
9 years ago
(blue:define x 42)
9 years ago
9 years ago
blue:x
9 years ago
9 years ago
(double-x)
9 years ago
9 years ago
(display-x)