Risultato imprevisto dello scope variabileNello script seguente, perché Show (:: x) torna qui: x invece di global: x? Presumo che questo sia un bug ma forse mi manca qualcosa?
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;Ri: risultato inaspettato dello scope variabileÈ certamente un'incongruenza. Ti suggerisco di passare questo a supporto JMP.