BTW, in the first post of this thread it reads:
Rinzwind wrote:
Code: Select all
; [...]
Procedure proc()
Protected test
;test used
;.
;.
;.
;a lot of other code
;
; again needed (possibly in other if branche)
Protected test
EndProcedure
[...] (sometimes need a variable in more than one area, so helpful if it allows multiple declares).
Declaring a variable and using it are two different things. There is no need to declare a variable each time it is used.
As already has been written here, just declare all
Protected variables at the beginning of a procedure, and you are done. This way, code which is evaluated at compile time is separated from code which is evaluated at runtime. That's what I consider clean coding.
The main effect of that proposed strange programming style is to confuse newcomers, as we've seen here already.
So
-1 from me for the original feature request.