August 08, 2022 Learn » Re: How do I initialize a templated constructor? | |||
|---|---|---|---|
| |||
...t = testArray!(10, "int")(60); ``` As the template parameter being part of the constructor would... | |||
August 08, 2022 Learn » Re: Fix template parameter | |||
|---|---|---|---|
| |||
This will only be included in the object file if used. This will always be... | |||
August 08, 2022 Learn » Fix template parameter | |||
|---|---|---|---|
| |||
Hello. I found in the documentation functions declared like this: ```D pure @nogc @safe BigInt... | |||
August 08, 2022 Learn » Re: How do I initialize a templated constructor? | |||
|---|---|---|---|
| |||
Yeah I think the only template argument you can have for constructors are `this` which... | |||
August 08, 2022 Learn » How do I initialize a templated constructor? | |||
|---|---|---|---|
| |||
...and be able to successfully initialize the template parameters of the constructor but until now... | |||
August 05, 2022 Learn » Re: Unittest Absurdity | |||
|---|---|---|---|
| |||
...the function. And what if the other template is used? This is the AST from... | |||
August 05, 2022 Learn » Re: Unittest Absurdity | |||
|---|---|---|---|
| |||
...left. Fine for me since the other template is unused. Same for your example: ```d... | |||
August 05, 2022 Learn » Re: Unittest Absurdity | |||
|---|---|---|---|
| |||
oof, I expected this to include the template parameters! I believe it normally does? This... | |||
August 05, 2022 Learn » Re: Unittest Absurdity | |||
|---|---|---|---|
| |||
...end when there's only this one template instantiation:
```d
opOpAssign!"/"
{
pure nothrow @nogc @safe... | |||
August 04, 2022 General » Re: Using Enums to Generate Scoped List of Names | |||
|---|---|---|---|
| |||
...S(E, T)
{
private T flags;
private template Impl(T mask)
{
pure nothrow @nogc @safe... | |||
Copyright © 1999-2021 by the D Language Foundation