Hi Hamid thank you so much for this example, i am proud to be your subscriber....
@hdhosseini4 жыл бұрын
Glad to hear that
@dariosouza89564 жыл бұрын
Muito bom, parabéns!¡
@hdhosseini4 жыл бұрын
Thanks for nice message , Stay connected for new topics
@konradb20104 жыл бұрын
3:58 you don't have to initialize loop counters
@hdhosseini4 жыл бұрын
Thanks , I must when it is from local memory.
@konradb20104 жыл бұрын
@@hdhosseini you don't have to do it, as in the FOR syntax itself you have FOR #var := 1 to 10 DO... At the start of the FOR function you assign the values to your run tag '#var' (by using ' := ' ) Try doing loop with writing some random value to '#var' just before the FOR function and you'll see that it still performs without any issues. What you are referring to is, in the non-optimized blocks the common L Stack memory is used and then you have to initialize the temp variables. In optimized blocks it is not required, but perhaps some developers still do it for a peace of mind. Thanks.
@hdhosseini4 жыл бұрын
It is a rule for local memories , my intention is to highlight this point and I always follow it. I will initialize local memories in any application in future. If you think they are unnecessary , delete them when you want to use such a pattern.