Search

January 09, 2023
Issues »
...Template constraints article not listed in article index

https://github.com/dlang/dlang.org/pull...
January 09, 2023
Issues »
...Template constraints article not listed in article
                    index
           Product: D
           Version: D2
          Hardware: All
                OS...
January 06, 2023
General »
...might construct a static array inside an index expression where $ may be bound to the...
January 05, 2023
Learn »
...e., the last value of the loop index. Do this instead:

```D
foreach (BoardSize boardSize...
January 05, 2023
Learn »
...dmd_runJFfSJW: onlineapp.d:12: Assertion 'array index out of bounds' failed.
Error: program killed...
January 05, 2023
Learn »
...handler
core.exception.ArrayIndexError@test.d(25): index [5] exceeds array of length 5
Aborted...
January 04, 2023
Learn »
...t index) {
    alias HiddenType = void*;
    auto ptrToHiddens = cast(HiddenType[2]*)obj;
    return (*ptrToHiddens)[index];
}

Here...
January 04, 2023
General »
...stdio;
  if(auto result = fun.nextIndexOf(6)) {
    "index of ".write(result - 1);
  } else {
    "Not".write...
January 04, 2023
General »
...it finds the integer, it returns the index in the
   array where the integer occurs...
December 28, 2022
Learn »
...but as you mention, it uses more memory and makes index evaluation eager (vs lazy).

30 31 32 33 34 35 36 37 38 39 40 41
Next ›   Last »