August 03, 2021 General » Re: Empty non-null Associative Arrays should be trivial or even the default. | |||
|---|---|---|---|
| |||
...aa[0]` as an rvalue, so no dummy element is inserted. However, `aa[0] ~= element... | |||
August 03, 2021 General » Empty non-null Associative Arrays should be trivial or even the default. | |||
|---|---|---|---|
| |||
Having to insert dummy variables into an associative array in order to initialize it (and... | |||
July 30, 2021 Learn » Re: Exit before second main with -funittest | |||
|---|---|---|---|
| |||
...enforce;
main(["exe"]);
enforce(false, new Exception("dummy"));
}
@testCLI unittest {
main(["exe", "up to main... | |||
July 23, 2021 Learn » Re: associative array with Parallel | |||
|---|---|---|---|
| |||
you are right. in the pseudocode, i wanted to say: `ii[i] = somefunc(dummy);` | |||
July 22, 2021 Learn » associative array with Parallel | |||
|---|---|---|---|
| |||
Consider :
int [] ii;
foreach(i,dummy; parallel(somearray)) {
ii ~= somefunc(dummy);
}
This is not safe... | |||
July 20, 2021 General » Re: What is that "enum function" supposed to be ? | |||
|---|---|---|---|
| |||
...immutable
inout
shared
__gshared
Property
nothrow
pure
ref
```
deprecated x = new Object;
@dummy y = 1;
| |||
July 14, 2021 Learn » Re: static assert not printing out along the error diagnostic | |||
|---|---|---|---|
| |||
...alias ResultType = real;
} else {
alias ResultType = void; // dummy
}
// code relying on ResultType
}
```
A benefit of... | |||
July 14, 2021 Learn » Re: static assert not printing out along the error diagnostic | |||
|---|---|---|---|
| |||
Weirdly, adding a dummy `ResultType` declaration to the `else` branch makes the assert message show... | |||
July 07, 2021 Learn » Re: array inside a class + alias this + filter -> clears the array. | |||
|---|---|---|---|
| |||
...the container for those based on a dummy struct. Like going from: ``` db.entities.add... | |||
June 29, 2021 General » Re: Metaprogramming without templates | |||
|---|---|---|---|
| |||
...the function pointers to be initialized to dummy functions which do nothing. Let's have... | |||
Copyright © 1999-2021 by the D Language Foundation