List iteration with special end conditionj

Can you help improve your favourite game? Hardcore C mages, talented artists, and players with any level of experience are welcome!
Post Reply
Lachu
Elite
Posts: 473
Joined: Sat May 04, 2013 2:19 pm

List iteration with special end conditionj

Post by Lachu »

I think we should expand iteration macros to support extra end condition.

See: https://gna.org/patch/?6104#comment53
cazfi
Elite
Posts: 3335
Joined: Tue Jan 29, 2013 6:54 pm

Re: List iteration with special end conditionj

Post by cazfi »

It would be nice, though rarely needed (I just realized that your patch should not do that either)
Lachu
Elite
Posts: 473
Joined: Sat May 04, 2013 2:19 pm

Re: List iteration with special end conditionj

Post 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?
Lachu
Elite
Posts: 473
Joined: Sat May 04, 2013 2:19 pm

Re: List iteration with special end conditionj

Post by Lachu »

That's would be simple and painful job.
cazfi
Elite
Posts: 3335
Joined: Tue Jan 29, 2013 6:54 pm

Re: List iteration with special end conditionj

Post by cazfi »

Not entirely trivial, though, to get nested iterations to work without causing variable shadowing.
Post Reply