May 30, 2023 Issues » [Issue 23948] New: __FILE__ and __MODULE__ cannot be implicitly converted to const(char)* as default paramenter | |||
|---|---|---|---|
| |||
...onlineapp.d(9): Error: template instance `foo!((__error))` incompatible arguments for template instantiation onlineapp.d... | |||
May 30, 2023 General » We're long overdue for a "D is awesome" post | |||
|---|---|---|---|
| |||
...void genSplitHtml(Data data, ...) {
auto outputTemplate = File("template.html", "r");
foreach (...) {
auto filename = generateFilename(...);
auto... | |||
May 30, 2023 Issues » [Issue 23946] New: specifications state that "there can only be destructor" which can be confusinf because of mixin templates | |||
|---|---|---|---|
| |||
...introduce a destructor.
eg.
```
import std;
mixin template AddNewDtor()
{
~this()
{
writeln("Mixin dtor");
}
}
class Foo... | |||
May 30, 2023 Issues » [Issue 23945] New: ICE caused by std.sumtype | |||
|---|---|---|---|
| |||
...dmd/std/meta.d(632,42): Error: template instance `std.sumtype.matchImpl!(Flag.yes, destroyIfOwner... | |||
May 30, 2023 Learn » Re: How get struct value by member name string ? | |||
|---|---|---|---|
| |||
...s value to show in vibe.d template, how do I use a function to... | |||
May 30, 2023 Learn » SumType! seemingly results in cryptic error, with dub suggesting to make an issue ticket | |||
|---|---|---|---|
| |||
...dmd/std/meta.d(632,42): Error: template instance `std.sumtype.matchImpl!(Flag.yes, destroyIfOwner... | |||
May 29, 2023 Learn » Re: Code duplication where you wish to have a routine called with either immutable or mutable arguments | |||
|---|---|---|---|
| |||
...I make the one routine into a template? That could work but give 'in' parameters... | |||
May 30, 2023 Learn » Code duplication where you wish to have a routine called with either immutable or mutable arguments | |||
|---|---|---|---|
| |||
...I make the one routine into a template? Even if I did, that would perhaps... | |||
May 29, 2023 Learn » Re: How get struct value by member name string ? | |||
|---|---|---|---|
| |||
...more precisely, known at the time of template expansion. In this case, use `enum`: enum... | |||
May 28, 2023 Learn » Re: Concepts like c++20 with specialized overload resolution. | |||
|---|---|---|---|
| |||
...which not. A good (?!?) example of how bad this can get is the "to" template. | |||
Copyright © 1999-2021 by the D Language Foundation