Page 1 of 1

Declaring all variables as Protected in a Procedure.

Posted: Tue May 09, 2006 6:36 am
by breeze4me
If there is a compiler directive declaring all variables as Protected in a Procedure, it would be easy to declare many variables as protected.

like this.

Code: Select all

Global x = 10
Global z

Procedure test()
  CompilerEnableDefine #PB_Compiler_Protected

    x=100   ; it's protected

  CompilerDisableDefine

    z=100   ; it's global

EndProcedure
and something like "CompilerEnableDefine #PB_Compiler_Global"

any possibility, Fred? :D

Posted: Tue May 09, 2006 1:38 pm
by Thalius
Use Macros ? :lol:

Posted: Tue May 09, 2006 2:39 pm
by josku_x
If Fred would add all that unneeded stuff, PB would be already just bloatware.

Posted: Tue May 09, 2006 4:12 pm
by Fred
josku_x wrote:If Fred would add all that unneeded stuff, PB would be already just bloatware.
It's the feature request and wishlist forum, so please respect everyone wishs.