Search

May 13, 2023
Issues »
https://issues.dlang.org/show_bug.cgi?id=23916

--- Comment #6 from Vladimir Panteleev <dlang...
May 13, 2023
Issues »
...a type itself.

Why is it a problem if a template instance has a type?

--
May 13, 2023
Issues »
...Why should we not deprecate then remove taking the type of a template / template instance?

--
May 13, 2023
Issues »
...break code like this:

import std.stdio;

template t()
{
        int i;
}

void f(alias a...
May 12, 2023
Issues »
...need for context auto-detected like normal template functions... if the user writes the keyword...
May 12, 2023
Issues »
https://issues.dlang.org/show_bug.cgi?id=23916

--- Comment #2 from Vladimir Panteleev <dlang...
May 12, 2023
Issues »
...type of a template instance is defined in the spec. A template instance seems similar...
May 12, 2023
Issues »
...not compile:

//// test.d ////
template X() {}

void fun()
{
    return X!();
}
////////////////

Template instances having a type...
May 12, 2023
Issues »
...test.d(10): Error: template instance `T!(getValue)` does not match template
declaration `T(bool...
May 12, 2023
Issues »
...1 from mhh <maxhaton@gmail.com> ---
Isn't `auto ref` for template function parameters only?

--
142 143 144 145 146 147 148 149 150 151 152
Next ›   Last »