NamespaceContext

Namespace support

final
class NamespaceContext {}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Examples

1 enum Direction
2 {
3     up,
4     down
5 }
6 
7 auto ctx = new DukContext();
8 
9 ctx.createNamespace("Work")
10     .register!Direction
11     .finalize();
12 
13 auto res = ctx.evalString!int("Work.Direction.down");
14 assert(res == 1);

Meta