July 13 General » Appreciating D | |||
|---|---|---|---|
| |||
...concatenation with a mixin:
```d
void main(){
int n;
import std.writeln;
mixin((string[] list... | |||
July 12 Announce » D Language Foundation April 2024 Quarterly Meeting Summary | |||
|---|---|---|---|
| |||
...base where they were essentially using a mixin to fix up the structure to basically... | |||
July 08 Learn » Wrapper around a recursive data type | |||
|---|---|---|---|
| |||
...A)
{
static foreach (member; __traits(allMembers, A))
mixin("Meta!(typeof(A.%1$s)) %1$s... | |||
July 06 Learn » Re: Why does this mixin fail to compile? | |||
|---|---|---|---|
| |||
That's annoying that it couldn't have been more straight forward.. but that'll... | |||
July 04 DIP Ideas » Re: Dollar identifiers in code-generating constructs | |||
|---|---|---|---|
| |||
Maybe this isn’t worth it, as mixin Identifiers would supersede this. | |||
July 04 DIP Ideas » Re: Dollar identifiers in code-generating constructs | |||
|---|---|---|---|
| |||
One can always use the index: `mixin("size_t l", cast(int)i, " = ...")`. This is... | |||
July 03 Learn » Re: Why does this mixin fail to compile? | |||
|---|---|---|---|
| |||
It's important to remember that what happens at CTFE is not the same as... | |||
July 03 Learn » Re: Why does this mixin fail to compile? | |||
|---|---|---|---|
| |||
On Wednesday, 3 July 2024 at 03:52:41 UTC, Steven Schveighoffer wrote: What about... | |||
July 03 DIP Ideas » Dollar identifiers in code-generating constructs | |||
|---|---|---|---|
| |||
...mixin template
```d
mixin template mixMeIn(T)
{
alias R = int delegate(T);
}
struct S
{
mixin... | |||
July 03 General » Re: Wouldn't this be better with bitfields? | |||
|---|---|---|---|
| |||
...the `extern(D)` ones could be a lowering to some mixin template in `core.bitfield`. | |||
Copyright © 1999-2021 by the D Language Foundation