|
From: Juergen W. <wie...@fr...> - 2008-10-21 10:07:10
|
Hi, I would like to expand the iteration feature to the evaluate command as I think this would be very useful. I have attached a first naive but generally working patch. The problem is that the iteration is not compatible to recursion. Can it be fixed? Is it worth the effort? IMHO a simple recursion detection would suffice. I don't see how to implement this right now in a way that still works after an int_error(), though. My use case: I have some more or less generic scripts with a differing number of values d0, d1, ... As I have to construct the command line I'm stuck to the evaluate command. I cannot even put the iteration into a set command within the evaluated string. BTW: AFAICS an int_error() leads to leakage right now as check_for_iteration() simply discards (iteration_udv = NULL; ...) instead of doing the correct deallocation. Juergen |