Search

November 06
Learn »
...implicitly converting `bool` / `char` to `int`, or implicitly converting `int` to `uint` (where negative ints...
November 05
Learn »
...cannot implicitly convert expression `-cast(int)s` of type `int` to `short`


For:

    import std...
November 05
Learn »
...traits(getPointerBitmap, T)[0] < int.sizeof) {
                val = cast(T)(-(cast(int)val));
            } else {
                val = -val...
November 03
Learn »
...that you want const int. To get that, you need

    const(int) foo() { ... }

- Jonathan M...
November 04
Learn »
...can be annotated

int myfunc(char *arg) pure {
}

Although I find:

pure int myfunc(char...
November 03
DIP Ideas »
...counter;
} S;


int main()
{
  assert(Four == 3);
  auto arr[] = { One, Two, Three, Four };

  int Four...
November 02
DIP Development »
...Unfortunately this compiles:

```d
cast(void[])new int[1];
```

And so would this, without calling...
November 01
General »
...libdparse library, short function forms like `int addOne(int i) => i + 1;` or named function...
November 01
DIP Ideas »
...try it this way:


```D
struct Other
{
    int a;
}

struct Data
{
    Other other;
}

void pass...
October 31
Learn »
```d
void f (InputRange!int f) {
    writeln(f);
}

auto x = [1,2,3,4,5...
4 5 6 7 8 9 10 11 12 13 14 15
Next ›   Last »