I'd like to convert a call to a string for debug printing purposes for example:

```
import std.stdio : writeln;
void someFunction(int x, string y){}
string myCall = debugPrint(someFunction(1, "hello"));
writeln(myCall);
```
writes:
someFunction(1, "hello")


Does this functionality exists? If not how can I construct it? Please note that the call `someFunction(1, "hello")` should also be executed.

Thank you

Reply via email to