可變範圍意外結果在下面的腳本中,為什麼Show(:: x)返回此處:x而不是global:x?我認為這是一個錯誤,但也許我錯過了什麼?
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:可變範圍意外結果這當然是一種不滿足。 我建議你把這個傳遞給JMP支持。