Page 1 of 1

List iteration with special end conditionj

Posted: Sat Oct 17, 2015 2:24 pm
by Lachu
I think we should expand iteration macros to support extra end condition.

See: https://gna.org/patch/?6104#comment53

Re: List iteration with special end conditionj

Posted: Sat Oct 17, 2015 6:50 pm
by cazfi
It would be nice, though rarely needed (I just realized that your patch should not do that either)

Re: List iteration with special end conditionj

Posted: Sun Oct 18, 2015 6:26 am
by Lachu
Yes - my patch doesn't realize this, but I link to comment describing problem.

If I found spare of time, I would prepare a patch. Should I create new macros(with different names) or change existing one?

Re: List iteration with special end conditionj

Posted: Sun Oct 18, 2015 6:27 am
by Lachu
That's would be simple and painful job.

Re: List iteration with special end conditionj

Posted: Sun Oct 18, 2015 4:35 pm
by cazfi
Not entirely trivial, though, to get nested iterations to work without causing variable shadowing.