Convert call to a string
data pulverizer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Feb 15 14:07:22 PST 2017
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
More information about the Digitalmars-d-learn
mailing list