The OpenD Programming Language

selfTemplatePipe

@optmath
template selfTemplatePipe (
alias Template
Args...
) {}

Examples

// import mir.ndslice.topology: map;
alias map(alias fun) = a => a; // some template
static assert (__traits(isSame, selfTemplatePipe!(map, 2, "a * 2"), map!(pipe!("a * 2", map!"a * 2"))));

Meta