Search

September 22
DIP Development »
...would represent a massive improvement to string mixin code generation, and general language cohesion. Much...
September 11
Learn »
...it is good half solution like my mixin echo code was not used as a...
September 11
Learn »
...blob/master/echo.d#L205-L209

```d
mixin(echo("echo test: i=$i j=$j...
September 10
DIP Development »
...you can use `static if`, `static foreach`, `mixin`, and so on. With enum-style syntax...
September 09
Learn »
...there could be any other solution than mixin(); this is utterly ingenious!

There is a...
September 09
Learn »
...stdio;

    mixin(show!"1 + 2"); // 1 + 2 == 3

    const int x = 1 + 2;
    mixin(show...
September 08
Learn »
```d
void show(string s)(){
  auto res=mixin(s);
  writeln(s,"==",res);
}

show!"1+2";
```
September 04
Issues »
https://issues.dlang.org/show_bug.cgi?id=24501

RazvanN <razvan.nitu1305@gmail.com> changed...
August 31
General »
...then I could model it with a mixin that expands to my local ref declaration...
August 28
General »
...be mixed-in directly:

```
ref Outer outer() => *cast(Outer*)(cast(void*)&this - mixin(name).offsetof);
```
1 2 3 4 5
Next ›   Last »