March 11, 2022 Learn » Re: Template with default parameter | |||
|---|---|---|---|
| |||
Create an alias for T!() is the best you can do. Ex. ``` alias t = T... | |||
March 10, 2022 General » Re: The problem that took him 5 years to fix in C++, I solved in a minute with D | |||
|---|---|---|---|
| |||
...D language structures (alias, static if, enums, templates, etc.). In fact, marry alias, static if... | |||
March 10, 2022 General » Re: Questions on the new __traits(parameters) | |||
|---|---|---|---|
| |||
Yes, I agree. ```d string s = "WTF"; alias p = typeof(__traits(parameters)); foreach(x; s... | |||
March 10, 2022 General » Re: Questions on the new __traits(parameters) | |||
|---|---|---|---|
| |||
...Ts...)(R range, int param, Ts args)
{
alias relevantParams = __traits(parameters)[1..$]; // Why?
foreach (auto... | |||
March 10, 2022 General » Re: The problem that took him 5 years to fix in C++, I solved in a minute with D | |||
|---|---|---|---|
| |||
...not being able to unify types with alias. C++ is currently ahead in meta-programming... | |||
March 09, 2022 Issues » [Issue 22866] New: ICE when accessing __traits(parameter) alias of an outer scope inside foreach | |||
|---|---|---|---|
| |||
...22866
Summary: ICE when accessing __traits(parameter) alias of an
outer scope inside foreach
Product... | |||
March 07, 2022 General » Re: Inline imports redivivus | |||
|---|---|---|---|
| |||
...this is what was discussed as "new alias" in the past where the template allows... | |||
March 01, 2022 Learn » Re: What does dual-context mean? | |||
|---|---|---|---|
| |||
...accesses its calling context via a template alias parameter. See this bug report for more... | |||
March 01, 2022 Issues » [Issue 21975] is expression ignores implicit conversion of struct via alias this when pattern matching | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=21975 --- Comment #5 from Dlang Bot <dlang... | |||
March 01, 2022 Learn » What does dual-context mean? | |||
|---|---|---|---|
| |||
...deprecation message?
```d
struct MockFile {
[...]
void writef(alias fmt, A...)(A args) { // Deprecation: function 'writef... | |||
Copyright © 1999-2021 by the D Language Foundation