09-19-2012 02:47 AM
Instead of just quoting some text and say not to following some advice, give some alternative examples of what he can use in your opinion to prevent having to use locals.
09-19-2012 09:38 AM
andre.buurman@carya wrote:
Instead of just quoting some text and say not to following some advice, give some alternative examples of what he can use in your opinion to prevent having to use locals.
It would be much easier to give advice if he posted his code. And what exactly would you propose? We don't have a clear idea of what he is doing, what his code looks like or what exactly he wants to do. Also, rehashing topics that have been discussed countless number of times is not very productive either. I, like most people here, are volunteering our time and don't have the luxury of having tons of time to write in depth examples and tutorials. It is always easier to offer advice if we have something to look at rather than some brief textual descriptions.
There are numerous ways to eliminate using local variables. Easiest is to use good data flow and use the wires and shift registers on loops when necessary. Passing data between parallel tasks can be accomplished using notifiers, queues or user events. To learn more about these topics he can look through the shipping examples. He could also go through the online tutorials.
09-19-2012 09:44 AM
The last paragraph points him in particular directions he can explore (exactly what I mean). I share your thought that he could better post some code to get more to the point feedback.