On Sunday, 8 September 2024 at 23:01:22 UTC, monkyyy wrote:
On Sunday, 8 September 2024 at 22:01:10 UTC, WraithGlade wrote:
I want to just be able to write this:

```
show!(1 + 2)
```

```d
void show(string s)(){
  auto res=mixin(s);
  writeln(s,"==",res);
}

show!"1+2";
```

This works for `show!"1+2"`, but it won't work for `show!"x"`, because `x` is not visible inside the body of the `show` function.

Reply via email to