The OpenD Programming Language

singleConstant

Single value interpolation

singleConstant
(
F
)
(
const F value
)

Examples

auto sc = singleConstant(34.1);
assert(sc(100) == 34.1);
assert(sc.opCall!2(100) == [34.1, 0, 0]);

Meta