I still wanted to test if that would even work. I confirm it does.

Good to know.

>From my perspective:

Con:

  * unneeded handling/cost as compared to declaring outside of loop.
  * the var can only be used for one pass after which it is reset.



Pro:

  * advantage for refactoring and ease of transplantation of code to a new 
function.



By the way the following:
    
    
    var j: string
    var j: string
    
    j= "hallo"
    echo j
    
    
    Run

fails to compile with:

Error: redefinition of 'j'; previous declaration here: blabla

Reply via email to