Retrieving call expression of a function

Quentin Ladeveze via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 28 07:02:30 PST 2015


Hi,

Is it possible to retrieve the calling expression of a function ? 
Something like that

---
import std.stdio;

void funcTest(int x, float y)
{
   writefln(get_call());
}

void main()
{
   float x = 0.2;
   funcTest(1+2, x+2);
}
---

output expected : " funcTest(1+2, x+2) "

Thanks


More information about the Digitalmars-d-learn mailing list