Search

May 01, 2021
General »
...this case, `foo` could e.g. store `bar` in a global variable causing memory corruption...
May 01, 2021
General »
...do this:

```D
int[3] bar = [1, 2, 3];
foo(bar); // Now it works with...
April 29, 2021
Issues »
...void foo(ref int bar);
  int bar;
  foo(bar);
  foo(bar);
}

Now wait for the...
April 26, 2021
Learn »
...alias stuff = AliasSeq!(VAL_FOO, MyType, VAL_BAR, MyOtherType, /* ... */);
sw: switch (val)
{
    static foreach (i...
April 26, 2021
Issues »
...import test20460b;

void main ()
{
    foo(); // L7
}

int bar ()
{
    throw new Exception("Hello"); // L12
}
module test20460b...
April 25, 2021
Learn »
...int x, y, z;
        }

        void main()
        {
             Foo bar = Foo(1,);
        }

This compiles without syntax errors...
April 23, 2021
Announce »
...it's pretty effective to spam space bar while moving left-to right, and then...
April 21, 2021
Learn »
...foo");

  struct S {
    void bar() {
      writeln(&i, " <- dynamic memory inside bar");
    }
  }

  return S();
}

void main...
April 18, 2021
Learn »
...Y {
	public void bar (B b) {}
}
class X : Y {
	public override void bar (A a){}
}
```
April 15, 2021
Issues »
...d
void main()
{
    import bar;
    foo(1); // Compiles, violating private.
}
--- bar.d
import std.stdio...
82 83 84 85 86 87 88 89 90 91 92 93
Next ›   Last »