July 30 General » Re: enums and version/static if/"inheritance" | |||
|---|---|---|---|
| |||
Of course, the mixin there is not doing anything more than a struct with enum... | |||
July 29 General » Re: enums and version/static if/"inheritance" | |||
|---|---|---|---|
| |||
...int C = 17;
} else {
static assert(0);
}
}
mixin enumGen!(FooEnum, "FOO");
static assert(FOO.A... | |||
July 28 General » enums and version/static if/"inheritance" | |||
|---|---|---|---|
| |||
...and `mixin`s to build the full enum definition, something like this possible. ```d mixin... | |||
July 25 DIP Ideas » Re: Explicit this for methods | |||
|---|---|---|---|
| |||
...immutable"])
{
static if(is(mixin(RQ, " T")* : mixin(LQ, " T")*))
{
mixin(iq{
this(ref $(RQ... | |||
July 25 DIP Ideas » Re: Mixin every entity | |||
|---|---|---|---|
| |||
...impactful addition would be the ability to mixin an identifier. Currently, one of the only... | |||
July 25 DIP Ideas » Re: Mixin every entity | |||
|---|---|---|---|
| |||
I dont know how to this explain this better but let's try. The AST... | |||
July 25 DIP Ideas » Re: Mixin every entity | |||
|---|---|---|---|
| |||
...D grammar not is just arbitrary. Now, `mixin("private:")` isn’t illegal, it just doesn’t do... | |||
July 24 DIP Ideas » Re: Mixin every entity | |||
|---|---|---|---|
| |||
...with a scope. There's a well known bug (closed as of today), `mixin("private:")`. | |||
July 24 DIP Ideas » Re: Mixin every entity | |||
|---|---|---|---|
| |||
...alias attributes would be nicer, for metaprogramming. Mixin identifiers would be useful: https://forum.dlang... | |||
July 24 DIP Ideas » Re: Mixin every entity | |||
|---|---|---|---|
| |||
...a labeled mixin; but I doubt it
```d
mixin foo:
void mixin("bar")(){}
mixin(foo);
``` | |||
Copyright © 1999-2021 by the D Language Foundation