From: Sven E. <sve...@we...> - 2008-02-11 17:44:23
|
Jocelyn wrote: > I first did that, adding a field {GEANT_TARGET}.locals: GEANT_VARIABLES > but this doesn't work, since GEANT_TARGET holds static data, when we > need execution data. > > I mean, if you call recursively the same target, then you'll have the > locals messed up, since you share the same list of locals for the 2 > executions of the same target. > Do you see what I mean ? Right. Now I remember that I had the same issue when I implemented argument support. Somehow I had the feeling that a new target object is created when <geant> calls a target which is not the case and this causes the problem. > In fact, what would be nicer is to have a GEANT_TARGET_STACK .. which > would hold the arguments, and locals stacks. I agree. - Sven |