Search

September 09, 2022
General »
...they are much simpler to understand than template and trait trickery. That's why a...
September 09, 2022
Learn »
...implement is similar but a pointer to template struct with various functions. The advantage is...
September 08, 2022
Learn »
...a pointer to an instance of a template function.

The member variable `fptr` [1] is...
September 08, 2022
Issues »
...the template instantiation are
correct.
Template constraints are used to check that the template arguments...
September 08, 2022
Issues »
https://issues.dlang.org/show_bug.cgi?id=8364

RazvanN <razvan.nitu1305@gmail.com> changed...
September 07, 2022
Learn »
...because the data is provided as sequence template parameters (aka variadic).

Note that set() member...
September 08, 2022
Learn »
That is a template.

It'll type check that the format specifier matches your arguments...
September 07, 2022
General »
...import std.traits;

template FuncType(alias symbol) {
    alias FuncType = typeof(&symbol);
}

template GetFunctionList(alias Module...
September 07, 2022
Issues »
...Nick Treleaven <nick@geany.org> ---
What's the advantage over a normal template type parameter?

--
September 06, 2022
General »
...with

    typeof(&__traits(getMember, Module, member))

...which would let you eliminate the `FuncType` template entirely.
252 253 254 255 256 257 258 259 260 261 262
Next ›   Last »