dc

Undocumented in source.

Modules

dotbuilder
module dc.dotbuilder
Undocumented in source.
ignore
module dc.ignore
Undocumented in source.
wire
module dc.wire

This module adds declares a mixin template for automatically generating class constructor. Generated constructor takes 1 argument per each field declared with @wired attribute. Later each argument gets assigned to its respective field.

Members

Functions

unwrap
auto unwrap(T args)

A copy of std::tie from C++. TODO: write proper documentation for this

Manifest constants

compileDate
enum compileDate;

Enum that contains compile date in YYYYMMDD format

Structs

CWrap
struct CWrap(alias module_, string prefix, alias constructor, alias destructor)

Struct that provides following things:

1. RAII wrapper above handle type 2. Mechanism that strips prefix from names of functions in given module. Those functions are available through opDispatch-based mechanism.

Templates

Infix
template Infix(alias fun)

Template that generates sort of infix functions. To use generated function, surround it with any of overloadable binary operators.

bestBefore
template bestBefore(int deprecatedStamp)

Template that calls static assert if compile date is past of what was passed as an argument. Go figure out what to do with that.

from
template from(alias name)

https://dlang.org/blog/2017/02/13/a-new-import-idiom/

Meta