Search

4 days ago
General »
...llqcjziyurwmyhzseonm@forum.dlang.org

The problem is alias this is too complex, and has introduced...
4 days ago
General »
...betterC subset too complex.

What facility of 'alias this' is it intended to preserve?  If...
4 days ago
General »
...giving structs inheritance as part of replacing alias this.

2. I want a way to...
4 days ago
General »
...mixin("import thingMod = "~fullyQualifiedName!(__traits(parent, Thing))~";");
    alias serialiserFor = thingMod.serialise;
}
```

## app.d

```d
module...
4 days ago
General »
...alias mod = __traits(parent, T);
        alias serialiseOf = mod.serialise;
    }
    else
    {
        static import default_serialise;
        alias...
4 days ago
Learn »
...solution to this inter-module template-type-alias problem is:

1. In the target module...
4 days ago
Learn »
...public @property T read()
    {
        return volatileLoad(&value);
    }
    alias read this;

    public void opAssign(T value...
4 days ago
Learn »
Ah... very nice. I completely missed that "alias this" could be used with a function...
4 days ago
Learn »
...PM, Josh Holtrop wrote:

>>   alias get this;
>
> If I use `alias this` I don't...
4 days ago
Learn »
...data[];
    this ~= _data;
    titleLength = _data.length;
  }
  alias opReturn this;

  @property auto opReturn() inout
  ...
1 2 3 4
Next ›   Last »