📄 refz.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Z</title><link rel="stylesheet" href="doc.css" type="text/css"></head><body><h1>Z</h1><dl><dt><a name="*Zap"><code>*Zap</code></a><dd>A global variable holding a list of lists and a pathname. If given, and thevalue of <code><a href="refS.html#*Solo">*Solo</a></code> is <code>NIL</code>,external symbols which are no longer accessible can be collected in the CAR ofthe list, e.g. during DB tree processing, and written to that file at the next<code><a href="refC.html#commit">commit</a></code>. A (typically periodic) callto <code><a href="refZ.html#zap_">zap_</a></code> will clean them up later.<p><pre><code>: (setq *Zap '(NIL . "db/app/Z"))-> "db/app/Z"</code></pre><dt><a name="zap"><code>(zap 'sym) -> sym</code></a><dd>"Delete" the symbol <code>sym</code>. For internal symbols, that means toremove it from the internal hash table, effectively transforming it to atransient symbol. For external symbols, it means to mark it as "deleted", sothat upon a later <code><a href="refC.html#commit">commit</a></code> it will beremoved from the database file. See also <code><ahref="refI.html#intern">intern</a></code>.<p><pre><code>: (de foo (Lst) (car Lst)) # 'foo' calls 'car'-> foo: (zap 'car) # Delete the symbol 'car'-> "car": (pp 'foo)(de foo (Lst) ("car" Lst) ) # 'car' is now a transient symbol-> foo: (foo (1 2 3)) # 'foo' still works-> 1: (car (1 2 3)) # Reader returns a new 'car' symbol!? (car (1 2 3))car -- Undefined?</code></pre><dt><a name="zapTree"><code>(zapTree 'sym)</code></a><dd>Recursively deletes a tree structure from the database. See also <code><ahref="refT.html#tree">tree</a></code>, <code><ahref="refC.html#chkTree">chkTree</a></code> and <code><ahref="refP.html#prune">prune</a></code>.<p><pre><code>: (zapTree (cdr (root (tree 'nm '+Item))))</code></pre><dt><a name="zap_"><code>(zap_)</code></a><dd>Delayed deletion (with <code><a href="refZ.html#zap">zap</a></code>) ofexternal symbols which were collected e.g. during DB tree processing. Anauxiliary file (with the name taken from the <code><ahref="refF.html#fin">fin</a></code> of the value of <code><ahref="refZ.html#*Zap">*Zap</a></code>, concatenated with a "<code>_</code>"character) is used as an intermediary file.<p><pre><code>: *Zap-> (NIL . "db/app/Z"): (call 'ls "-l" "db/app")...-rw-r--r-- 1 abu abu 1536 2007-06-23 12:34 Z-rw-r--r-- 1 abu abu 1280 2007-05-23 12:15 Z_...: (zap_)...: (call 'ls "-l" "db/app")...-rw-r--r-- 1 abu abu 1536 2007-06-23 12:34 Z_...</code></pre><dt><a name="zero"><code>(zero sym ..) -> 0</code></a><dd>Stores <code>0</code> in the <code>VAL</code>'s of all argument symbols<code>sym</code>. See also <code><a href="refO.html#one">one</a></code>,<code><a href="refO.html#on">on</a></code>, <code><ahref="refO.html#off">off</a></code> and <code><ahref="refO.html#onOff">onOff</a></code>.<p><pre><code>: (zero A B)-> 0: A-> 0: B-> 0</code></pre></dl></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -