Charles Greathouse on Wed, 17 Feb 2010 05:26:12 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Getting the variable number of a lexical local variable

I'm trying to get the variable number of a lexical variable, but I
can't seem to figure out how to do that.

If I have a function with a V in the prototype, like a custom for
loop, how do I know which variable was used?

In my case, I would like to be able to distinguish between calls to
sumformal(x=1, N, x^2 * y)
sumformal(y=1, N, x^2 * y)

Charles Greathouse
Case Western Reserve University