On Saturday, 28 November 2015 at 17:19:40 UTC, tcak wrote:
On Saturday, 28 November 2015 at 15:41:59 UTC, Quentin Ladeveze
wrote:
[...]
mixin template could solve this problem as well I guess. It
would, instead of calling a function, directly inject the code
into where you call it. So, remov
On Saturday, 28 November 2015 at 15:41:59 UTC, Quentin Ladeveze
wrote:
On Saturday, 28 November 2015 at 15:22:51 UTC, tcak wrote:
On Saturday, 28 November 2015 at 15:02:32 UTC, Quentin
Ladeveze wrote:
Hi,
Is it possible to retrieve the calling expression of a
function ? Something like that
On Saturday, 28 November 2015 at 15:22:51 UTC, tcak wrote:
On Saturday, 28 November 2015 at 15:02:32 UTC, Quentin Ladeveze
wrote:
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_ca
On Saturday, 28 November 2015 at 15:02:32 UTC, Quentin Ladeveze
wrote:
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
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