September 22 DIP Development » Re: Third and Hopefully Last Draft: Primary Type Syntax | |||
|---|---|---|---|
| |||
...would represent a massive improvement to string mixin code generation, and general language cohesion. Much... | |||
September 11 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...it is good half solution like my mixin echo code was not used as a... | |||
September 11 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...blob/master/echo.d#L205-L209
```d
mixin(echo("echo test: i=$i j=$j... | |||
September 10 DIP Development » Re: Sum Types - first draft | |||
|---|---|---|---|
| |||
...you can use `static if`, `static foreach`, `mixin`, and so on. With enum-style syntax... | |||
September 09 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...there could be any other solution than mixin(); this is utterly ingenious! There is a... | |||
September 09 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...stdio;
mixin(show!"1 + 2"); // 1 + 2 == 3
const int x = 1 + 2;
mixin(show... | |||
September 08 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
```d
void show(string s)(){
auto res=mixin(s);
writeln(s,"==",res);
}
show!"1+2";
```
| |||
September 04 Issues » [Issue 24501] [REG2.107] imported mixin opCmp member function not found for a < b | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=24501 RazvanN <razvan.nitu1305@gmail.com> changed... | |||
August 31 General » Re: This needs to be fixed - ref | |||
|---|---|---|---|
| |||
...then I could model it with a mixin that expands to my local ref declaration... | |||
August 28 General » Re: This needs to be fixed | |||
|---|---|---|---|
| |||
...be mixed-in directly: ``` ref Outer outer() => *cast(Outer*)(cast(void*)&this - mixin(name).offsetof); ``` | |||
Copyright © 1999-2021 by the D Language Foundation