December 06 General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...Serializing ", typeid(T));
}
}
class MyType : SerializableRoot {
@thing int field;
}
void main() {
MyType c = new MyType... | |||
December 06 General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...serialize() {
// serialize here
}
}
class MyType : SerializableRoot {
@thing int field;
...
}
```
Some how SerializableRoot.serialize has to... | |||
December 04 Learn » Re: Partial application on Nth argument | |||
|---|---|---|---|
| |||
...first, args[idx]);
}
} unittest {
auto sum = (int a, int b) => a + b;
alias sum11= partialN... | |||
December 04 Learn » Re: Partial application on Nth argument | |||
|---|---|---|---|
| |||
...argvalue[0],otherargs[arg..$]);
}
unittest{
int fun(int a, int b) { return a - b; }
// create... | |||
December 04 Learn » Partial application on Nth argument | |||
|---|---|---|---|
| |||
...Nth argument ?
Something like :
``` D
int fun(int a, int b) { return a - b; }
// create... | |||
December 03 DIP Ideas » @property fields | |||
|---|---|---|---|
| |||
...IField {
@property int field;
}
class Thing : IField {
@property int field;
}
struct Thing2 {
@property int field... | |||
December 03 DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...this' to an 'int' member, then assigning the struct to an int var. The scheme... | |||
December 03 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... | |||
December 03 Learn » Re: maybe a noreturn issue | |||
|---|---|---|---|
| |||
...signature is part of stable API - int f(int x) => assert(0, "unimplemented"); So I... | |||
December 03 Learn » maybe a noreturn issue | |||
|---|---|---|---|
| |||
Not sure if that should compile
```d
int f()
{
while (true) {}
}
```
What I observe and... | |||
Copyright © 1999-2021 by the D Language Foundation