ImplicitContext

A "context" implements per-thread scoped globals. It is a frame in the secundary stack.

Members

Functions

get
T get(const(char)[] name)

Get a context variable. The look-up will chain to above contexts like sort of namespaces or a dynamic cast. Topmost context gets the lookup, like namespaces or prototype chains.

query
bool query(const(char)[] name, T res)

Query a context variable (with the possibility that it doesn't exist). The look-up will chain to above contexts like sort of namespaces or a dynamic cast. Topmost context gets the lookup, like namespaces or prototype chains.

set
void set(const(char)[] name, T value)

Set a context variable.

Static functions

pop
void pop()
Undocumented in source. Be warned that the author may not have intended to support it.
push
void push()

Helper for pushContext(). This isn't tied to this particular context, so static it is.

Meta