Search

October 05
General »
...R.stringof);
  }
}

import std.stdio;
void main()
{
  const
      int[] x;
  //const
      int y...
October 04
Issues »
...obj, 456);
    assert(obj.n == 456); // immutable object mutated!
}

void main() @safe
{
    example1();
    example2();
    example3();
}
---

--
October 04
Issues »
...casting away const on void pointers.

```
void main()
{
    const int* x = cast(int*) malloc(4...
October 04
Learn »
...were at global scope". So:

```D
void main()
{
    static struct S
    {
        int x, y;
    }

    static...
October 04
Learn »
...file.json:
    ```
        {
        	"name": "foo"
        }

```
```
import std;

void main(){

        	immutable content = import("my_json_file.json...
October 04
General »
...const T* x, const T* y) { }

void main()
{
    const Object o;
    const Throwable t;
    f...
October 04
Learn »
...sh
main.d(12): Error: variable `content` cannot be read at compile time
main.d...
October 03
Learn »
...to!string);
        return 3;
    }

    return 0;
}

int main(string[] args) {
    string username = args[1];
    string...
October 03
Issues »
...locally since a year or so:

```
void main() {
    pragma(mangle, "func")
    extern(C) int func...
October 03
Issues »
...void oops(){}

void main() {
    void oops();
}
```

there could be an error for `main.oops` because...
16 17 18 19 20 21 22 23 24 25 26 27
Next ›   Last »