drecord

Undocumented in source.

Members

Aliases

TC3Record
alias TC3Record = record!(get!(int, "x", () => 20), get_compute!(float, "y", (rec) => rec.x * 2f))
Undocumented in source.

Templates

get
template get(alias type, string name, args...)

Add a field and getter to the record

get_compute
template get_compute(alias type, string name, alias construct)

Add a field whose value is computed when the record is created. It is run after get, and get_set fields have been set.

get_set
template get_set(alias type, string name, args...)

Add a field and appropriate getter and setter to the record

property
template property(string name, alias accessor, args...)

Add a property to the record

record
template record(args...)
Undocumented in source.

Meta