Need More 'reg' variables !
-
Im pushing close to the 32 reg max per script on my interface script. I have some other functions I still need to write that need a few reg flags. I know we can have 32 reg variables per script and that if we use a namespace we can have 32 reg within that namespace. Can I create a namespace block and leave it in my interface script just to get more reg?
I thought about creating a namespace and moving to external file, but will those reg variables be available globally? Will it be available globally in a namespace like I described above? Just curious if anybody has any advice.
Thanks! Hope everyone is having a great day! Bless!

-
@Chazrox said in Need More 'reg' variables !:
Can I create a namespace block and leave it in my interface script just to get more reg?
I think you should reorganise your code into namespaces anyway, it sounds like you're dumping everything in
onInitcurrently?Can you change any of your
regtoconst? -
@d-healey I do everything on onInit, then I split them into namespaces, but up until now, I always try to leave just the core, factory settings, any initializations and all global variables and stuff like setting combobox lists and stuff like that on interface. I think im somewhat organized to my best knowledge.
I usually end up moving as much as possible to external namespaces as I move along.

@d-healey said in Need More 'reg' variables !:
Can you change any of your reg to const?
can you give me a quick tip on which reg's be change to const?

-
@Chazrox said in Need More 'reg' variables !:
can you give me a quick tip on which reg's be change to const?
All component and module references, arrays, and objects.