June 18, 2022 General » Re: Twin Primes Segmented Sieve of Zakiya (SSoZ) Explained | |||
|---|---|---|---|
| |||
...std.range;
import std.stdio;
void main() {
alias testType = ulong;
testType count;
2.iota!testType... | |||
June 16, 2022 Issues » [Issue 23192] New: Can't iterate aggregate fields with static foreach inside a member function | |||
|---|---|---|---|
| |||
...than an alias, since replacing the `static foreach` loop with an explicit alias declaration causes... | |||
June 16, 2022 Learn » Re: getSymbolsByUDA in constructor/member functions | |||
|---|---|---|---|
| |||
...the output of `getSymbolsByUDA` is just an alias sequence and nothing should happen before consuming... | |||
June 16, 2022 Learn » Re: getSymbolsByUDA in constructor/member functions | |||
|---|---|---|---|
| |||
...if `this.C` is practically just an alias for `C`. I still think this is... | |||
June 16, 2022 Learn » Re: getSymbolsByUDA in constructor/member functions | |||
|---|---|---|---|
| |||
...symbol to the instance or the type/alias, depending if you pass `this` or `Def... | |||
June 16, 2022 Learn » Re: getSymbolsByUDA in constructor/member functions | |||
|---|---|---|---|
| |||
...static foreach (sym; __traits(allMembers, Def)) {{
alias member = Alias!(__traits(getMember, Def, sym));
static if... | |||
June 16, 2022 General » Re: Adding a new design constraint to D | |||
|---|---|---|---|
| |||
...writing to references if there is an alias that would make it a conflict: https... | |||
June 15, 2022 Learn » getSymbolsByUDA in constructor/member functions | |||
|---|---|---|---|
| |||
...is nothing in the foreach body. ```d alias ALL = getSymbolsByUDA!(Def, XML); pragma(msg, ALL... | |||
June 15, 2022 Learn » Re: Bug in dmd? | |||
|---|---|---|---|
| |||
...of your code):
```d
import std.sumtype;
alias CC = SumType!(AA,BB);
struct AA {}
struct... | |||
June 14, 2022 Learn » Bug? | |||
|---|---|---|---|
| |||
...test(alias f) {
auto test(I)(I i) { return f(i); }
}
void main()
{
alias t... | |||
Copyright © 1999-2021 by the D Language Foundation