Search

July 30
General »
Of course, the mixin there is not doing anything more than a struct with enum...
July 29
General »
...int C = 17;
    } else {
        static assert(0);
    }
}

mixin enumGen!(FooEnum, "FOO");

static assert(FOO.A...
July 28
General »
...and `mixin`s to build the full enum definition, something like this possible.

```d
mixin...
July 25
DIP Ideas »
...immutable"])
    {
        static if(is(mixin(RQ, " T")* : mixin(LQ, " T")*))
        {
            mixin(iq{
                this(ref $(RQ...
July 25
DIP Ideas »
...impactful addition would be the ability to mixin an identifier.

Currently, one of the only...
July 25
DIP Ideas »
I dont know how to this explain this better but let's try. The AST...
July 25
DIP Ideas »
...D grammar not is just arbitrary. Now, `mixin("private:")` isn’t illegal, it just doesn’t do...
July 24
DIP Ideas »
...with a scope. There's a well known bug (closed as of today), `mixin("private:")`.
July 24
DIP Ideas »
...alias attributes would be nicer, for metaprogramming.

Mixin identifiers would be useful:
https://forum.dlang...
July 24
DIP Ideas »
...a labeled mixin; but I doubt it

```d
mixin foo:
  void mixin("bar")(){}

mixin(foo);
```
1 2 3 4 5 6 7 8
Next ›   Last »