@@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.
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.
Excellent job. Congratulations from Brazil.
Thank you very much!
Hi Hamid thank you so much for this example, i am proud to be your subscriber....
Glad to hear that
Muito bom, parabéns!¡
Thanks for nice message , Stay connected for new topics
Thanks sir
Welcome , stay connected
3:58 you don't have to initialize loop counters
Thanks , I must when it is from local memory.
@@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.
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.