Search

February 02, 2023
Learn »
...arr = LimitedArray!COL(ROW);

  assert(arr.cell[0].elements.length >= COL);
  assert(arr.length == SUM...
February 01, 2023
Learn »
...0 ],
                         ];

  auto arrayish = Arrayish!int(ROW, COL);
  assert(arrayish.length == SUM);

  // copy array...
  foreach(r...
January 30, 2023
General »
...64 X86_64 D_LP64 D_PIC assert D_PreConditions D_PostConditions D_Invariants D...
January 30, 2023
Issues »
...auto x = typeid(T);
}

void main()
{
    static assert(__traits(compiles,
    {
        struct S { int *p = &x...
January 30, 2023
General »
...num1 ~ 5;

  assert(num1.length == 5);
  assert(num1.length > num2.length);

  num2 = num1;
  assert(num1...
January 29, 2023
General »
...typeof(test1.data);

  import std.traits : isSomeString;
  assert(is(TestType == string) &&
            isSomeString!TestType);

  test1 = S...
January 28, 2023
General »
...a.safeAllocate(4)))();
    a.safeDeallocate(ip.move);
    assert(ip.unwrap == null);
}
```
Working code:
https://github...
January 24, 2023
Issues »
...free(argv_);
    toAStringz(argv, argv_);
//
// end fragment
//
      assert (data_are_the_same (argv, argv_));
   }
}

$ dmd...
January 24, 2023
Issues »
...enum staticOverhead = DispatchTable!().sizeof;
}

struct DispatchTable()
{
    static assert (DTB.staticOverhead == typeof(this).sizeof);
}

Error: circular...
January 23, 2023
Issues »
...true

    enum isAttrRange = is(NameType == string);
}

static assert(isAttrRange!string); // fails
---

The trouble boils down...
104 105 106 107 108 109 110 111 112 113 114
Next ›   Last »