K
Ken Adams
Ok, this might be a bit of a strange question but. Is there anyway that a
function can get a string representation of the variable name that was
passed into the functions parameters. So say you have some code like
int tester =0;
foo(tester);
foo(int value)
{
in here, is there any way to get the string value "tester" from the
value reference?
}
Thanks
Perhaps using objects a guy could use reflection I suppose to do this. Any
comments on that as well.
function can get a string representation of the variable name that was
passed into the functions parameters. So say you have some code like
int tester =0;
foo(tester);
foo(int value)
{
in here, is there any way to get the string value "tester" from the
value reference?
}
Thanks
Perhaps using objects a guy could use reflection I suppose to do this. Any
comments on that as well.