September 09, 2022 General » Re: [OT] C vs C++ | |||
|---|---|---|---|
| |||
...they are much simpler to understand than template and trait trickery. That's why a... | |||
September 09, 2022 Learn » Re: Storing a lambda alongside type-erased data | |||
|---|---|---|---|
| |||
...implement is similar but a pointer to template struct with various functions. The advantage is... | |||
September 08, 2022 Learn » Re: Storing a lambda alongside type-erased data | |||
|---|---|---|---|
| |||
...a pointer to an instance of a template function. The member variable `fptr` [1] is... | |||
September 08, 2022 Issues » [Issue 8577] static assert is triggered after tuple bounds check | |||
|---|---|---|---|
| |||
...the template instantiation are correct. Template constraints are used to check that the template arguments... | |||
September 08, 2022 Issues » [Issue 8364] Allow exclamation mark in template definition | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=8364 RazvanN <razvan.nitu1305@gmail.com> changed... | |||
September 07, 2022 Learn » Storing a lambda alongside type-erased data | |||
|---|---|---|---|
| |||
...because the data is provided as sequence template parameters (aka variadic). Note that set() member... | |||
September 08, 2022 Learn » Re: Error "Unexpected '\n' when converting from type LockingTextReader to type int" | |||
|---|---|---|---|
| |||
That is a template. It'll type check that the format specifier matches your arguments... | |||
September 07, 2022 General » Re: Load dynamic libraries with no hand-written bindings! | |||
|---|---|---|---|
| |||
...import std.traits;
template FuncType(alias symbol) {
alias FuncType = typeof(&symbol);
}
template GetFunctionList(alias Module... | |||
September 07, 2022 Issues » [Issue 13732] Regular templates can use "template this", and they allow any type to be passed | |||
|---|---|---|---|
| |||
...Nick Treleaven <nick@geany.org> --- What's the advantage over a normal template type parameter? -- | |||
September 06, 2022 General » Re: Load dynamic libraries with no hand-written bindings! | |||
|---|---|---|---|
| |||
...with
typeof(&__traits(getMember, Module, member))
...which would let you eliminate the `FuncType` template entirely. | |||
Copyright © 1999-2021 by the D Language Foundation