Search

August 14, 2021
Learn »
Static arrays really don't get any love :(

I also recently filed a bug:
https...
August 14, 2021
Genel »
...özellikleriyle bu halloluyordur.
        T[] data;

        T opIndex( size_t i, size_t j)
        {
            assert((i...
August 14, 2021
Issues »
...currently on run.dlang.io):
```
struct U { size_t[4] a; }

struct S
{
    int x...
August 13, 2021
Learn »
...code
	struct Idx { dchar ch; }
	struct SliceRange { size_t start, end; }

	struct StringWrapper {
		string impl...
August 13, 2021
Learn »
...opIndex(size_t[2] idxs) {
      return SliceByIndexOf(s[ idxs[0] .. idxs[1]]);
   }
   size_t[2...
August 10, 2021
Learn »
Use `size_t` and `ptrdiff_t` instead to make your program compile in both 32...
August 10, 2021
Learn »
```d
import std.traits: isStaticArray;

template Iota(size_t n)
{
    import std.meta: AliasSeq;

    static...
August 10, 2021
Learn »
...auto structOf(T, size_t N)(T[N] xs) {
    string defstruct(size_t n) {
        import...
August 09, 2021
Learn »
...either a type cast
>
>      writefln!"%X"(cast(size_t)&x);
>
> or using the generic format...
August 09, 2021
Learn »
...either a type cast

    writefln!"%X"(cast(size_t)&x);

or using the generic format...
138 139 140 141 142 143 144 145 146 147 148
Next ›   Last »