1 day ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...class MyClass : SerializationRoot { }
class MyOtherClass : SerializationRoot {
this(int) { }
override void serialize() {
writeln("This class does... | |||
1 day ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...Serializing ", typeid(T));
}
}
class MyType : SerializableRoot {
@thing int field;
}
void main() {
MyType c = new MyType... | |||
2 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...serialize() {
// serialize here
}
}
class MyType : SerializableRoot {
@thing int field;
...
}
```
Some how SerializableRoot.serialize has to... | |||
3 days ago Learn » Re: Partial application on Nth argument | |||
|---|---|---|---|
| |||
...first, args[idx]);
}
} unittest {
auto sum = (int a, int b) => a + b;
alias sum11= partialN... | |||
3 days ago Learn » Re: Partial application on Nth argument | |||
|---|---|---|---|
| |||
...argvalue[0],otherargs[arg..$]);
}
unittest{
int fun(int a, int b) { return a - b; }
// create... | |||
3 days ago Learn » Partial application on Nth argument | |||
|---|---|---|---|
| |||
...Nth argument ?
Something like :
``` D
int fun(int a, int b) { return a - b; }
// create... | |||
4 days ago DIP Ideas » @property fields | |||
|---|---|---|---|
| |||
...IField {
@property int field;
}
class Thing : IField {
@property int field;
}
struct Thing2 {
@property int field... | |||
4 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...this' to an 'int' member, then assigning the struct to an int var. The scheme... | |||
4 days ago Learn » Re: How can I have those "template instance recursive expansion" errors under control? | |||
|---|---|---|---|
| |||
...T) = is(T==Vector!(CT, N), CT, int N); enum isScalar(T) = is(T==bool... | |||
4 days ago Learn » Re: maybe a noreturn issue | |||
|---|---|---|---|
| |||
...signature is part of stable API - int f(int x) => assert(0, "unimplemented"); So I... | |||
Copyright © 1999-2021 by the D Language Foundation