Search

July 26, 2022
Learn »
...The definition of string is[2]:

```d
alias string  = immutable(char)[];
```

Note the immutable there...
July 25, 2022
General »
...an alias could be added then to differentiate it – something like

```d
alias SmartNullable...
July 23, 2022
General »
...a symbol, like this:

```D
template MangleCallback(alias Symbol)
{
    enum MangleCallback = "myclib_" ~ __traits(identifier, Symbol...
July 23, 2022
General »
...if(defined(_WIN32_WCE))
     alias fdopen = (fd,mode) {}; /* No fdopen() */
  else
     alias fdopen = _fdopen;
}
```

(I...
July 22, 2022
Learn »
...everything we already did
    } else {
        enum printEnum(alias x) = x;
    }
}
```

But I like yours better.
July 22, 2022
General »
...struct point{
	int x,y,xv,yv;
}
alias atZero=withMe!(q{return x==0 && y...
July 22, 2022
Learn »
...typeof(this):

```
module foo;

mixin template opBi(
    alias f0
) {
    static foreach (k, f; f0) { typeof...
July 22, 2022
General »
...bitmanip : bitfields;

enum UserRole : ubyte {
    None        = 0,
}

alias UserIdT = ushort;

enum BIT_COUNT    = 30;
enum...
July 21, 2022
Genel »
...zorundasınız.

- @uda'lar tek tük.

@nogc yerine alias nogc = makeUDA!(@nonew, @noheap // ...) falan diyebilirdik.

-----

Kısa...
July 20, 2022
Learn »
...A)
        {
            alias E = ElementType!A;
            static if (isArray!E)
            {
                alias FlatElementType = FlatElementType!E;
            }
            else
            {
                alias...
203 204 205 206 207 208 209 210 211 212 213
Next ›   Last »