4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...if(!is(T.SerializerAspect))
{
serialize(o,s);
}
void serialize2(T)(byte[] o, T s) if... | |||
4 days ago DIP Ideas » Re: @property fields | |||
|---|---|---|---|
| |||
...properties of @property is to have control if you want only a getter (read only... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...default_serialise;
ubyte[] serialise(T)(T arg)if(!is(T==struct)){ return [1]; }
```
```d
module... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...100){
enum next_i = i+1;
static if(i){
static assert(__previous.i == i-1... | |||
5 days ago DIP Ideas » @property fields | |||
|---|---|---|---|
| |||
...int field;
}
struct Thing2 {
private int field;
}
```
If we have struct inheritance, then it would... | |||
5 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
Yes, that would be my thought. If you need the control between last field of... | |||
5 days ago Learn » Re: Variable modified by different threads. | |||
|---|---|---|---|
| |||
...thread. I.e. the cpu will segfault if you try to access it from another... | |||
5 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...become fairly useless if it introduced a scope. (Same as for static if.) However, you... | |||
5 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...passing the child stuct, with 'isA' relations) (If not, then there are two different behaviours... | |||
5 days ago DIP Ideas » Re: Struct inheritance | |||
|---|---|---|---|
| |||
...struct Child : Dad {
}
```
(I'm not sure if the scheme I mention does, I'd... | |||
Copyright © 1999-2021 by the D Language Foundation