Variable scope unexpected resultIn the script below, why does Show(::x) return here:x instead of global:x? I assume this is a bug but maybe I am missing something?
Names default to here( 1 );
fn = function( {}, ::x = 12 );
here:x = 1;
::x = 10;
fn(); //Set global variable to 12
Show(here:x);
//here:x = 1;
Show(::x);
//x = 1;
Show(1 + ::x);
//x = 13;
Show(global:x);
//global:x = 12;
Namespace("here") << Remove("x");
Show(::x);
//x = 12;Re: Variable scope unexpected resultIt is certainly an inconsistancy. I suggest you pass this one to JMP Support.