1 Language Model
2 Syntactic Forms
3 Datatypes
4 Structures
5 Classes and Objects
6 Units
7 Contracts
8 Pattern Matching
9 Control Flow
10 Concurrency
11 Macros
12 Input and Output
13 Reflection and Security
14 Operating System
15 Memory Management
16 Running PLT Scheme
Bibliography
Index
On this page:
#%variable-reference
Version: 4.0.2

 

2.6 Locations: #%variable-reference

(#%variable-reference id)

(#%variable-reference (#%top . id))

Produces an opaque value representing the location of id, which must be bound as a top-level variable or module-level variable.

The result is useful to low-level extensions; see Inside: PLT Scheme C API. It can also be used with variable-reference->empty-namespace, variable-reference->resolved-module-path, and variable-reference->top-level-namespace, but facilities like define-namespace-anchor and namespace-anchor->namespace wrap those to provide an clearer interface.