場合s 18!:

See also Section II.I and "場合s" lab under menu item Studio|Labs... |場合s.

18!:0 y Name Class. Give name class of 場合 named y, with 0 for named, 1 for numbered, _1 for non-existent, and _2 for illegal name. Thus:

   18!:0 ;:'base j z 45bad asdf 0'
0 0 0 _2 _1 1
[x] 18!:1 y Name List. Give names of named (0) or numbered (1) 場合s. optional左引數specifies initial letters of names. Thus:

   18!:1 [0         All named 場合s
+----+-+----+--------+-------+-+
|base|j|jcfg|jnewuser|newuser|z|
+----+-+----+--------+-------+-+

   asdf_bb_=: 'sesquipedalian'

   'jb' 18!:1 [0    All named 場合s beginning in j or b
+----+--+-+----+--------+
|base|bb|j|jcfg|jnewuser|
+----+--+-+----+--------+

   18!:3 ''         Create a numbered 場合
+-+
|0|
+-+

   18!:1 i.2        All named與numbered 場合s
+-+----+-+----+--------+-------+-+
|0|base|j|jcfg|jnewuser|newuser|z|
+-+----+-+----+--------+-------+-+
[x] 18!:2 y Path. 單邊 gives (search) path for 場合 y;雙邊sets path for 場合 y to x. path of a 場合 is initially ,<,'z', except that path of 場合 z is empty initially. If a name sought in 場合 f is not found in f, n it is sought 在場合s 在path of f (but not searching ir paths). 例如:
   (;:'a cd b') 18!:2 <'f'
   18!:2 <'f'
+-+--+-+
|a|cd|b|
+-+--+-+
path of 場合 f is set to a, cd, and b.
 
18!:3 y Create. Create a 前個ly-unused numbered 場合 and return its name.
   18!:3 ''        Create a numbered 場合
+-+
|0|
+-+
   18!:3 ''1       Create anor one
+-+
|1|
+-+
   18!:1 [1        Names of numbered 場合s
+-+-+
|0|1|
+-+-+
18!:4 y Switch當前. Switch 當前場合 to y. Initially 當前場合 is base.
 
18!:5 y 當前. name of 當前場合. 例如:
   18!:5 ''
+----+
|base|
+----+
18!:55 y Erase. Erase 場合 y (once it finishes 執行). A numbered 場合, once erased, may not be reused; a named 場合 may be reused at will.


下個前個字彙索引主選單