 *** Welcome to SAD Ver.1.4.4.2k64 built at 2026-10-19 14:46:59 +0900 ***
 *** Today: 01:35:52 Wednesday 11/18/2026 ***
 OFF LOG;ON ECHO;READ 77 ;           1
FFS;
 *** SADScript Initialization: <SAD>/Packages/init.n ***
 *** Run time Environment:     <SAD>/Packages/init.local.n ***
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   F     F     F     T     F     F     T     F     F     T     F     T
 (* v2next B2 項目 4: $Context・$ContextPath への代入、WithContext、入れ子の文脈 (A`B`)。k64 モードは gs と同じ表示 (文脈の記号は ` が $ContextPath に無いと `A` と表示)。
    gs の規則: 名前は「現在の文脈 → $ContextPath」の順に探し、無ければ現在の文脈に作る。x・l・a など init.n が大域に作った名前は大域の記号に当たる。
    Begin["A`"] のように文字列を渡すと gs は拒否する (Begin[A`] と書く。v2 は文字列も受ける) *)
 Begin[A`]; Print["1 ",$Context]; x=1; Print["2 ",Context[x]," ",x];
1 A`
2 ` 1
 Begin[A`B`]; Print["3 ",$Context]; w6=6; Print["4 ",Context[w6]," ",x]; End[]; Print["5 ",$Context]; End[];
3 A`B`
4 A`B` 1
5 A`
 Print["6 ",$Context," ",x," ",A`B`w6];
6 ` 1 6
 Begin[`B`]; Print["7 ",$Context]; End[];
7 B`
 $Context=A`; Print["8 ",$Context]; $Context=`; Print["9 ",$Context];
8 A`
9 `
 $Context="A`B`"; Print["10 ",$Context]; w7=6; Print["11 ",Context[w7]]; $Context=`;
10 A`B`
11 A`B`
 $ContextPath={A`,System`}; Print["12 ",$ContextPath," ",x];
12 {`A`,`System`} 1
 $ContextPath={`,System`};
 WithContext[{Zed`},zz=4; Print["13 ",$Context," ",$ContextPath]];
13 `Zed` {`Zed`,`System`}
 Print["14 ",$Context," ",$ContextPath];
14 ` {`,System`}
 WithContext[{Zed`,A`},Print["15 ",$Context," ",$ContextPath]];
15 `Zed` {`Zed`,`A`,`System`}
 Print["16 ",Symbol["A`x"]," ",Symbol["x"]];
16 A`x 1
 Begin["A`"];
???General::wrongtype:  Argument must be Context (Symbol ending `) in $SetContext["A`"]
 Print["17 ",$Context];
17 `
 BeginPackage["P`"];
 Print["18 ",$Context," ",$ContextPath];
18 `` {`P`,`System`}
 EndPackage[];
 Print["19 ",$Context," ",$ContextPath];
19 ` {`,System`}
 Exit;
Out[1]:= Exit
 FFS                  end:  CPU time =     0.001 sec
 Design orbit length =   1.0000000000000000     
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   T     F     F     T     F     F     T     F     F     T     F     T
 In[2]:=  ???-getbuf-end of input stream
