Search

1 day ago
General »
...class MyClass : SerializationRoot { }

class MyOtherClass : SerializationRoot {
    this(int) { }
    override void serialize() {
        writeln("This class does...
1 day ago
General »
...Serializing ", typeid(T));
    }
}

class MyType : SerializableRoot {
    @thing int field;
}

void main() {
    MyType c = new MyType...
2 days ago
General »
...serialize() {
		// serialize here
	}
}

class MyType : SerializableRoot {
	@thing int field;

	...
}
```

Some how SerializableRoot.serialize has to...
3 days ago
Learn »
...first, args[idx]);
  }
} unittest {
  auto sum = (int a, int b) => a + b;

  alias sum11= partialN...
3 days ago
Learn »
...argvalue[0],otherargs[arg..$]);
}
unittest{
	int fun(int a, int b) { return a - b; }
	// create...
3 days ago
Learn »
...Nth argument ?

Something like :

``` D
int fun(int a, int b) { return a - b; }

// create...
4 days ago
DIP Ideas »
...IField {
    @property int field;
}

class Thing : IField {
    @property int field;
}

struct Thing2 {
    @property int field...
4 days ago
DIP Ideas »
...this' to an 'int' member, then assigning the struct to an int var.  The scheme...
4 days ago
Learn »
...T) = is(T==Vector!(CT, N), CT, int N);
enum isScalar(T) = is(T==bool...
4 days ago
Learn »
...signature is part of stable API
- int f(int x) => assert(0, "unimplemented");

So I...
« First   ‹ Prev
1 2
Next ›   Last »