September 09 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...challenge? idk why you calling it a macro, im pretty sure d isnt going to... | |||
September 09 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
This works for `show!"1+2"`, but it won't work for `show!"x"`, because... | |||
September 09 Learn » Re: Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...write a macro in D that executes code in the scope where the macro is... | |||
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 08 Learn » Is it possible to use templates to implement something like the `@show` macro from the Julia programming langauge in D? | |||
|---|---|---|---|
| |||
...diagnostics. There's nothing about the `show` macro (or similar passive-information constructs) conceptually that... | |||
August 28 Issues » [Issue 24727] importc: macro conflicts with struct of same name | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=24727 ryuukk_ <ryuukk.dev@gmail.com> changed... | |||
August 28 Issues » [Issue 24727] New: importc: macro conflicts with struct of same name | |||
|---|---|---|---|
| |||
...id=24727
Issue ID: 24727
Summary: importc: macro conflicts with struct of same name
Product... | |||
August 27 Issues » [Issue 24725] New: core.sys.linux: feature detect glibc functions at build time | |||
|---|---|---|---|
| |||
...the same thing as the glibc provided macro, which is checking that the glibc version... | |||
July 14 General » Re: D3 printing api should get some attention | |||
|---|---|---|---|
| |||
...module that's always implicitly imported) https://doc.rust-lang.org/std/macro.dbg.html | |||
July 03 Announce » D Language Foundation March 2024 Monthly Meeting Summary | |||
|---|---|---|---|
| |||
...you could choose to go the template/macro direction or the traits/type classes/signatures... | |||
Copyright © 1999-2021 by the D Language Foundation