Search

October 11
LDC »
...import core.stdc.stdio;

extern(C) void main() {
    puts("Hello world");
}
$ ldc2 -mtriple=aarch64-linux...
October 11
General »
...Weird
{
    static int opIndex() @safe => 8;
}

void main() @safe
{
    Weird[] weirds;
    align(Weird[]) int x...
October 12
General »
...Special casing random things is D's main claim to fame
and the source of...
October 11
Learn »
...Sources: http://deb.debian.org/debian bullseye/main amd64 Packages
Description: LLVM D Compiler
 LDC...
October 11
General »
...struct S
    {
        int x;
        int y;
    }

    void main()
    {
        auto s1 = S(42);
        auto s2 = S...
October 11
Learn »
...write;
    else write(" = ", arg);
  }
  writeln();
}

void main()
{
   int a = 5, b = 22;
   show(i...
October 11
General »
...end(ap);

    return rc;
}


extern(C) void main(int argc, const(char)** argv)
{
    wrap_printf...
October 11
Learn »
...writeln(__traits(identifier, val));
}
```
Instead,

```d
void main() {
    float x = 123;
    float y = 456;

    printName...
October 10
DIP Ideas »
...char;

import std.stdio, std.variant;
void main()
{
    T u; R v;
    writefln("%d : %d...
October 10
Issues »
...T other)
    {
        this.s = other.s;
    }
}

void main()
{
    {
        shared S original;
        S copy = original; // ok...
13 14 15 16 17 18 19 20 21 22 23 24
Next ›   Last »