src/norm/private/dot

Macros

macro dot(obj: typed; fld: string): untyped
Turn obj.dot("fld") into obj.fld.

Templates

template hasField(t: typed; fieldName: static string): bool
Checks if the given type t has a field with the name provided in fieldName