Search

June 26, 2022
General »
...workaround

``typedef unsigned __int32 size_t;``
``typedef unsigned __int64 size_t;``
``__declspec(noreturn)``

They refused...
June 23, 2022
General »
...VLA {
private:
    void* ptr;
    size_t length;
public:
    void setLength(size_t value);
    void imBad...
June 23, 2022
General »
...or dealing with its length, `always` use `size_t` instead of "int", "ulong" or "uint...
June 22, 2022
General »
...VLA {
private:
    void* ptr;
    size_t length;
public:
    void setLength(size_t value);
}

struct Other...
June 22, 2022
Announce »
...if you know some upper size the array can't exceed. Kinda cheap but probably...
June 20, 2022
Issues »
...void main() {
    byte a;
    align(8) byte b;
    assert((cast(size_t) &b) % 8 == 0);
}

--
June 18, 2022
Issues »
...structs with a maximum size of 8 bytes...POD or not doesn't matter). Dmd gets...
June 18, 2022
General »
...i != 1); // error in loop block
  }
  // Equivalent:
  size_t singleLoopError = 1;
  do
  {
    assert(singleLoopError != 1...
June 16, 2022
Learn »
...1..b].to!T;
    }

    T kalKes(string str, size_t a, size_t l)
    {
      import...
June 15, 2022
Genel »
...gereksizce dizi oluşturuldu diye mi?

>
> ---
> T[] sıralıBirDiziOluştur(T)(size_t uzunluk)
> // sıralıBirDiziOluştur!int(10) -> [1...
83 84 85 86 87 88 89 90 91 92 93 94
Next ›   Last »