While hunting down specifics on this recent Forum question about DateTime variables, I encountered two instances of preemption between same-named Hub Variables and RM Local vars (both named _TestDateTime). For reference:
I'm reminded of a recent change to how Locals and Hubs are listed in RM (which is very helpful, btw), but didn't recall any overt mention about how Locals will "supercede" in this manner.
Is this anomalous or expected? Find another naming schema? Or just one of those pesky "Stop doing that!" moments, LOL?
I would expect that the scope of a local variable would override the scope of a Hub (née global) variable. Any other behavior could produce unexpected results. I believe that’s the way most languages handle this.
Fully concur ... normally. However, now that Locals are segregated from Hubs in these contexts, it seems there is possibly room for the two to safely co-exist.