experiment

This commit is contained in:
Danny Yoo 2011-07-30 21:09:07 -04:00
parent b573d0b762
commit b7ebab1428

View File

@ -0,0 +1,17 @@
#lang racket/base
;; Provides a mapping of the core bindings in kernel, so that we know statically
;; if something is implemented as a primitive or a closure.
(require planet/util)
(define ns (make-base-empty-namespace))
(define bound-procedure-names
(let ([path (resolve-planet-path `(planet ,(this-package-version-symbol lang/kernel)))])
(parameterize ([current-namespace ns])
(namespace-require path)
(for/list ([name (namespace-mapped-symbols)]
#:when (namespace-variable-value name #t (lambda () #f)))
name))))