January 28, 2022 Issues » [Issue 18910] Non-compile-time-constant parameter default values not respected when passed as alias to a template function (with some indirection) | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=18910 RazvanN <razvan.nitu1305@gmail.com> changed... | |||
January 28, 2022 Issues » [Issue 22540] Instantiation modifies dependant type of value / alias template parameters | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=22540 RazvanN <razvan.nitu1305@gmail.com> changed... | |||
January 28, 2022 Issues » [Issue 3538] Default value of alias template parameter is instantiated only once. | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=3538 RazvanN <razvan.nitu1305@gmail.com> changed... | |||
January 27, 2022 Learn » Re: Template sequence parameter and default value | |||
|---|---|---|---|
| |||
...0) {
import std.meta : AliasSeq;
alias MODULES = AliasSeq!__MODULE__;
} else {
alias MODULES = MODULES_;
}
}
2)
void... | |||
January 27, 2022 Learn » Re: Template sequence parameter and default value | |||
|---|---|---|---|
| |||
...d
void foo(MODULES...)()
{
writeln(MODULES.stringof);
}
alias foo(string MODULE = __MODULE__) = foo!(mixin(MODULE... | |||
January 27, 2022 General » Re: Generic structural recursion | |||
|---|---|---|---|
| |||
...I would do then. ```d auto interpolateImpl(alias fn, Vals...)(ref Vals vals) if (is... | |||
January 27, 2022 Learn » Re: Template sequence parameter and default value | |||
|---|---|---|---|
| |||
...alias Modules = AliasSeq!(FirstModule, RestModules);
// things
}
// foo!(module1, module2) => alias Modules = (module1, module2)
// foo!() => alias... | |||
January 27, 2022 Issues » [Issue 20884] Using getMember with a type as first argument can lose type qualifiers. | |||
|---|---|---|---|
| |||
...the result is the same.
```
alias Ref = mixin("T." ~ name);
...
alias Type2 = typeof(mixin("T... | |||
January 26, 2022 General » Re: Generic structural recursion | |||
|---|---|---|---|
| |||
...result;
if (__ctfe)
{
foreach (field; FieldNameTuple!T)
{
alias F = typeof(__traits(getMember, T, field));
static... | |||
January 26, 2022 General » Re: Generic structural recursion | |||
|---|---|---|---|
| |||
...type encountered? e.g.: ```d auto interpolate(alias fn, X : double)(ref X val1, ref... | |||
Copyright © 1999-2021 by the D Language Foundation