14 Mar
2023
14 Mar
'23
9:33 p.m.
Hi, I'm a beginner in Oberon-2 who had recently picked it up (learning it through practice). and really love the simplicity of the language. I need help to understand the need to declare FOR loop stepping's variable. (i.e x in FOR x := .....). I do not intend to change the language, but The question arises since this variable always (in my short exposure to Oberon-2) is scoped within the FOR loop body. And was trying to answer the question: Is it good design to have FOR implicitly declare its variable (It is not a big issue to declare VARiables), or Is it from the point of uniformity to have all variables declared with VAR? forgive any ignorance on my part Thanks for your time. Ala'a Regards,