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

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