4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...llqcjziyurwmyhzseonm@forum.dlang.org The problem is alias this is too complex, and has introduced... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...betterC subset too complex. What facility of 'alias this' is it intended to preserve? If... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...giving structs inheritance as part of replacing alias this. 2. I want a way to... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...mixin("import thingMod = "~fullyQualifiedName!(__traits(parent, Thing))~";");
alias serialiserFor = thingMod.serialise;
}
```
## app.d
```d
module... | |||
4 days ago General » Re: Something like ADL from C++? | |||
|---|---|---|---|
| |||
...alias mod = __traits(parent, T);
alias serialiseOf = mod.serialise;
}
else
{
static import default_serialise;
alias... | |||
4 days ago Learn » Re: How can I have those "template instance recursive expansion" errors under control? | |||
|---|---|---|---|
| |||
...solution to this inter-module template-type-alias problem is: 1. In the target module... | |||
4 days ago Learn » Re: volatile struct definition for peripheral control registers | |||
|---|---|---|---|
| |||
...public @property T read()
{
return volatileLoad(&value);
}
alias read this;
public void opAssign(T value... | |||
4 days ago Learn » Re: volatile struct definition for peripheral control registers | |||
|---|---|---|---|
| |||
Ah... very nice. I completely missed that "alias this" could be used with a function... | |||
4 days ago Learn » Re: volatile struct definition for peripheral control registers | |||
|---|---|---|---|
| |||
...PM, Josh Holtrop wrote: >> alias get this; > > If I use `alias this` I don't... | |||
4 days ago Learn » Re: volatile struct definition for peripheral control registers | |||
|---|---|---|---|
| |||
...data[];
this ~= _data;
titleLength = _data.length;
}
alias opReturn this;
@property auto opReturn() inout
... | |||
Copyright © 1999-2021 by the D Language Foundation