home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From jkf Tue Apr 13 00:12:22 1982"
| default
| |
99%
| file
| JavaScript source, ASCII text, with escape sequences
| default (weak)
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| x-fmt/111 Plain Text File
| default
| |
100%
| detectItEasy
| Format: Plain text[LF]
| default
| |
100%
| xdgMime
| application/mbox
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 6a 6b 66 | 20 54 75 65 20 41 70 72 |From jkf| Tue Apr|
|00000010| 20 31 33 20 30 30 3a 31 | 32 3a 32 32 20 31 39 38 | 13 00:1|2:22 198|
|00000020| 32 0a 54 6f 3a 20 2f 6e | 61 2f 64 6f 65 2f 6a 6b |2.To: /n|a/doe/jk|
|00000030| 66 2f 6c 69 73 70 6e 65 | 77 73 0a 53 75 62 6a 65 |f/lispne|ws.Subje|
|00000040| 63 74 3a 20 6e 65 77 20 | 66 65 61 74 75 72 65 73 |ct: new |features|
|00000050| 0a 53 74 61 74 75 73 3a | 20 52 4f 0a 0a 20 49 6e |.Status:| RO.. In|
|00000060| 20 72 65 73 70 6f 6e 73 | 65 20 74 6f 20 72 65 71 | respons|e to req|
|00000070| 75 65 73 74 73 20 66 72 | 6f 6d 20 66 72 61 6e 7a |uests fr|om franz|
|00000080| 20 75 73 65 72 73 2c 20 | 74 68 65 73 65 20 65 6e | users, |these en|
|00000090| 68 61 6e 63 65 6d 65 6e | 74 73 20 68 61 76 65 20 |hancemen|ts have |
|000000a0| 62 65 65 6e 0a 6d 61 64 | 65 3a 0a 0a 49 6e 20 4c |been.mad|e:..In L|
|000000b0| 69 73 70 20 33 38 2e 30 | 37 2c 20 20 69 66 20 74 |isp 38.0|7, if t|
|000000c0| 68 65 20 6c 69 73 70 20 | 76 61 72 69 61 62 6c 65 |he lisp |variable|
|000000d0| 20 27 64 69 73 70 6c 61 | 63 65 2d 6d 61 63 72 6f | 'displa|ce-macro|
|000000e0| 73 27 20 69 73 20 73 65 | 74 20 74 6f 20 6e 6f 6e |s' is se|t to non|
|000000f0| 2d 6e 69 6c 2c 0a 74 68 | 65 6e 20 77 68 65 6e 20 |-nil,.th|en when |
|00000100| 61 20 6d 61 63 72 6f 20 | 65 78 70 61 6e 73 69 6f |a macro |expansio|
|00000110| 6e 20 69 73 20 64 6f 6e | 65 20 62 79 20 74 68 65 |n is don|e by the|
|00000120| 20 65 76 61 6c 75 61 74 | 6f 72 2c 20 74 68 65 20 | evaluat|or, the |
|00000130| 72 65 73 75 6c 74 69 6e | 67 0a 65 78 70 61 6e 73 |resultin|g.expans|
|00000140| 69 6f 6e 20 72 65 70 6c | 61 63 65 73 20 74 68 65 |ion repl|aces the|
|00000150| 20 6f 72 69 67 69 6e 61 | 6c 20 63 61 6c 6c 2e 20 | origina|l call. |
|00000160| 20 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 | This me|ans that|
|00000170| 20 6d 61 63 72 6f 20 65 | 78 70 61 6e 73 69 6f 6e | macro e|xpansion|
|00000180| 0a 69 73 20 6f 6e 6c 79 | 20 64 6f 6e 65 20 6f 6e |.is only| done on|
|00000190| 63 65 2e 20 20 0a 0a 49 | 6e 20 4c 69 73 7a 74 20 |ce. ..I|n Liszt |
|000001a0| 38 2e 30 33 2c 20 74 68 | 65 20 27 66 75 6e 63 74 |8.03, th|e 'funct|
|000001b0| 69 6f 6e 27 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |ion' fun|ction is|
|000001c0| 20 6f 70 65 6e 20 63 6f | 64 65 64 2e 20 20 49 66 | open co|ded. If|
|000001d0| 20 79 6f 75 20 68 61 76 | 65 0a 09 28 66 75 6e 63 | you hav|e..(func|
|000001e0| 74 69 6f 6e 20 28 6c 61 | 6d 62 64 61 20 2e 2e 2e |tion (la|mbda ...|
|000001f0| 2e 29 29 0a 69 6e 20 79 | 6f 75 72 20 63 6f 64 65 |.)).in y|our code|
|00000200| 20 74 68 65 6e 20 74 68 | 65 20 6c 61 6d 62 64 61 | then th|e lambda|
|00000210| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 69 73 20 63 | express|ion is c|
|00000220| 6f 6d 70 69 6c 65 64 20 | 61 73 20 61 20 73 65 70 |ompiled |as a sep|
|00000230| 61 72 61 74 65 20 66 75 | 6e 63 74 69 6f 6e 0a 61 |arate fu|nction.a|
|00000240| 6e 64 20 74 68 65 20 72 | 65 73 75 6c 74 20 6f 66 |nd the r|esult of|
|00000250| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 63 61 | the fun|ction ca|
|00000260| 6c 6c 20 69 73 20 61 20 | 27 62 63 64 27 20 6f 62 |ll is a |'bcd' ob|
|00000270| 6a 65 63 74 20 77 68 69 | 63 68 20 70 6f 69 6e 74 |ject whi|ch point|
|00000280| 73 0a 74 6f 20 74 68 61 | 74 20 63 6f 6d 70 69 6c |s.to tha|t compil|
|00000290| 65 64 20 6c 61 6d 62 64 | 61 2e 0a 0a 0a 0a 46 72 |ed lambd|a.....Fr|
|000002a0| 6f 6d 20 6a 6b 66 20 53 | 75 6e 20 41 70 72 20 31 |om jkf S|un Apr 1|
|000002b0| 38 20 31 33 3a 31 36 3a | 34 36 20 31 39 38 32 0a |8 13:16:|46 1982.|
|000002c0| 54 6f 3a 20 6c 6f 63 61 | 6c 2d 6c 69 73 70 0a 53 |To: loca|l-lisp.S|
|000002d0| 75 62 6a 65 63 74 3a 20 | 6f 70 75 73 20 33 38 2e |ubject: |opus 38.|
|000002e0| 30 39 0a 53 74 61 74 75 | 73 3a 20 52 4f 0a 0a 20 |09.Statu|s: RO.. |
|000002f0| 54 68 65 20 6e 65 77 20 | 66 65 61 74 75 72 65 73 |The new |features|
|00000300| 20 6f 66 20 74 68 69 73 | 20 76 65 72 73 69 6f 6e | of this| version|
|00000310| 20 61 72 65 3a 0a 09 49 | 66 20 74 68 65 20 6c 6f | are:..I|f the lo|
|00000320| 61 64 20 66 75 6e 63 74 | 69 6f 6e 20 65 6e 64 73 |ad funct|ion ends|
|00000330| 20 75 70 20 66 61 73 6c | 27 69 6e 67 20 69 6e 20 | up fasl|'ing in |
|00000340| 61 20 66 69 6c 65 2c 20 | 74 68 65 6e 20 6c 6f 61 |a file, |then loa|
|00000350| 64 20 77 69 6c 6c 0a 20 | 20 64 6f 20 77 68 61 74 |d will. | do what|
|00000360| 20 69 73 20 6e 65 63 65 | 73 73 61 72 79 20 74 6f | is nece|ssary to|
|00000370| 20 69 6e 73 75 72 65 20 | 74 68 61 74 20 74 68 65 | insure |that the|
|00000380| 20 6e 65 77 20 66 75 6e | 63 74 69 6f 6e 73 20 61 | new fun|ctions a|
|00000390| 72 65 20 6c 69 6e 6b 65 | 64 20 69 6e 0a 20 20 63 |re linke|d in. c|
|000003a0| 6f 72 72 65 63 74 6c 79 | 2e 20 50 72 65 76 69 6f |orrectly|. Previo|
|000003b0| 75 73 6c 79 2c 20 69 66 | 20 79 6f 75 20 74 75 72 |usly, if| you tur|
|000003c0| 6e 65 64 20 6f 6e 20 74 | 68 65 20 74 72 61 6e 73 |ned on t|he trans|
|000003d0| 66 65 72 20 74 61 62 6c | 65 73 20 77 69 74 68 0a |fer tabl|es with.|
|000003e0| 20 20 28 73 73 74 61 74 | 75 73 20 74 72 61 6e 73 | (sstat|us trans|
|000003f0| 6c 69 6e 6b 20 6f 6e 29 | 20 6f 72 20 28 73 73 74 |link on)| or (sst|
|00000400| 61 74 75 73 20 74 72 61 | 6e 73 6c 69 6e 6b 20 74 |atus tra|nslink t|
|00000410| 29 20 61 6e 64 20 74 68 | 65 6e 20 66 61 73 6c 27 |) and th|en fasl'|
|00000420| 65 64 20 69 6e 0a 20 20 | 66 75 6e 63 74 69 6f 6e |ed in. |function|
|00000430| 73 20 77 68 69 63 68 20 | 61 6c 72 65 61 64 79 20 |s which |already |
|00000440| 65 78 69 73 74 65 64 2c | 20 74 68 65 20 6f 6c 64 |existed,| the old|
|00000450| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 74 68 65 | version|s of the|
|00000460| 20 66 75 6e 63 74 69 6f | 6e 73 0a 20 20 77 6f 75 | functio|ns. wou|
|00000470| 6c 64 20 73 74 69 6c 6c | 20 62 65 20 75 73 65 64 |ld still| be used|
|00000480| 2c 20 75 6e 6c 65 73 73 | 20 79 6f 75 20 64 69 64 |, unless| you did|
|00000490| 20 28 73 73 74 61 74 75 | 73 20 74 72 61 6e 73 6c | (sstatu|s transl|
|000004a0| 69 6e 6b 20 6f 6e 29 20 | 79 6f 75 72 73 65 6c 66 |ink on) |yourself|
|000004b0| 2e 0a 20 20 4e 6f 77 20 | 74 68 69 73 20 69 73 20 |.. Now |this is |
|000004c0| 64 6f 6e 65 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |done aut|omatical|
|000004d0| 6c 79 2e 0a 0a 20 20 20 | 20 20 20 74 79 69 20 6e |ly... | tyi n|
|000004e0| 6f 77 20 61 63 63 65 70 | 74 73 20 61 20 73 65 63 |ow accep|ts a sec|
|000004f0| 6f 6e 64 20 61 72 67 75 | 6d 65 6e 74 20 77 68 69 |ond argu|ment whi|
|00000500| 63 68 20 69 73 20 74 68 | 65 20 6f 62 6a 65 63 74 |ch is th|e object|
|00000510| 20 74 6f 20 72 65 74 75 | 72 6e 0a 20 20 75 70 6f | to retu|rn. upo|
|00000520| 6e 20 65 6f 66 2e 20 20 | 2d 31 20 69 73 20 74 68 |n eof. |-1 is th|
|00000530| 65 20 64 65 66 61 75 6c | 74 2e 0a 0a 20 20 20 20 |e defaul|t... |
|00000540| 20 28 70 70 2d 66 6f 72 | 6d 20 27 67 5f 6f 62 6a | (pp-for|m 'g_obj|
|00000550| 20 5b 27 70 5f 70 6f 72 | 74 5d 29 20 73 68 6f 75 | ['p_por|t]) shou|
|00000560| 6c 64 20 62 65 20 75 73 | 65 64 20 69 6e 73 74 65 |ld be us|ed inste|
|00000570| 61 64 20 6f 66 20 24 70 | 72 70 72 0a 20 66 6f 72 |ad of $p|rpr. for|
|00000580| 20 70 72 65 74 74 79 20 | 70 72 69 6e 74 69 6e 67 | pretty |printing|
|00000590| 20 61 20 66 6f 72 6d 2e | 0a 0a 20 20 20 20 20 54 | a form.|.. T|
|000005a0| 68 65 20 73 74 6f 72 61 | 67 65 20 61 6c 6c 6f 63 |he stora|ge alloc|
|000005b0| 61 74 6f 72 20 61 6e 64 | 20 63 6f 6c 6c 65 63 74 |ator and| collect|
|000005c0| 6f 72 20 68 61 73 20 62 | 65 65 6e 20 6d 6f 64 69 |or has b|een modi|
|000005d0| 66 69 65 64 20 74 6f 20 | 61 64 64 0a 20 74 77 6f |fied to |add. two|
|000005e0| 20 6e 65 77 20 64 61 74 | 61 20 74 79 70 65 73 3a | new dat|a types:|
|000005f0| 20 76 65 63 74 6f 72 20 | 61 6e 64 20 76 65 63 74 | vector |and vect|
|00000600| 6f 72 20 69 6d 6d 65 64 | 69 61 74 65 2e 20 20 54 |or immed|iate. T|
|00000610| 68 65 79 20 61 72 65 20 | 6e 6f 74 20 69 6e 0a 20 |hey are |not in. |
|00000620| 74 68 65 69 72 20 66 69 | 6e 61 6c 20 66 6f 72 6d |their fi|nal form|
|00000630| 20 73 6f 20 49 20 73 75 | 67 67 65 73 74 20 74 68 | so I su|ggest th|
|00000640| 61 74 20 79 6f 75 20 6e | 6f 74 20 74 72 79 20 74 |at you n|ot try t|
|00000650| 6f 20 75 73 65 20 74 68 | 65 6d 2e 20 0a 20 48 6f |o use th|em. . Ho|
|00000660| 77 65 76 65 72 2c 20 62 | 65 20 6f 6e 20 74 68 65 |wever, b|e on the|
|00000670| 20 6c 6f 6f 6b 6f 75 74 | 20 66 6f 72 20 67 61 72 | lookout| for gar|
|00000680| 62 61 67 65 20 63 6f 6c | 6c 65 63 74 69 6f 6e 20 |bage col|lection |
|00000690| 62 75 67 73 2e 0a 0a 0a | 0a 46 72 6f 6d 20 6a 6b |bugs....|.From jk|
|000006a0| 66 20 57 65 64 20 41 70 | 72 20 32 31 20 30 37 3a |f Wed Ap|r 21 07:|
|000006b0| 34 35 3a 35 34 20 31 39 | 38 32 0a 54 6f 3a 20 6c |45:54 19|82.To: l|
|000006c0| 6f 63 61 6c 2d 6c 69 73 | 70 0a 53 75 62 6a 65 63 |ocal-lis|p.Subjec|
|000006d0| 74 3a 20 6c 69 73 7a 74 | 20 38 2e 30 34 0a 53 74 |t: liszt| 8.04.St|
|000006e0| 61 74 75 73 3a 20 52 4f | 0a 0a 20 20 74 68 65 20 |atus: RO|.. the |
|000006f0| 6e 65 77 20 66 65 61 74 | 75 72 65 73 20 6f 66 20 |new feat|ures of |
|00000700| 6c 69 73 7a 74 20 38 2e | 30 34 20 61 72 65 3a 0a |liszt 8.|04 are:.|
|00000710| 0a 31 29 20 69 6e 69 74 | 20 66 69 6c 65 73 3a 0a |.1) init| files:.|
|00000720| 20 20 20 20 42 65 66 6f | 72 65 20 6c 69 73 7a 74 | Befo|re liszt|
|00000730| 20 62 65 67 69 6e 73 20 | 63 6f 6d 70 69 6c 69 6e | begins |compilin|
|00000740| 67 2c 20 69 74 20 6c 6f | 6f 6b 73 20 66 6f 72 20 |g, it lo|oks for |
|00000750| 61 6e 20 69 6e 69 74 20 | 66 69 6c 65 20 74 6f 20 |an init |file to |
|00000760| 6c 6f 61 64 20 69 6e 2e | 0a 20 20 20 20 49 74 20 |load in.|. It |
|00000770| 66 69 72 73 74 20 73 65 | 61 72 63 68 65 73 20 69 |first se|arches i|
|00000780| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 69 |n the cu|rrent di|
|00000790| 72 65 63 74 6f 72 79 2c | 20 61 6e 64 20 74 68 65 |rectory,| and the|
|000007a0| 6e 20 69 74 20 73 65 61 | 72 63 68 65 73 0a 20 20 |n it sea|rches. |
|000007b0| 20 20 79 6f 75 72 20 68 | 6f 6d 65 20 64 69 72 65 | your h|ome dire|
|000007c0| 63 74 6f 72 79 20 28 67 | 65 74 65 6e 76 20 27 48 |ctory (g|etenv 'H|
|000007d0| 4f 4d 45 29 2e 0a 20 20 | 20 20 49 74 20 6c 6f 6f |OME).. | It loo|
|000007e0| 6b 73 20 66 6f 72 20 66 | 69 6c 65 20 6e 61 6d 65 |ks for f|ile name|
|000007f0| 73 3a 0a 09 2e 6c 69 73 | 7a 74 72 63 2e 6f 20 20 |s:...lis|ztrc.o |
|00000800| 2e 6c 69 73 7a 74 72 63 | 2e 6c 20 20 6c 69 73 7a |.lisztrc|.l lisz|
|00000810| 74 72 63 2e 6f 20 6c 69 | 73 7a 74 72 63 2e 6c 0a |trc.o li|sztrc.l.|
|00000820| 20 20 20 20 49 74 20 6c | 6f 61 64 73 20 6f 6e 6c | It l|oads onl|
|00000830| 79 20 74 68 65 20 66 69 | 72 73 74 20 6f 6e 65 20 |y the fi|rst one |
|00000840| 69 74 20 66 69 6e 64 73 | 2e 0a 0a 32 29 20 69 6e |it finds|...2) in|
|00000850| 74 65 72 72 75 70 74 20 | 68 61 6e 64 6c 69 6e 67 |terrupt |handling|
|00000860| 0a 20 20 20 20 49 66 20 | 79 6f 75 20 69 6e 74 65 |. If |you inte|
|00000870| 72 72 75 70 74 20 6c 69 | 73 7a 74 20 20 28 77 69 |rrupt li|szt (wi|
|00000880| 74 68 20 5e 43 20 74 79 | 70 69 63 61 6c 6c 79 29 |th ^C ty|pically)|
|00000890| 2c 20 69 74 20 77 69 6c | 6c 20 72 65 6d 6f 76 65 |, it wil|l remove|
|000008a0| 20 69 74 73 0a 20 20 20 | 20 74 65 6d 70 6f 72 61 | its. | tempora|
|000008b0| 72 79 20 66 69 6c 65 20 | 61 6e 64 20 65 78 69 74 |ry file |and exit|
|000008c0| 2e 0a 0a 33 29 20 70 72 | 65 61 6c 6c 6f 63 61 74 |...3) pr|eallocat|
|000008d0| 69 6f 6e 20 6f 66 20 73 | 70 61 63 65 0a 20 20 20 |ion of s|pace. |
|000008e0| 20 49 74 20 70 72 65 61 | 6c 6c 6f 63 61 74 65 73 | It prea|llocates|
|000008f0| 20 73 70 61 63 65 20 69 | 6e 20 6f 72 64 65 72 20 | space i|n order |
|00000900| 74 6f 20 72 65 64 75 63 | 65 20 74 68 65 20 6e 75 |to reduc|e the nu|
|00000910| 6d 62 65 72 20 6f 66 20 | 67 63 27 73 20 64 6f 6e |mber of |gc's don|
|00000920| 65 0a 20 20 20 20 64 75 | 72 69 6e 67 20 63 6f 6d |e. du|ring com|
|00000930| 70 69 6c 69 6e 67 2e 0a | 0a 09 0a 09 0a 0a 0a 46 |piling..|.......F|
|00000940| 72 6f 6d 20 6a 6b 66 20 | 57 65 64 20 41 70 72 20 |rom jkf |Wed Apr |
|00000950| 32 31 20 31 33 3a 34 37 | 3a 35 30 20 31 39 38 32 |21 13:47|:50 1982|
|00000960| 0a 54 6f 3a 20 6c 6f 63 | 61 6c 2d 6c 69 73 70 0a |.To: loc|al-lisp.|
|00000970| 53 75 62 6a 65 63 74 3a | 20 6c 69 73 70 20 6f 70 |Subject:| lisp op|
|00000980| 75 73 20 33 38 2e 31 30 | 0a 53 74 61 74 75 73 3a |us 38.10|.Status:|
|00000990| 20 52 4f 0a 0a 20 6c 69 | 73 70 20 77 69 6c 6c 20 | RO.. li|sp will |
|000009a0| 6e 6f 77 20 6c 6f 6f 6b | 20 66 6f 72 20 61 20 6c |now look| for a l|
|000009b0| 69 73 70 72 63 20 69 6e | 20 61 20 77 61 79 20 73 |isprc in| a way s|
|000009c0| 69 6d 69 6c 61 72 20 74 | 6f 20 6c 69 73 7a 74 2e |imilar t|o liszt.|
|000009d0| 0a 0a 20 49 74 20 77 69 | 6c 6c 20 66 69 72 73 74 |.. It wi|ll first|
|000009e0| 20 73 65 61 72 63 68 20 | 69 6e 20 2e 20 61 6e 64 | search |in . and|
|000009f0| 20 74 68 65 6e 20 69 6e | 20 24 48 4f 4d 45 0a 20 | then in| $HOME. |
|00000a00| 49 74 20 77 69 6c 6c 20 | 6c 6f 6f 6b 20 66 6f 72 |It will |look for|
|00000a10| 20 74 68 65 20 66 69 6c | 65 20 2e 6c 69 73 70 72 | the fil|e .lispr|
|00000a20| 63 20 6f 72 20 6c 69 73 | 70 72 63 20 65 6e 64 69 |c or lis|prc endi|
|00000a30| 6e 67 20 77 69 74 68 20 | 2e 6f 2c 20 2e 6c 20 61 |ng with |.o, .l a|
|00000a40| 6e 64 20 74 68 65 6e 0a | 6a 75 73 74 20 2e 6c 69 |nd then.|just .li|
|00000a50| 73 70 72 63 20 6f 72 20 | 6c 69 73 70 72 63 2e 0a |sprc or |lisprc..|
|00000a60| 0a 20 53 68 6f 72 74 6c | 79 2c 20 69 74 20 77 69 |. Shortl|y, it wi|
|00000a70| 6c 6c 20 6f 6e 6c 79 20 | 6c 6f 6f 6b 20 66 6f 72 |ll only |look for|
|00000a80| 20 66 69 6c 65 73 20 65 | 6e 64 69 6e 67 20 69 6e | files e|nding in|
|00000a90| 20 2e 6c 20 61 6e 64 20 | 2e 6f 20 73 69 6e 63 65 | .l and |.o since|
|00000aa0| 20 77 65 20 64 6f 6e 27 | 74 0a 77 61 6e 74 20 74 | we don'|t.want t|
|00000ab0| 6f 20 65 6e 63 6f 75 72 | 61 67 65 20 66 69 6c 65 |o encour|age file|
|00000ac0| 73 20 77 69 74 68 20 6e | 6f 6e 2d 73 74 61 6e 64 |s with n|on-stand|
|00000ad0| 61 72 64 20 66 69 6c 65 | 6e 61 6d 65 20 65 78 74 |ard file|name ext|
|00000ae0| 65 6e 73 69 6f 6e 73 2e | 0a 0a 0a 20 0a 0a 0a 46 |ensions.|... ...F|
|00000af0| 72 6f 6d 20 6a 6b 66 20 | 57 65 64 20 41 70 72 20 |rom jkf |Wed Apr |
|00000b00| 32 31 20 32 33 3a 34 30 | 3a 35 39 20 31 39 38 32 |21 23:40|:59 1982|
|00000b10| 0a 54 6f 3a 20 6c 6f 63 | 61 6c 2d 6c 69 73 70 0a |.To: loc|al-lisp.|
|00000b20| 53 75 62 6a 65 63 74 3a | 20 6c 69 73 70 20 6f 70 |Subject:| lisp op|
|00000b30| 75 73 20 33 38 2e 31 31 | 0a 53 74 61 74 75 73 3a |us 38.11|.Status:|
|00000b40| 20 52 4f 0a 0a 20 49 20 | 66 69 6e 61 6c 6c 79 20 | RO.. I |finally |
|00000b50| 67 6f 74 20 73 69 63 6b | 20 6f 66 20 73 68 6f 77 |got sick| of show|
|00000b60| 73 74 61 63 6b 20 61 6e | 64 20 62 61 6b 74 72 61 |stack an|d baktra|
|00000b70| 63 65 20 61 6e 64 20 72 | 65 77 72 6f 74 65 20 74 |ce and r|ewrote t|
|00000b80| 68 65 6d 20 69 6e 20 6c | 69 73 70 2c 0a 72 69 6e |hem in l|isp,.rin|
|00000b90| 63 6f 72 70 6f 72 61 74 | 69 6e 67 20 73 6f 6d 65 |corporat|ing some|
|00000ba0| 20 6f 66 20 74 68 65 20 | 66 65 61 74 75 72 65 73 | of the |features|
|00000bb0| 20 70 65 6f 70 6c 65 20 | 68 61 76 65 20 62 65 65 | people |have bee|
|00000bc0| 6e 20 72 65 71 75 65 73 | 74 69 6e 67 2e 0a 53 68 |n reques|ting..Sh|
|00000bd0| 6f 77 73 74 61 63 6b 20 | 6e 6f 77 20 77 6f 72 6b |owstack |now work|
|00000be0| 73 20 61 73 20 66 6f 6c | 6c 6f 77 73 3a 0a 09 28 |s as fol|lows:..(|
|00000bf0| 73 68 6f 77 73 74 61 63 | 6b 29 20 3a 20 73 68 6f |showstac|k) : sho|
|00000c00| 77 20 61 6c 6c 20 69 6e | 74 65 72 65 73 74 69 6e |w all in|terestin|
|00000c10| 67 20 66 6f 72 6d 73 2e | 20 20 46 6f 72 6d 73 20 |g forms.| Forms |
|00000c20| 72 65 73 75 6c 74 69 6e | 67 20 66 72 6f 6d 0a 09 |resultin|g from..|
|00000c30| 09 20 20 20 20 20 20 74 | 68 65 20 74 72 61 63 65 |. t|he trace|
|00000c40| 20 70 61 63 6b 61 67 65 | 20 61 72 65 20 6e 6f 74 | package| are not|
|00000c50| 20 70 72 69 6e 74 65 64 | 20 61 73 20 77 65 6c 6c | printed| as well|
|00000c60| 20 61 73 20 0a 09 09 20 | 20 20 20 20 20 65 78 74 | as ... | ext|
|00000c70| 72 61 6e 65 6f 75 73 20 | 63 61 6c 6c 73 20 74 6f |raneous |calls to|
|00000c80| 20 65 76 61 6c 2e 20 20 | 49 6e 20 74 68 65 20 66 | eval. |In the f|
|00000c90| 6f 72 6d 20 70 72 69 6e | 74 65 64 2c 0a 09 09 20 |orm prin|ted,... |
|00000ca0| 20 20 20 20 20 74 68 65 | 20 73 70 65 63 69 61 6c | the| special|
|00000cb0| 20 66 6f 72 6d 20 3c 2a | 2a 3e 20 6d 65 61 6e 73 | form <*|*> means|
|00000cc0| 20 27 74 68 65 20 70 72 | 65 76 69 6f 75 73 20 65 | 'the pr|evious e|
|00000cd0| 78 70 72 65 73 73 69 6f | 6e 0a 09 09 20 20 20 20 |xpressio|n... |
|00000ce0| 20 20 70 72 69 6e 74 65 | 64 27 2e 20 20 70 72 69 | printe|d'. pri|
|00000cf0| 6e 6c 65 76 65 6c 20 61 | 6e 64 20 70 72 69 6e 6c |nlevel a|nd prinl|
|00000d00| 65 6e 67 74 68 20 61 72 | 65 20 73 65 74 20 74 6f |ength ar|e set to|
|00000d10| 20 0a 09 09 20 20 20 20 | 20 20 72 65 61 73 6f 6e | ... | reason|
|00000d20| 61 62 6c 65 20 76 61 6c | 75 65 73 20 74 6f 20 70 |able val|ues to p|
|00000d30| 72 65 76 65 6e 74 20 74 | 68 65 20 65 78 70 72 65 |revent t|he expre|
|00000d40| 73 73 69 6f 6e 20 66 72 | 6f 6d 0a 09 09 20 20 20 |ssion fr|om... |
|00000d50| 20 20 20 67 65 74 74 69 | 6e 67 20 74 6f 6f 20 6c | getti|ng too l|
|00000d60| 61 72 67 65 0a 09 28 73 | 68 6f 77 73 74 61 63 6b |arge..(s|howstack|
|00000d70| 20 74 29 20 3a 20 73 61 | 6d 65 20 61 73 20 61 62 | t) : sa|me as ab|
|00000d80| 6f 76 65 20 62 75 74 20 | 70 72 69 6e 74 20 61 6c |ove but |print al|
|00000d90| 6c 20 65 78 70 72 65 73 | 73 69 6f 6e 73 2e 0a 09 |l expres|sions...|
|00000da0| 28 73 68 6f 77 73 74 61 | 63 6b 20 35 29 20 3a 20 |(showsta|ck 5) : |
|00000db0| 70 72 69 6e 74 20 6f 6e | 6c 79 20 74 68 65 20 66 |print on|ly the f|
|00000dc0| 69 72 73 74 20 35 20 65 | 78 70 72 65 73 73 69 6f |irst 5 e|xpressio|
|00000dd0| 6e 73 2e 20 6f 66 20 63 | 6f 75 72 73 65 2c 20 35 |ns. of c|ourse, 5|
|00000de0| 0a 09 09 20 20 20 20 20 | 20 69 73 20 6e 6f 74 20 |... | is not |
|00000df0| 74 68 65 20 6f 6e 6c 79 | 20 70 6f 73 73 69 62 6c |the only| possibl|
|00000e00| 65 20 6e 75 6d 65 72 69 | 63 20 61 72 67 75 6d 65 |e numeri|c argume|
|00000e10| 6e 74 2e 0a 09 28 73 68 | 6f 77 73 74 61 63 6b 20 |nt...(sh|owstack |
|00000e20| 6c 65 76 20 33 29 20 3a | 20 73 65 74 20 70 72 69 |lev 3) :| set pri|
|00000e30| 6e 6c 65 76 65 6c 20 74 | 6f 20 33 20 62 65 66 6f |nlevel t|o 3 befo|
|00000e40| 72 65 20 70 72 69 6e 74 | 69 6e 67 0a 09 28 73 68 |re print|ing..(sh|
|00000e50| 6f 77 73 74 61 63 6b 20 | 6c 65 6e 20 34 29 20 3a |owstack |len 4) :|
|00000e60| 20 73 65 74 20 70 72 69 | 6e 6c 65 6e 67 74 68 20 | set pri|nlength |
|00000e70| 74 6f 20 34 20 62 65 66 | 6f 72 65 20 70 72 69 6e |to 4 bef|ore prin|
|00000e80| 74 69 6e 67 0a 20 74 68 | 65 20 61 62 6f 76 65 20 |ting. th|e above |
|00000e90| 61 72 67 75 6d 65 6e 74 | 73 20 63 61 6e 20 62 65 |argument|s can be|
|00000ea0| 20 75 73 65 64 20 69 6e | 20 63 6f 6d 62 69 6e 61 | used in| combina|
|00000eb0| 74 69 6f 6e 2e 0a 0a 54 | 68 65 20 64 65 66 61 75 |tion...T|he defau|
|00000ec0| 6c 74 20 76 61 6c 75 65 | 20 6f 66 20 70 72 69 6e |lt value| of prin|
|00000ed0| 6c 65 76 65 6c 20 69 73 | 20 73 68 6f 77 73 74 61 |level is| showsta|
|00000ee0| 63 6b 2d 70 72 69 6e 6c | 65 76 65 6c 2c 20 74 68 |ck-prinl|evel, th|
|00000ef0| 61 74 20 6f 66 20 70 72 | 69 6e 6c 65 6e 67 74 68 |at of pr|inlength|
|00000f00| 0a 69 73 20 73 68 6f 77 | 73 74 61 63 6b 2d 70 72 |.is show|stack-pr|
|00000f10| 69 6e 6c 65 6e 67 74 68 | 2e 20 20 74 68 65 20 64 |inlength|. the d|
|00000f20| 65 66 61 75 6c 74 20 73 | 68 6f 77 73 74 61 63 6b |efault s|howstack|
|00000f30| 20 70 72 69 6e 74 65 72 | 20 69 73 20 74 68 65 0a | printer| is the.|
|00000f40| 76 61 6c 75 65 20 6f 66 | 20 73 68 6f 77 73 74 61 |value of| showsta|
|00000f50| 63 6b 2d 70 72 69 6e 74 | 65 72 20 28 64 65 66 61 |ck-print|er (defa|
|00000f60| 75 6c 74 20 69 73 20 27 | 70 72 69 6e 74 27 29 2e |ult is '|print').|
|00000f70| 0a 0a 62 61 6b 74 72 61 | 63 65 20 61 63 63 65 70 |..baktra|ce accep|
|00000f80| 74 73 20 74 68 65 20 73 | 61 6d 65 20 61 72 67 75 |ts the s|ame argu|
|00000f90| 6d 65 6e 74 73 20 61 73 | 20 73 68 6f 77 73 74 61 |ments as| showsta|
|00000fa0| 63 6b 2c 20 62 75 74 20 | 69 74 20 69 67 6e 6f 72 |ck, but |it ignor|
|00000fb0| 65 73 20 74 68 65 0a 70 | 72 69 6e 6c 65 76 65 6c |es the.p|rinlevel|
|00000fc0| 20 61 6e 64 20 70 72 69 | 6e 6c 65 6e 67 74 68 20 | and pri|nlength |
|00000fd0| 61 72 67 75 6d 65 6e 74 | 73 2e 0a 0a 0a 0a 0a 46 |argument|s......F|
|00000fe0| 72 6f 6d 20 6a 6b 66 20 | 53 61 74 20 41 70 72 20 |rom jkf |Sat Apr |
|00000ff0| 32 34 20 30 38 3a 35 35 | 3a 31 38 20 31 39 38 32 |24 08:55|:18 1982|
|00001000| 0a 54 6f 3a 20 6c 6f 63 | 61 6c 2d 6c 69 73 70 0a |.To: loc|al-lisp.|
|00001010| 53 75 62 6a 65 63 74 3a | 20 6c 69 73 70 20 6f 70 |Subject:| lisp op|
|00001020| 75 73 20 33 38 2e 31 32 | 2c 20 6c 69 73 7a 74 20 |us 38.12|, liszt |
|00001030| 38 2e 30 35 0a 53 74 61 | 74 75 73 3a 20 52 4f 0a |8.05.Sta|tus: RO.|
|00001040| 0a 20 20 74 68 65 73 65 | 20 63 68 61 6e 67 65 73 |. these| changes|
|00001050| 20 61 6e 64 20 65 6e 68 | 61 6e 63 65 6d 65 6e 74 | and enh|ancement|
|00001060| 73 20 77 65 72 65 20 6d | 61 64 65 3a 0a 0a 31 29 |s were m|ade:..1)|
|00001070| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 27 66 | the fun|ction 'f|
|00001080| 75 6e 63 74 69 6f 6e 27 | 20 69 6e 20 74 68 65 20 |unction'| in the |
|00001090| 69 6e 74 65 72 70 72 65 | 74 65 72 20 61 63 74 73 |interpre|ter acts|
|000010a0| 20 6a 75 73 74 20 6c 69 | 6b 65 20 27 71 75 6f 74 | just li|ke 'quot|
|000010b0| 65 27 0a 20 20 20 49 6e | 20 74 68 65 20 63 6f 6d |e'. In| the com|
|000010c0| 70 69 6c 65 72 2c 20 27 | 66 75 6e 63 74 69 6f 6e |piler, '|function|
|000010d0| 27 20 77 69 6c 6c 20 61 | 63 74 20 6c 69 6b 65 20 |' will a|ct like |
|000010e0| 27 71 75 6f 74 65 27 20 | 75 6e 6c 65 73 73 20 74 |'quote' |unless t|
|000010f0| 68 65 0a 20 20 20 61 72 | 67 75 6d 65 6e 74 20 69 |he. ar|gument i|
|00001100| 73 20 61 20 6c 61 6d 62 | 64 61 20 65 78 70 72 65 |s a lamb|da expre|
|00001110| 73 73 69 6f 6e 2c 20 69 | 6e 20 77 68 69 63 68 20 |ssion, i|n which |
|00001120| 63 61 73 65 20 6c 69 73 | 7a 74 20 77 69 6c 6c 20 |case lis|zt will |
|00001130| 72 65 70 6c 61 63 65 0a | 20 20 20 74 68 65 20 6c |replace.| the l|
|00001140| 61 6d 62 64 61 20 65 78 | 70 72 65 73 73 69 6f 6e |ambda ex|pression|
|00001150| 20 77 69 74 68 20 61 20 | 75 6e 69 71 75 65 20 73 | with a |unique s|
|00001160| 79 6d 62 6f 6c 2e 20 20 | 54 68 61 74 20 75 6e 69 |ymbol. |That uni|
|00001170| 71 75 65 20 73 79 6d 62 | 6f 6c 27 73 0a 20 20 20 |que symb|ol's. |
|00001180| 66 75 6e 63 74 69 6f 6e | 20 63 65 6c 6c 20 77 69 |function| cell wi|
|00001190| 6c 6c 20 63 6f 6e 74 61 | 69 6e 20 61 20 63 6f 6d |ll conta|in a com|
|000011a0| 70 69 6c 65 64 20 76 65 | 72 73 69 6f 6e 20 6f 66 |piled ve|rsion of|
|000011b0| 20 74 68 65 20 6c 61 6d | 62 64 61 20 0a 20 20 20 | the lam|bda . |
|000011c0| 65 78 70 72 65 73 73 69 | 6f 6e 2e 20 20 20 54 68 |expressi|on. Th|
|000011d0| 65 73 65 20 63 68 61 6e | 67 65 73 20 77 69 6c 6c |ese chan|ges will|
|000011e0| 20 6d 61 6b 65 20 46 72 | 61 6e 7a 20 63 6f 6d 70 | make Fr|anz comp|
|000011f0| 61 74 69 62 6c 65 20 77 | 69 74 68 20 4d 61 63 6c |atible w|ith Macl|
|00001200| 69 73 70 0a 20 20 20 74 | 79 70 65 20 6c 69 73 70 |isp. t|ype lisp|
|00001210| 73 2c 20 61 73 20 66 61 | 72 20 61 73 20 74 68 65 |s, as fa|r as the|
|00001220| 20 74 72 65 61 74 6d 65 | 6e 74 20 6f 66 20 27 66 | treatme|nt of 'f|
|00001230| 75 6e 63 74 69 6f 6e 27 | 0a 0a 32 29 20 4d 65 63 |unction'|..2) Mec|
|00001240| 68 61 6e 69 73 6d 73 20 | 77 65 72 65 20 61 64 64 |hanisms |were add|
|00001250| 65 64 20 74 6f 20 70 65 | 72 6d 69 74 20 75 73 65 |ed to pe|rmit use|
|00001260| 72 20 77 72 69 74 74 65 | 6e 20 43 20 6f 72 20 46 |r writte|n C or F|
|00001270| 6f 72 74 72 61 6e 20 63 | 6f 64 65 20 74 6f 20 63 |ortran c|ode to c|
|00001280| 61 6c 6c 20 0a 20 20 20 | 6c 69 73 70 20 63 6f 64 |all . |lisp cod|
|00001290| 65 2e 20 45 76 65 72 79 | 74 68 69 6e 67 20 69 73 |e. Every|thing is|
|000012a0| 6e 27 74 20 71 75 69 74 | 65 20 72 65 61 64 79 20 |n't quit|e ready |
|000012b0| 79 65 74 2e 0a 0a 33 29 | 20 53 69 67 6e 61 6c 20 |yet...3)| Signal |
|000012c0| 77 61 73 20 66 69 78 65 | 64 20 73 6f 20 74 68 61 |was fixe|d so tha|
|000012d0| 74 20 69 66 20 79 6f 75 | 20 61 73 6b 20 66 6f 72 |t if you| ask for|
|000012e0| 20 61 20 73 69 67 6e 61 | 6c 20 74 6f 20 62 65 20 | a signa|l to be |
|000012f0| 69 67 6e 6f 72 65 64 2c | 20 74 68 65 0a 20 20 20 |ignored,| the. |
|00001300| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|00001310| 20 77 69 6c 6c 20 62 65 | 20 6e 6f 74 69 66 69 65 | will be| notifie|
|00001320| 64 2e 20 20 54 68 65 20 | 63 6f 72 72 65 63 74 20 |d. The |correct |
|00001330| 77 61 79 20 74 6f 20 66 | 6f 72 6b 20 61 20 6c 69 |way to f|ork a li|
|00001340| 73 70 0a 20 20 20 69 73 | 20 6e 6f 77 3a 0a 09 28 |sp. is| now:..(|
|00001350| 63 6f 6e 64 20 28 28 66 | 6f 72 6b 29 20 28 73 69 |cond ((f|ork) (si|
|00001360| 67 6e 61 6c 20 32 20 28 | 70 72 6f 67 31 20 28 73 |gnal 2 (|prog1 (s|
|00001370| 69 67 6e 61 6c 20 32 29 | 20 28 77 61 69 74 29 29 |ignal 2)| (wait))|
|00001380| 29 29 29 0a 0a 34 29 20 | 59 6f 75 20 63 61 6e 20 |)))..4) |You can |
|00001390| 73 65 6c 65 63 74 20 74 | 68 65 20 64 65 66 61 75 |select t|he defau|
|000013a0| 6c 74 20 66 75 6e 63 74 | 69 6f 6e 20 74 72 61 63 |lt funct|ion trac|
|000013b0| 65 20 75 73 65 73 20 74 | 6f 20 70 72 69 6e 74 20 |e uses t|o print |
|000013c0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 61 6e |the argu|ments an|
|000013d0| 64 0a 20 20 20 72 65 73 | 75 6c 74 73 2e 20 20 4a |d. res|ults. J|
|000013e0| 75 73 74 20 6c 61 6d 62 | 64 61 20 62 69 6e 64 20 |ust lamb|da bind |
|000013f0| 74 72 61 63 65 2d 70 72 | 69 6e 74 65 72 20 74 6f |trace-pr|inter to|
|00001400| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|00001410| 20 66 75 6e 63 74 69 6f | 6e 0a 20 20 20 79 6f 75 | functio|n. you|
|00001420| 20 77 61 6e 74 20 69 74 | 20 74 6f 20 75 73 65 2e | want it| to use.|
|00001430| 20 20 54 68 65 20 73 74 | 61 6e 64 61 72 64 20 74 | The st|andard t|
|00001440| 72 61 63 65 2d 70 72 69 | 6e 74 65 72 20 73 65 74 |race-pri|nter set|
|00001450| 73 20 70 72 69 6e 6c 65 | 76 65 6c 20 61 6e 64 0a |s prinle|vel and.|
|00001460| 20 20 20 70 72 69 6e 6c | 65 6e 67 74 68 20 74 6f | prinl|ength to|
|00001470| 20 74 68 65 20 76 61 6c | 75 65 73 20 6f 66 20 74 | the val|ues of t|
|00001480| 72 61 63 65 2d 70 72 69 | 6e 6c 65 76 65 6c 20 61 |race-pri|nlevel a|
|00001490| 6e 64 20 74 72 61 63 65 | 2d 70 72 69 6e 6c 65 6e |nd trace|-prinlen|
|000014a0| 67 74 68 20 62 65 66 6f | 72 65 0a 20 20 20 70 72 |gth befo|re. pr|
|000014b0| 69 6e 74 69 6e 67 2e 20 | 20 42 79 20 64 65 66 61 |inting. | By defa|
|000014c0| 75 6c 74 2c 20 74 72 61 | 63 65 2d 70 72 69 6e 6c |ult, tra|ce-prinl|
|000014d0| 65 76 65 6c 20 69 73 20 | 34 2c 20 61 6e 64 20 74 |evel is |4, and t|
|000014e0| 72 61 63 65 2d 70 72 69 | 6e 6c 65 6e 67 74 68 20 |race-pri|nlength |
|000014f0| 69 73 20 35 0a 0a 0a 20 | 20 20 0a 0a 0a 46 72 6f |is 5... | ...Fro|
|00001500| 6d 20 6a 6b 66 20 53 75 | 6e 20 41 70 72 20 32 35 |m jkf Su|n Apr 25|
|00001510| 20 32 33 3a 34 36 3a 31 | 36 20 31 39 38 32 0a 54 | 23:46:1|6 1982.T|
|00001520| 6f 3a 20 6c 6f 63 61 6c | 2d 6c 69 73 70 0a 53 75 |o: local|-lisp.Su|
|00001530| 62 6a 65 63 74 3a 20 6c | 69 73 70 20 6f 70 75 73 |bject: l|isp opus|
|00001540| 20 33 38 2e 31 33 0a 53 | 74 61 74 75 73 3a 20 52 | 38.13.S|tatus: R|
|00001550| 4f 0a 0a 20 20 46 75 6e | 63 74 69 6f 6e 73 20 31 |O.. Fun|ctions 1|
|00001560| 2b 20 61 6e 64 20 31 2d | 20 61 72 65 20 6e 6f 77 |+ and 1-| are now|
|00001570| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 69 6e 74 | part of| the int|
|00001580| 65 72 70 72 65 74 65 72 | 2c 20 72 61 74 68 65 72 |erpreter|, rather|
|00001590| 20 74 68 61 6e 0a 62 65 | 69 6e 67 20 6d 61 64 65 | than.be|ing made|
|000015a0| 20 65 71 75 69 76 61 6c | 65 6e 74 20 74 6f 20 61 | equival|ent to a|
|000015b0| 64 64 31 20 61 6e 64 20 | 73 75 62 31 2e 0a 0a 0a |dd1 and |sub1....|
|000015c0| 0a 46 72 6f 6d 20 6a 6b | 66 20 57 65 64 20 41 70 |.From jk|f Wed Ap|
|000015d0| 72 20 32 38 20 30 39 3a | 35 32 3a 34 33 20 31 39 |r 28 09:|52:43 19|
|000015e0| 38 32 0a 54 6f 3a 20 6c | 6f 63 61 6c 2d 6c 69 73 |82.To: l|ocal-lis|
|000015f0| 70 0a 53 75 62 6a 65 63 | 74 3a 20 4f 70 75 73 20 |p.Subjec|t: Opus |
|00001600| 33 38 2e 31 34 0a 53 74 | 61 74 75 73 3a 20 52 4f |38.14.St|atus: RO|
|00001610| 0a 0a 20 20 48 61 73 20 | 74 68 65 73 65 20 6e 65 |.. Has |these ne|
|00001620| 77 20 66 65 61 74 75 72 | 65 73 3a 0a 09 31 29 20 |w featur|es:..1) |
|00001630| 74 68 65 20 6d 65 73 73 | 61 67 65 20 5b 6c 6f 61 |the mess|age [loa|
|00001640| 64 20 66 69 6c 65 6e 61 | 6d 65 5d 20 77 69 6c 6c |d filena|me] will|
|00001650| 20 61 70 70 65 61 72 20 | 62 65 66 6f 72 65 20 6c | appear |before l|
|00001660| 6f 61 64 0a 09 20 20 20 | 72 65 61 64 73 20 69 6e |oad.. |reads in|
|00001670| 20 61 20 6c 69 73 70 20 | 73 6f 75 72 63 65 20 66 | a lisp |source f|
|00001680| 69 6c 65 2e 20 20 54 68 | 69 73 20 63 61 6e 20 62 |ile. Th|is can b|
|00001690| 65 20 64 69 73 61 62 6c | 65 64 20 62 79 0a 09 20 |e disabl|ed by.. |
|000016a0| 20 20 73 65 74 74 69 6e | 67 20 24 6c 64 70 72 69 | settin|g $ldpri|
|000016b0| 6e 74 20 74 6f 20 6e 69 | 6c 2e 0a 09 32 29 20 61 |nt to ni|l...2) a|
|000016c0| 20 66 75 6e 63 74 69 6f | 6e 20 27 74 72 75 65 6e | functio|n 'truen|
|000016d0| 61 6d 65 27 20 61 73 20 | 62 65 65 6e 20 61 64 64 |ame' as |been add|
|000016e0| 65 64 2e 20 20 49 74 20 | 74 61 6b 65 73 20 61 20 |ed. It |takes a |
|000016f0| 70 6f 72 74 0a 09 20 20 | 20 61 6e 64 20 72 65 74 |port.. | and ret|
|00001700| 75 72 6e 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |urns the| name of|
|00001710| 20 74 68 65 20 66 69 6c | 65 20 61 73 73 6f 63 69 | the fil|e associ|
|00001720| 61 74 65 64 20 77 69 74 | 68 20 74 68 61 74 20 70 |ated wit|h that p|
|00001730| 6f 72 74 2e 0a 09 20 20 | 20 49 74 20 72 65 74 75 |ort... | It retu|
|00001740| 72 6e 73 20 61 20 73 74 | 72 69 6e 67 20 69 66 20 |rns a st|ring if |
|00001750| 74 68 65 72 65 20 69 73 | 20 61 20 66 69 6c 65 20 |there is| a file |
|00001760| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 0a |associat|ed with.|
|00001770| 09 20 20 20 74 68 65 20 | 70 6f 72 74 2c 20 6f 74 |. the |port, ot|
|00001780| 68 65 72 77 69 73 65 20 | 69 74 20 72 65 74 75 72 |herwise |it retur|
|00001790| 6e 73 20 6e 69 6c 2e 0a | 0a 0a 0a 46 72 6f 6d 20 |ns nil..|...From |
|000017a0| 6a 6b 66 20 57 65 64 20 | 41 70 72 20 32 38 20 31 |jkf Wed |Apr 28 1|
|000017b0| 30 3a 33 36 3a 33 34 20 | 31 39 38 32 0a 54 6f 3a |0:36:34 |1982.To:|
|000017c0| 20 6c 6f 63 61 6c 2d 6c | 69 73 70 0a 53 75 62 6a | local-l|isp.Subj|
|000017d0| 65 63 74 3a 20 6d 6f 72 | 65 20 6f 6e 20 6f 70 75 |ect: mor|e on opu|
|000017e0| 73 20 33 38 2e 31 34 0a | 53 74 61 74 75 73 3a 20 |s 38.14.|Status: |
|000017f0| 52 4f 0a 0a 20 24 6c 64 | 70 72 69 6e 74 20 69 73 |RO.. $ld|print is|
|00001800| 20 6c 61 6d 62 64 61 20 | 62 6f 75 6e 64 20 74 6f | lambda |bound to|
|00001810| 20 6e 69 6c 20 64 75 72 | 69 6e 67 20 74 68 65 20 | nil dur|ing the |
|00001820| 6c 6f 61 64 69 6e 67 20 | 6f 66 20 74 68 65 20 6c |loading |of the l|
|00001830| 69 73 70 72 63 20 66 69 | 6c 65 2e 0a 0a 0a 0a 0a |isprc fi|le......|
|00001840| 46 72 6f 6d 20 6a 6b 66 | 20 57 65 64 20 4d 61 79 |From jkf| Wed May|
|00001850| 20 20 35 20 30 38 3a 33 | 30 3a 30 30 20 31 39 38 | 5 08:3|0:00 198|
|00001860| 32 0a 54 6f 3a 20 6c 6f | 63 61 6c 2d 6c 69 73 70 |2.To: lo|cal-lisp|
|00001870| 0a 53 75 62 6a 65 63 74 | 3a 20 6f 70 75 73 20 33 |.Subject|: opus 3|
|00001880| 38 2e 31 35 0a 53 74 61 | 74 75 73 3a 20 52 4f 0a |8.15.Sta|tus: RO.|
|00001890| 0a 20 61 20 6d 69 6e 6f | 72 20 6d 6f 64 69 66 69 |. a mino|r modifi|
|000018a0| 63 61 74 69 6f 6e 3a 20 | 27 6d 61 6b 68 75 6e 6b |cation: |'makhunk|
|000018b0| 27 20 69 73 20 6e 6f 77 | 20 6d 6f 72 65 20 65 66 |' is now| more ef|
|000018c0| 66 69 63 69 65 6e 74 2e | 0a 0a 0a 46 72 6f 6d 20 |ficient.|...From |
|000018d0| 6a 6b 66 20 57 65 64 20 | 4d 61 79 20 20 35 20 32 |jkf Wed |May 5 2|
|000018e0| 30 3a 35 36 3a 34 30 20 | 31 39 38 32 0a 54 6f 3a |0:56:40 |1982.To:|
|000018f0| 20 6c 6f 63 61 6c 2d 6c | 69 73 70 0a 53 75 62 6a | local-l|isp.Subj|
|00001900| 65 63 74 3a 20 4f 70 75 | 73 20 33 38 2e 31 36 0a |ect: Opu|s 38.16.|
|00001910| 53 74 61 74 75 73 3a 20 | 52 4f 0a 0a 20 41 20 6e |Status: |RO.. A n|
|00001920| 65 77 20 66 75 6e 63 74 | 69 6f 6e 20 77 61 73 20 |ew funct|ion was |
|00001930| 61 64 64 65 64 3a 0a 09 | 28 68 75 6e 6b 2d 74 6f |added:..|(hunk-to|
|00001940| 2d 6c 69 73 74 20 27 68 | 5f 68 75 6e 6b 29 20 0a |-list 'h|_hunk) .|
|00001950| 09 72 65 74 75 72 6e 73 | 20 74 68 65 20 65 6c 65 |.returns| the ele|
|00001960| 6d 65 6e 74 73 20 6f 66 | 20 68 5f 68 75 6e 6b 20 |ments of| h_hunk |
|00001970| 61 73 20 61 20 6c 69 73 | 74 2e 0a 0a 20 41 6c 73 |as a lis|t... Als|
|00001980| 6f 2c 20 74 68 65 20 65 | 72 72 6f 72 20 6d 65 73 |o, the e|rror mes|
|00001990| 73 61 67 65 20 70 72 69 | 6e 74 65 64 20 77 68 65 |sage pri|nted whe|
|000019a0| 6e 20 61 6e 20 6f 76 65 | 72 73 69 7a 65 64 20 70 |n an ove|rsized p|
|000019b0| 72 69 6e 74 20 6e 61 6d | 65 20 69 73 20 65 6e 63 |rint nam|e is enc|
|000019c0| 6f 75 6e 74 65 72 65 64 | 0a 68 61 73 20 62 65 65 |ountered|.has bee|
|000019d0| 6e 20 69 6d 70 72 6f 76 | 65 64 2e 0a 0a 0a 0a 46 |n improv|ed.....F|
|000019e0| 72 6f 6d 20 6a 6b 66 20 | 46 72 69 20 4d 61 79 20 |rom jkf |Fri May |
|000019f0| 20 37 20 32 30 3a 30 33 | 3a 34 30 20 31 39 38 32 | 7 20:03|:40 1982|
|00001a00| 0a 54 6f 3a 20 6c 6f 63 | 61 6c 2d 6c 69 73 70 0a |.To: loc|al-lisp.|
|00001a10| 53 75 62 6a 65 63 74 3a | 20 4c 69 73 7a 74 20 76 |Subject:| Liszt v|
|00001a20| 65 72 73 69 6f 6e 20 38 | 2e 30 36 0a 53 74 61 74 |ersion 8|.06.Stat|
|00001a30| 75 73 3a 20 52 4f 0a 0a | 0a 20 4c 6f 63 61 6c 20 |us: RO..|. Local |
|00001a40| 64 65 63 6c 61 72 61 74 | 69 6f 6e 73 20 61 72 65 |declarat|ions are|
|00001a50| 20 6e 6f 77 20 73 75 70 | 70 6f 72 74 65 64 2e 20 | now sup|ported. |
|00001a60| 20 59 6f 75 20 63 61 6e | 20 73 61 79 3a 0a 28 64 | You can| say:.(d|
|00001a70| 65 66 75 6e 20 66 6f 6f | 20 28 61 20 62 29 0a 20 |efun foo| (a b). |
|00001a80| 20 20 28 64 65 63 6c 61 | 72 65 20 28 73 70 65 63 | (decla|re (spec|
|00001a90| 69 61 6c 20 61 29 29 0a | 20 20 20 2e 2e 2e 20 62 |ial a)).| ... b|
|00001aa0| 6f 64 79 20 2e 2e 2e 29 | 0a 0a 61 6e 64 20 74 68 |ody ...)|..and th|
|00001ab0| 65 20 73 70 65 63 69 61 | 6c 20 64 65 63 6c 61 72 |e specia|l declar|
|00001ac0| 61 74 69 6f 6e 20 66 6f | 72 20 27 61 27 20 77 69 |ation fo|r 'a' wi|
|00001ad0| 6c 6c 20 61 66 66 65 63 | 74 20 74 68 65 20 62 6f |ll affec|t the bo|
|00001ae0| 64 79 20 6f 66 20 66 75 | 6e 63 74 69 6f 6e 0a 66 |dy of fu|nction.f|
|00001af0| 6f 6f 20 6f 6e 6c 79 2e | 20 20 54 68 65 20 27 61 |oo only.| The 'a|
|00001b00| 27 20 77 68 69 63 68 20 | 69 73 20 61 6e 20 61 72 |' which |is an ar|
|00001b10| 67 75 6d 65 6e 74 20 74 | 6f 20 66 6f 6f 20 77 69 |gument t|o foo wi|
|00001b20| 6c 6c 20 61 6c 73 6f 20 | 62 65 20 73 70 65 63 69 |ll also |be speci|
|00001b30| 61 6c 0a 69 6e 20 74 68 | 69 73 20 63 61 73 65 2e |al.in th|is case.|
|00001b40| 20 20 20 20 44 65 63 6c | 61 72 61 74 69 6f 6e 73 | Decl|arations|
|00001b50| 20 6d 61 79 20 62 65 20 | 0a 20 31 29 20 61 74 20 | may be |. 1) at |
|00001b60| 74 68 65 20 74 6f 70 20 | 6c 65 76 65 6c 2c 20 6e |the top |level, n|
|00001b70| 6f 74 20 77 69 74 68 69 | 6e 20 61 20 66 75 6e 63 |ot withi|n a func|
|00001b80| 74 69 6f 6e 20 62 6f 64 | 79 2e 0a 20 32 29 20 61 |tion bod|y.. 2) a|
|00001b90| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|00001ba0| 6f 66 20 61 20 20 27 6c | 61 6d 62 64 61 27 20 62 |of a 'l|ambda' b|
|00001bb0| 6f 64 79 2e 0a 20 33 29 | 20 61 74 20 74 68 65 20 |ody.. 3)| at the |
|00001bc0| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 61 20 27 |beginnin|g of a '|
|00001bd0| 70 72 6f 67 27 20 62 6f | 64 79 0a 20 34 29 20 61 |prog' bo|dy. 4) a|
|00001be0| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|00001bf0| 6f 66 20 61 20 27 64 6f | 27 20 62 6f 64 79 2e 0a |of a 'do|' body..|
|00001c00| 0a 27 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 27 |.'the be|ginning'|
|00001c10| 20 6d 65 61 6e 73 20 65 | 69 74 68 65 72 20 74 68 | means e|ither th|
|00001c20| 65 20 66 69 72 73 74 2c | 20 73 65 63 6f 6e 64 20 |e first,| second |
|00001c30| 6f 72 20 74 68 69 72 64 | 20 66 6f 72 6d 20 69 6e |or third| form in|
|00001c40| 20 74 68 65 20 62 6f 64 | 79 2e 0a 57 68 65 6e 20 | the bod|y..When |
|00001c50| 74 68 65 20 63 6f 6d 70 | 69 6c 65 72 20 69 73 20 |the comp|iler is |
|00001c60| 73 65 61 72 63 68 69 6e | 67 20 66 6f 72 20 64 65 |searchin|g for de|
|00001c70| 63 6c 61 72 61 74 69 6f | 6e 73 2c 20 69 74 20 77 |claratio|ns, it w|
|00001c80| 69 6c 6c 20 6e 6f 74 20 | 6d 61 63 72 6f 65 78 70 |ill not |macroexp|
|00001c90| 61 6e 64 2e 0a 0a 0a 20 | 46 69 78 6e 75 6d 20 64 |and.... |Fixnum d|
|00001ca0| 65 63 6c 61 72 61 74 69 | 6f 6e 73 20 6e 6f 77 20 |eclarati|ons now |
|00001cb0| 68 61 76 65 20 6d 65 61 | 6e 69 6e 67 2e 20 20 49 |have mea|ning. I|
|00001cc0| 66 20 79 6f 75 20 64 6f | 0a 09 28 64 65 63 6c 61 |f you do|..(decla|
|00001cd0| 72 65 20 28 66 69 78 6e | 75 6d 20 69 20 6a 29 29 |re (fixn|um i j))|
|00001ce0| 0a 74 68 65 6e 0a 09 28 | 67 72 65 61 74 65 72 70 |.then..(|greaterp|
|00001cf0| 20 69 20 20 6a 29 20 20 | 77 69 6c 6c 20 62 65 20 | i j) |will be |
|00001d00| 63 6f 6e 76 65 72 74 65 | 64 20 74 6f 20 28 3e 26 |converte|d to (>&|
|00001d10| 20 69 20 6a 29 0a 0a 20 | 54 68 65 20 64 65 63 6c | i j).. |The decl|
|00001d20| 61 72 65 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |are func|tion is |
|00001d30| 6e 6f 77 20 64 65 66 69 | 6e 65 64 20 69 6e 20 74 |now defi|ned in t|
|00001d40| 68 65 20 63 6f 6d 70 69 | 6c 65 72 2e 20 20 50 72 |he compi|ler. Pr|
|00001d50| 65 76 69 6f 75 73 6c 79 | 2c 0a 74 68 65 20 6f 6e |eviously|,.the on|
|00001d60| 6c 79 20 77 61 79 20 74 | 6f 20 64 65 63 6c 61 72 |ly way t|o declar|
|00001d70| 65 20 73 6f 6d 65 74 68 | 69 6e 67 20 77 61 73 20 |e someth|ing was |
|00001d80| 66 6f 72 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |for the |compiler|
|00001d90| 20 74 6f 20 27 63 6f 6d | 70 69 6c 65 27 0a 74 68 | to 'com|pile'.th|
|00001da0| 65 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 20 66 6f |e declar|ation fo|
|00001db0| 72 6d 2e 20 20 4e 6f 77 | 2c 20 69 66 20 79 6f 75 |rm. Now|, if you|
|00001dc0| 20 6c 6f 61 64 20 6f 72 | 20 66 61 73 6c 20 69 6e | load or| fasl in|
|00001dd0| 20 61 20 66 69 6c 65 20 | 77 69 74 68 0a 61 20 64 | a file |with.a d|
|00001de0| 65 63 6c 61 72 65 20 73 | 74 61 74 65 6d 65 6e 74 |eclare s|tatement|
|00001df0| 20 69 6e 20 69 74 2c 20 | 74 68 65 20 64 65 63 6c | in it, |the decl|
|00001e00| 61 72 65 20 73 74 61 74 | 65 6d 65 6e 74 20 77 69 |are stat|ement wi|
|00001e10| 6c 6c 20 68 61 76 65 20 | 74 68 65 0a 70 72 6f 70 |ll have |the.prop|
|00001e20| 65 72 20 65 66 66 65 63 | 74 20 69 6e 20 74 68 65 |er effec|t in the|
|00001e30| 20 63 6f 6d 70 69 6c 65 | 72 2e 0a 0a 0a 20 28 66 | compile|r.... (f|
|00001e40| 75 6e 63 74 69 6f 6e 20 | 28 6c 61 6d 62 64 61 20 |unction |(lambda |
|00001e50| 28 29 20 2e 2e 2e 29 29 | 2c 20 28 66 75 6e 63 74 |() ...))|, (funct|
|00001e60| 69 6f 6e 20 28 6e 6c 61 | 6d 62 64 61 20 28 29 20 |ion (nla|mbda () |
|00001e70| 2e 2e 2e 29 29 20 61 6e | 64 0a 20 28 66 75 6e 63 |...)) an|d. (func|
|00001e80| 74 69 6f 6e 20 28 6c 65 | 78 70 72 20 28 29 20 2e |tion (le|xpr () .|
|00001e90| 2e 2e 29 29 20 20 61 72 | 65 20 61 6c 6c 20 73 75 |..)) ar|e all su|
|00001ea0| 70 70 6f 72 74 65 64 2e | 0a 0a 0a 0a 46 72 6f 6d |pported.|....From|
|00001eb0| 20 6a 6b 66 20 57 65 64 | 20 4d 61 79 20 31 32 20 | jkf Wed| May 12 |
|00001ec0| 30 38 3a 31 35 3a 33 37 | 20 31 39 38 32 0a 54 6f |08:15:37| 1982.To|
|00001ed0| 3a 20 6c 6f 63 61 6c 2d | 6c 69 73 70 0a 53 75 62 |: local-|lisp.Sub|
|00001ee0| 6a 65 63 74 3a 20 4c 69 | 73 70 20 4f 70 75 73 20 |ject: Li|sp Opus |
|00001ef0| 33 38 2e 31 37 0a 53 74 | 61 74 75 73 3a 20 52 4f |38.17.St|atus: RO|
|00001f00| 0a 0a 20 2e 2e 2e 20 68 | 61 73 20 61 20 6d 69 6e |.. ... h|as a min|
|00001f10| 6f 72 20 62 75 67 20 66 | 69 78 3a 20 20 54 68 65 |or bug f|ix: The|
|00001f20| 20 70 6f 72 74 20 72 65 | 74 75 72 6e 65 64 20 62 | port re|turned b|
|00001f30| 79 20 27 66 69 6c 65 6f | 70 65 6e 27 20 77 69 6c |y 'fileo|pen' wil|
|00001f40| 6c 20 6e 6f 77 20 70 72 | 69 6e 74 0a 63 6f 72 72 |l now pr|int.corr|
|00001f50| 65 63 74 6c 79 2e 0a 0a | 0a 0a 46 72 6f 6d 20 6a |ectly...|..From j|
|00001f60| 6b 66 20 20 54 75 65 20 | 4d 61 79 20 32 35 20 30 |kf Tue |May 25 0|
|00001f70| 36 3a 31 38 3a 30 34 20 | 31 39 38 32 0a 44 61 74 |6:18:04 |1982.Dat|
|00001f80| 65 3a 20 32 35 2d 4d 61 | 79 2d 38 32 20 30 36 3a |e: 25-Ma|y-82 06:|
|00001f90| 31 37 3a 35 31 2d 50 44 | 54 20 28 54 75 65 29 0a |17:51-PD|T (Tue).|
|00001fa0| 46 72 6f 6d 3a 20 6a 6b | 66 0a 53 75 62 6a 65 63 |From: jk|f.Subjec|
|00001fb0| 74 3a 20 6f 70 75 73 20 | 33 38 2e 31 38 0a 56 69 |t: opus |38.18.Vi|
|00001fc0| 61 3a 20 75 63 62 6b 69 | 6d 2e 45 74 68 65 72 4e |a: ucbki|m.EtherN|
|00001fd0| 65 74 20 28 56 33 2e 31 | 30 30 20 5b 33 2f 32 37 |et (V3.1|00 [3/27|
|00001fe0| 2f 38 32 5d 29 3b 20 32 | 35 2d 4d 61 79 2d 38 32 |/82]); 2|5-May-82|
|00001ff0| 20 30 36 3a 31 38 3a 30 | 34 2d 50 44 54 20 28 54 | 06:18:0|4-PDT (T|
|00002000| 75 65 29 0a 54 6f 3a 20 | 6c 6f 63 61 6c 2d 6c 69 |ue).To: |local-li|
|00002010| 73 70 0a 53 74 61 74 75 | 73 3a 20 52 4f 0a 0a 20 |sp.Statu|s: RO.. |
|00002020| 20 54 68 65 20 6d 73 67 | 20 6d 61 63 72 6f 20 77 | The msg| macro w|
|00002030| 69 6c 6c 20 6e 6f 77 20 | 65 76 61 6c 75 61 74 65 |ill now |evaluate|
|00002040| 20 61 6c 6c 20 61 74 6f | 6d 20 61 72 67 75 6d 65 | all ato|m argume|
|00002050| 6e 74 73 20 65 78 63 65 | 70 74 20 74 68 65 20 6f |nts exce|pt the o|
|00002060| 6e 65 73 20 0a 66 6f 72 | 20 63 61 72 72 69 61 67 |nes .for| carriag|
|00002070| 65 20 63 6f 6e 74 72 6f | 6c 20 28 4e 20 42 29 2e |e contro|l (N B).|
|00002080| 20 20 54 68 75 73 20 69 | 66 20 79 6f 75 20 75 73 | Thus i|f you us|
|00002090| 65 64 20 28 6d 73 67 20 | 66 6f 6f 29 20 79 6f 75 |ed (msg |foo) you|
|000020a0| 20 73 68 6f 75 6c 64 0a | 6e 6f 77 20 75 73 65 20 | should.|now use |
|000020b0| 28 6d 73 67 20 22 66 6f | 6f 22 29 2e 0a 0a 0a 0a |(msg "fo|o").....|
|000020c0| 46 72 6f 6d 20 6a 6b 66 | 20 54 68 75 20 4d 61 79 |From jkf| Thu May|
|000020d0| 20 32 37 20 30 38 3a 32 | 39 3a 32 39 20 31 39 38 | 27 08:2|9:29 198|
|000020e0| 32 0a 54 6f 3a 20 6c 6f | 63 61 6c 2d 6c 69 73 70 |2.To: lo|cal-lisp|
|000020f0| 0a 53 75 62 6a 65 63 74 | 3a 20 6c 69 73 7a 74 20 |.Subject|: liszt |
|00002100| 38 2e 30 38 0a 53 74 61 | 74 75 73 3a 20 52 4f 0a |8.08.Sta|tus: RO.|
|00002110| 0a 20 46 69 78 65 73 20 | 61 20 62 75 67 20 69 6e |. Fixes |a bug in|
|00002120| 20 74 68 65 20 63 6f 64 | 65 20 77 68 69 63 68 20 | the cod|e which |
|00002130| 63 6f 6e 76 65 72 74 73 | 20 67 65 6e 65 72 69 63 |converts| generic|
|00002140| 20 61 72 69 74 68 6d 65 | 74 69 63 20 74 6f 20 66 | arithme|tic to f|
|00002150| 69 78 6e 75 6d 20 6f 6e | 6c 79 0a 61 72 69 74 68 |ixnum on|ly.arith|
|00002160| 6d 65 74 69 63 2e 20 20 | 20 4c 69 73 7a 74 20 77 |metic. | Liszt w|
|00002170| 61 73 20 63 6f 6e 76 65 | 72 74 69 6e 67 20 66 72 |as conve|rting fr|
|00002180| 6f 6d 20 67 65 6e 65 72 | 69 63 20 74 6f 20 66 69 |om gener|ic to fi|
|00002190| 78 6e 75 6d 20 6f 70 65 | 72 61 74 6f 72 73 20 62 |xnum ope|rators b|
|000021a0| 61 73 65 64 20 6f 6e 0a | 74 68 65 20 66 69 72 73 |ased on.|the firs|
|000021b0| 74 20 61 72 67 75 6d 65 | 6e 74 20 6f 6e 6c 79 20 |t argume|nt only |
|000021c0| 64 75 65 20 74 6f 20 61 | 20 74 79 70 6f 20 69 6e |due to a| typo in|
|000021d0| 20 74 68 65 20 63 6f 64 | 65 2e 0a 0a 20 0a 0a 0a | the cod|e... ...|
|000021e0| 46 72 6f 6d 20 6a 6b 66 | 20 57 65 64 20 4a 75 6e |From jkf| Wed Jun|
|000021f0| 20 20 39 20 30 37 3a 32 | 35 3a 31 39 20 31 39 38 | 9 07:2|5:19 198|
|00002200| 32 0a 54 6f 3a 20 6c 6f | 63 61 6c 2d 6c 69 73 70 |2.To: lo|cal-lisp|
|00002210| 0a 53 75 62 6a 65 63 74 | 3a 20 6c 69 73 70 20 4f |.Subject|: lisp O|
|00002220| 70 75 73 20 33 38 2e 32 | 30 0a 53 74 61 74 75 73 |pus 38.2|0.Status|
|00002230| 3a 20 52 4f 0a 0a 20 20 | 54 68 65 72 65 20 69 73 |: RO.. |There is|
|00002240| 20 6e 6f 77 20 61 20 63 | 68 61 72 61 63 74 65 72 | now a c|haracter|
|00002250| 20 6d 61 63 72 6f 20 66 | 6f 72 20 72 65 61 64 69 | macro f|or readi|
|00002260| 6e 67 20 68 65 78 61 64 | 65 63 69 6d 61 6c 2e 0a |ng hexad|ecimal..|
|00002270| 20 20 23 78 31 66 20 3d | 20 23 58 31 66 20 3d 20 | #x1f =| #X1f = |
|00002280| 23 58 31 46 20 3d 20 33 | 31 0a 20 20 23 78 2d 31 |#X1F = 3|1. #x-1|
|00002290| 66 20 3d 20 2d 33 31 0a | 20 20 0a 0a 0a 46 72 6f |f = -31.| ...Fro|
|000022a0| 6d 20 6a 6b 66 20 54 68 | 75 20 4a 75 6e 20 31 37 |m jkf Th|u Jun 17|
|000022b0| 20 31 35 3a 34 32 3a 35 | 34 20 31 39 38 32 0a 54 | 15:42:5|4 1982.T|
|000022c0| 6f 3a 20 6c 6f 63 61 6c | 2d 6c 69 73 70 0a 53 75 |o: local|-lisp.Su|
|000022d0| 62 6a 65 63 74 3a 20 4c | 69 73 70 20 4f 70 75 73 |bject: L|isp Opus|
|000022e0| 20 33 38 2e 32 31 0a 53 | 74 61 74 75 73 3a 20 52 | 38.21.S|tatus: R|
|000022f0| 4f 0a 0a 20 20 48 61 73 | 20 74 77 6f 20 72 6f 75 |O.. Has| two rou|
|00002300| 74 69 6e 65 73 20 66 6f | 72 20 69 6e 74 65 72 66 |tines fo|r interf|
|00002310| 61 63 69 6e 67 20 77 69 | 74 68 20 74 65 72 6d 63 |acing wi|th termc|
|00002320| 61 70 2e 20 20 54 68 65 | 73 65 20 72 6f 75 74 69 |ap. The|se routi|
|00002330| 6e 65 73 20 77 65 72 65 | 0a 77 72 69 74 74 65 6e |nes were|.written|
|00002340| 20 62 79 20 6d 6f 72 72 | 69 73 20 64 6a 61 76 61 | by morr|is djava|
|00002350| 68 65 72 20 61 6e 64 20 | 61 72 65 20 6d 65 61 6e |her and |are mean|
|00002360| 74 20 74 6f 20 62 65 20 | 63 61 6c 6c 65 64 20 62 |t to be |called b|
|00002370| 79 20 6c 69 73 70 20 70 | 72 6f 67 72 61 6d 73 0a |y lisp p|rograms.|
|00002380| 77 68 69 63 68 20 68 61 | 76 65 20 79 65 74 20 74 |which ha|ve yet t|
|00002390| 6f 20 62 65 20 69 6e 73 | 74 61 6c 6c 65 64 2e 0a |o be ins|talled..|
|000023a0| 0a 0a 0a 0a 46 72 6f 6d | 20 6a 6b 66 20 20 54 75 |....From| jkf Tu|
|000023b0| 65 20 4a 75 6e 20 32 32 | 20 30 39 3a 30 39 3a 32 |e Jun 22| 09:09:2|
|000023c0| 35 20 31 39 38 32 0a 44 | 61 74 65 3a 20 32 32 2d |5 1982.D|ate: 22-|
|000023d0| 4a 75 6e 2d 38 32 20 30 | 39 3a 30 39 3a 31 33 2d |Jun-82 0|9:09:13-|
|000023e0| 50 44 54 20 28 54 75 65 | 29 0a 46 72 6f 6d 3a 20 |PDT (Tue|).From: |
|000023f0| 6a 6b 66 0a 53 75 62 6a | 65 63 74 3a 20 6f 70 75 |jkf.Subj|ect: opu|
|00002400| 73 20 33 38 2e 32 32 0a | 56 69 61 3a 20 75 63 62 |s 38.22.|Via: ucb|
|00002410| 6b 69 6d 2e 45 74 68 65 | 72 4e 65 74 20 28 56 33 |kim.Ethe|rNet (V3|
|00002420| 2e 31 32 30 20 5b 36 2f | 31 37 2f 38 32 5d 29 3b |.120 [6/|17/82]);|
|00002430| 20 32 32 2d 4a 75 6e 2d | 38 32 20 30 39 3a 30 39 | 22-Jun-|82 09:09|
|00002440| 3a 32 35 2d 50 44 54 20 | 28 54 75 65 29 0a 54 6f |:25-PDT |(Tue).To|
|00002450| 3a 20 6c 6f 63 61 6c 2d | 6c 69 73 70 0a 53 74 61 |: local-|lisp.Sta|
|00002460| 74 75 73 3a 20 52 4f 0a | 0a 20 20 73 65 74 71 20 |tus: RO.|. setq |
|00002470| 77 69 74 68 20 6e 6f 20 | 61 72 67 75 6d 65 6e 74 |with no |argument|
|00002480| 73 20 77 69 6c 6c 20 6e | 6f 77 20 72 65 74 75 72 |s will n|ow retur|
|00002490| 6e 20 6e 69 6c 2e 0a 20 | 20 0a 0a 0a 46 72 6f 6d |n nil.. | ...From|
|000024a0| 20 6a 6b 66 20 20 57 65 | 64 20 4a 75 6e 20 33 30 | jkf We|d Jun 30|
|000024b0| 20 31 39 3a 30 35 3a 35 | 34 20 31 39 38 32 0a 44 | 19:05:5|4 1982.D|
|000024c0| 61 74 65 3a 20 33 30 2d | 4a 75 6e 2d 38 32 20 31 |ate: 30-|Jun-82 1|
|000024d0| 39 3a 30 35 3a 33 32 2d | 50 44 54 20 28 57 65 64 |9:05:32-|PDT (Wed|
|000024e0| 29 0a 46 72 6f 6d 3a 20 | 6a 6b 66 20 28 4a 6f 68 |).From: |jkf (Joh|
|000024f0| 6e 20 46 6f 64 65 72 61 | 72 6f 29 0a 53 75 62 6a |n Fodera|ro).Subj|
|00002500| 65 63 74 3a 20 6c 69 73 | 7a 74 20 38 2e 30 39 0a |ect: lis|zt 8.09.|
|00002510| 56 69 61 3a 20 75 63 62 | 6b 69 6d 2e 45 74 68 65 |Via: ucb|kim.Ethe|
|00002520| 72 4e 65 74 20 28 56 33 | 2e 31 33 30 20 5b 36 2f |rNet (V3|.130 [6/|
|00002530| 32 36 2f 38 32 5d 29 3b | 20 33 30 2d 4a 75 6e 2d |26/82]);| 30-Jun-|
|00002540| 38 32 20 31 39 3a 30 35 | 3a 35 34 2d 50 44 54 20 |82 19:05|:54-PDT |
|00002550| 28 57 65 64 29 0a 54 6f | 3a 20 6c 6f 63 61 6c 2d |(Wed).To|: local-|
|00002560| 6c 69 73 70 0a 53 74 61 | 74 75 73 3a 20 52 4f 0a |lisp.Sta|tus: RO.|
|00002570| 0a 20 20 6c 69 73 7a 74 | 20 77 69 6c 6c 20 6e 6f |. liszt| will no|
|00002580| 77 20 6c 6f 6f 6b 20 69 | 6e 20 31 32 20 70 6c 61 |w look i|n 12 pla|
|00002590| 63 65 73 20 66 6f 72 20 | 61 6e 20 69 6e 69 74 20 |ces for |an init |
|000025a0| 66 69 6c 65 20 77 68 65 | 6e 20 69 74 20 73 74 61 |file whe|n it sta|
|000025b0| 72 74 73 20 75 70 2e 0a | 49 74 20 77 69 6c 6c 20 |rts up..|It will |
|000025c0| 6c 6f 61 64 20 69 6e 20 | 74 68 65 20 66 69 72 73 |load in |the firs|
|000025d0| 74 20 6f 6e 65 20 69 74 | 20 63 6f 6d 65 73 20 74 |t one it| comes t|
|000025e0| 6f 20 6f 6e 6c 79 2e 0a | 54 68 65 20 66 69 6c 65 |o only..|The file|
|000025f0| 73 20 69 74 20 6c 6f 6f | 6b 73 20 66 6f 72 20 61 |s it loo|ks for a|
|00002600| 72 65 3a 0a 0a 20 20 7b | 20 2e 2f 20 2c 20 24 48 |re:.. {| ./ , $H|
|00002610| 4f 4d 45 20 7d 20 7b 20 | 2e 6c 69 73 7a 74 72 63 |OME } { |.lisztrc|
|00002620| 20 2c 20 6c 69 73 7a 74 | 72 63 20 7d 20 7b 20 2e | , liszt|rc } { .|
|00002630| 6f 20 2c 20 2e 6c 20 2c | 20 7d 0a 0a 20 0a 0a 0a |o , .l ,| }.. ...|
|00002640| 46 72 6f 6d 20 6a 6b 66 | 20 20 54 75 65 20 53 65 |From jkf| Tue Se|
|00002650| 70 20 31 34 20 30 38 3a | 35 33 3a 30 33 20 31 39 |p 14 08:|53:03 19|
|00002660| 38 32 0a 44 61 74 65 3a | 20 31 34 2d 53 65 70 2d |82.Date:| 14-Sep-|
|00002670| 38 32 20 30 38 3a 35 32 | 3a 34 34 2d 50 44 54 20 |82 08:52|:44-PDT |
|00002680| 28 54 75 65 29 0a 46 72 | 6f 6d 3a 20 6a 6b 66 20 |(Tue).Fr|om: jkf |
|00002690| 28 4a 6f 68 6e 20 46 6f | 64 65 72 61 72 6f 29 0a |(John Fo|deraro).|
|000026a0| 53 75 62 6a 65 63 74 3a | 20 6c 69 73 70 20 6f 70 |Subject:| lisp op|
|000026b0| 75 73 20 33 38 2e 32 36 | 0a 4d 65 73 73 61 67 65 |us 38.26|.Message|
|000026c0| 2d 49 64 3a 20 3c 38 32 | 30 38 31 34 31 35 35 33 |-Id: <82|08141553|
|000026d0| 2e 39 39 39 39 40 55 43 | 42 4b 49 4d 2e 42 45 52 |.9999@UC|BKIM.BER|
|000026e0| 4b 45 4c 45 59 2e 41 52 | 50 41 3e 0a 52 65 63 65 |KELEY.AR|PA>.Rece|
|000026f0| 69 76 65 64 3a 20 62 79 | 20 55 43 42 4b 49 4d 2e |ived: by| UCBKIM.|
|00002700| 42 45 52 4b 45 4c 45 59 | 2e 41 52 50 41 20 28 33 |BERKELEY|.ARPA (3|
|00002710| 2e 31 39 33 20 5b 39 2f | 36 2f 38 32 5d 29 20 69 |.193 [9/|6/82]) i|
|00002720| 64 20 61 30 39 39 39 39 | 3b 0a 09 31 34 2d 53 65 |d a09999|;..14-Se|
|00002730| 70 2d 38 32 20 30 38 3a | 35 33 3a 30 33 2d 50 44 |p-82 08:|53:03-PD|
|00002740| 54 20 28 54 75 65 29 0a | 54 6f 3a 20 6c 6f 63 61 |T (Tue).|To: loca|
|00002750| 6c 2d 6c 69 73 70 0a 53 | 74 61 74 75 73 3a 20 52 |l-lisp.S|tatus: R|
|00002760| 4f 0a 0a 20 20 46 72 61 | 6e 7a 20 75 73 65 64 20 |O.. Fra|nz used |
|00002770| 74 6f 20 72 65 61 64 20 | 74 68 65 20 73 79 6d 62 |to read |the symb|
|00002780| 6f 6c 73 20 34 64 78 78 | 20 34 44 78 78 20 61 6e |ols 4dxx| 4Dxx an|
|00002790| 64 20 34 45 78 78 20 61 | 73 20 34 65 78 78 2e 20 |d 4Exx a|s 4exx. |
|000027a0| 20 4e 6f 77 20 69 74 20 | 72 65 61 64 73 0a 74 68 | Now it |reads.th|
|000027b0| 65 6d 20 28 61 6e 64 20 | 6f 74 68 65 72 20 73 69 |em (and |other si|
|000027c0| 6d 69 6c 61 72 20 73 79 | 6d 62 6f 6c 73 29 20 63 |milar sy|mbols) c|
|000027d0| 6f 72 72 65 63 74 6c 79 | 2e 0a 0a 0a 0a 0a 46 72 |orrectly|......Fr|
|000027e0| 6f 6d 20 6a 6b 66 20 20 | 53 61 74 20 4f 63 74 20 |om jkf |Sat Oct |
|000027f0| 20 32 20 31 35 3a 31 35 | 3a 34 38 20 31 39 38 32 | 2 15:15|:48 1982|
|00002800| 0a 44 61 74 65 3a 20 32 | 2d 4f 63 74 2d 38 32 20 |.Date: 2|-Oct-82 |
|00002810| 31 35 3a 31 35 3a 33 32 | 2d 50 44 54 20 28 53 61 |15:15:32|-PDT (Sa|
|00002820| 74 29 0a 46 72 6f 6d 3a | 20 6a 6b 66 20 28 4a 6f |t).From:| jkf (Jo|
|00002830| 68 6e 20 46 6f 64 65 72 | 61 72 6f 29 0a 53 75 62 |hn Foder|aro).Sub|
|00002840| 6a 65 63 74 3a 20 6c 69 | 73 70 20 6f 70 75 73 20 |ject: li|sp opus |
|00002850| 33 38 2e 32 37 0a 4d 65 | 73 73 61 67 65 2d 49 64 |38.27.Me|ssage-Id|
|00002860| 3a 20 3c 38 32 30 39 30 | 32 32 32 31 35 2e 31 30 |: <82090|22215.10|
|00002870| 37 39 36 40 55 43 42 4b | 49 4d 2e 42 45 52 4b 45 |796@UCBK|IM.BERKE|
|00002880| 4c 45 59 2e 41 52 50 41 | 3e 0a 52 65 63 65 69 76 |LEY.ARPA|>.Receiv|
|00002890| 65 64 3a 20 62 79 20 55 | 43 42 4b 49 4d 2e 42 45 |ed: by U|CBKIM.BE|
|000028a0| 52 4b 45 4c 45 59 2e 41 | 52 50 41 20 28 33 2e 31 |RKELEY.A|RPA (3.1|
|000028b0| 39 33 20 5b 39 2f 36 2f | 38 32 5d 29 20 69 64 20 |93 [9/6/|82]) id |
|000028c0| 61 31 30 37 39 36 3b 0a | 09 32 2d 4f 63 74 2d 38 |a10796;.|.2-Oct-8|
|000028d0| 32 20 31 35 3a 31 35 3a | 34 38 2d 50 44 54 20 28 |2 15:15:|48-PDT (|
|000028e0| 53 61 74 29 0a 54 6f 3a | 20 6c 6f 63 61 6c 2d 6c |Sat).To:| local-l|
|000028f0| 69 73 70 0a 53 74 61 74 | 75 73 3a 20 52 4f 0a 0a |isp.Stat|us: RO..|
|00002900| 20 20 49 66 20 79 6f 75 | 20 73 65 74 20 74 68 65 | If you| set the|
|00002910| 20 76 61 72 69 61 62 6c | 65 20 74 6f 70 2d 6c 65 | variabl|e top-le|
|00002920| 76 65 6c 2d 70 72 69 6e | 74 20 74 6f 20 61 20 6e |vel-prin|t to a n|
|00002930| 6f 6e 20 6e 69 6c 20 76 | 61 6c 75 65 2c 20 74 68 |on nil v|alue, th|
|00002940| 65 6e 20 74 68 61 74 0a | 76 61 6c 75 65 20 77 69 |en that.|value wi|
|00002950| 6c 6c 20 62 65 20 75 73 | 65 64 20 62 79 20 74 68 |ll be us|ed by th|
|00002960| 65 20 74 6f 70 2d 6c 65 | 76 65 6c 20 74 6f 20 70 |e top-le|vel to p|
|00002970| 72 69 6e 74 20 6f 75 74 | 20 74 68 65 20 72 65 73 |rint out| the res|
|00002980| 75 6c 74 20 6f 66 20 74 | 68 65 0a 65 76 61 6c 75 |ult of t|he.evalu|
|00002990| 61 74 69 6f 6e 2e 20 20 | 54 68 69 73 20 68 61 73 |ation. |This has|
|000029a0| 20 65 66 66 65 63 74 20 | 69 6e 20 62 72 65 61 6b | effect |in break|
|000029b0| 20 6c 6f 6f 70 73 20 74 | 6f 6f 2e 0a 20 20 46 6f | loops t|oo.. Fo|
|000029c0| 72 20 65 78 61 6d 70 6c | 65 2c 20 69 66 20 79 6f |r exampl|e, if yo|
|000029d0| 75 20 77 61 6e 74 20 74 | 68 65 20 70 72 65 74 74 |u want t|he prett|
|000029e0| 79 20 70 72 69 6e 74 65 | 72 20 74 6f 20 70 72 69 |y printe|r to pri|
|000029f0| 6e 74 20 6f 75 74 20 74 | 68 65 20 74 6f 70 20 6c |nt out t|he top l|
|00002a00| 65 76 65 6c 0a 76 61 6c | 75 65 73 2c 20 74 79 70 |evel.val|ues, typ|
|00002a10| 65 20 20 28 73 65 74 71 | 20 74 6f 70 2d 6c 65 76 |e (setq| top-lev|
|00002a20| 65 6c 2d 70 72 69 6e 74 | 20 27 70 70 2d 66 6f 72 |el-print| 'pp-for|
|00002a30| 6d 29 2e 0a 0a 0a 20 20 | 0a 0a 0a 46 72 6f 6d 20 |m).... |...From |
|00002a40| 6a 6b 66 20 20 53 75 6e | 20 4f 63 74 20 20 33 20 |jkf Sun| Oct 3 |
|00002a50| 31 39 3a 32 38 3a 34 35 | 20 31 39 38 32 0a 44 61 |19:28:45| 1982.Da|
|00002a60| 74 65 3a 20 33 2d 4f 63 | 74 2d 38 32 20 31 39 3a |te: 3-Oc|t-82 19:|
|00002a70| 32 38 3a 32 39 2d 50 44 | 54 20 28 53 75 6e 29 0a |28:29-PD|T (Sun).|
|00002a80| 46 72 6f 6d 3a 20 6a 6b | 66 20 28 4a 6f 68 6e 20 |From: jk|f (John |
|00002a90| 46 6f 64 65 72 61 72 6f | 29 0a 53 75 62 6a 65 63 |Foderaro|).Subjec|
|00002aa0| 74 3a 20 6c 69 73 70 20 | 6f 70 75 73 20 33 38 2e |t: lisp |opus 38.|
|00002ab0| 32 38 0a 4d 65 73 73 61 | 67 65 2d 49 64 3a 20 3c |28.Messa|ge-Id: <|
|00002ac0| 38 32 30 39 30 34 30 32 | 32 38 2e 39 38 32 39 40 |82090402|28.9829@|
|00002ad0| 55 43 42 4b 49 4d 2e 42 | 45 52 4b 45 4c 45 59 2e |UCBKIM.B|ERKELEY.|
|00002ae0| 41 52 50 41 3e 0a 52 65 | 63 65 69 76 65 64 3a 20 |ARPA>.Re|ceived: |
|00002af0| 62 79 20 55 43 42 4b 49 | 4d 2e 42 45 52 4b 45 4c |by UCBKI|M.BERKEL|
|00002b00| 45 59 2e 41 52 50 41 20 | 28 33 2e 31 39 33 20 5b |EY.ARPA |(3.193 [|
|00002b10| 39 2f 36 2f 38 32 5d 29 | 20 69 64 20 61 30 39 38 |9/6/82])| id a098|
|00002b20| 32 39 3b 0a 09 33 2d 4f | 63 74 2d 38 32 20 31 39 |29;..3-O|ct-82 19|
|00002b30| 3a 32 38 3a 34 35 2d 50 | 44 54 20 28 53 75 6e 29 |:28:45-P|DT (Sun)|
|00002b40| 0a 54 6f 3a 20 6c 6f 63 | 61 6c 2d 6c 69 73 70 0a |.To: loc|al-lisp.|
|00002b50| 53 74 61 74 75 73 3a 20 | 52 4f 0a 0a 20 41 20 6d |Status: |RO.. A m|
|00002b60| 6f 64 69 66 69 63 61 74 | 69 6f 6e 20 68 61 73 20 |odificat|ion has |
|00002b70| 62 65 65 6e 20 6d 61 64 | 65 20 74 6f 20 74 68 65 |been mad|e to the|
|00002b80| 20 6c 6f 61 64 20 66 75 | 6e 63 74 69 6f 6e 2e 0a | load fu|nction..|
|00002b90| 20 20 20 4e 6f 72 6d 61 | 6c 6c 79 20 69 66 20 79 | Norma|lly if y|
|00002ba0| 6f 75 20 74 79 70 65 20 | 28 6c 6f 61 64 20 27 78 |ou type |(load 'x|
|00002bb0| 29 2c 20 74 68 65 20 6c | 6f 61 64 20 66 75 6e 63 |), the l|oad func|
|00002bc0| 74 69 6f 6e 20 77 69 6c | 6c 20 66 69 72 73 74 20 |tion wil|l first |
|00002bd0| 74 72 79 20 74 6f 20 66 | 61 73 6c 0a 74 68 65 20 |try to f|asl.the |
|00002be0| 66 69 6c 65 20 78 2e 6f | 20 61 6e 64 20 66 61 69 |file x.o| and fai|
|00002bf0| 6c 69 6e 67 20 74 68 61 | 74 20 69 74 20 77 69 6c |ling tha|t it wil|
|00002c00| 6c 20 74 72 79 20 74 6f | 20 6c 6f 61 64 20 78 2e |l try to| load x.|
|00002c10| 6c 0a 20 20 20 49 66 20 | 79 6f 75 20 28 73 65 74 |l. If |you (set|
|00002c20| 71 20 6c 6f 61 64 2d 6d | 6f 73 74 2d 72 65 63 65 |q load-m|ost-rece|
|00002c30| 6e 74 20 74 29 2c 20 20 | 61 6e 64 20 69 66 20 78 |nt t), |and if x|
|00002c40| 2e 6c 20 61 6e 64 20 78 | 2e 6f 20 62 6f 74 68 20 |.l and x|.o both |
|00002c50| 65 78 69 73 74 2c 20 74 | 68 65 6e 0a 6c 6f 61 64 |exist, t|hen.load|
|00002c60| 20 77 69 6c 6c 20 66 61 | 73 6c 20 6f 72 20 6c 6f | will fa|sl or lo|
|00002c70| 61 64 20 74 68 65 20 6d | 6f 73 74 20 72 65 63 65 |ad the m|ost rece|
|00002c80| 6e 74 6c 79 20 6d 6f 64 | 69 66 69 65 64 20 66 69 |ntly mod|ified fi|
|00002c90| 6c 65 2e 0a 20 20 20 54 | 68 65 20 6c 6f 61 64 2d |le.. T|he load-|
|00002ca0| 6d 6f 73 74 2d 72 65 63 | 65 6e 74 20 66 6c 61 67 |most-rec|ent flag|
|00002cb0| 20 6f 6e 6c 79 20 68 61 | 73 20 61 6e 20 65 66 66 | only ha|s an eff|
|00002cc0| 65 63 74 20 69 66 20 79 | 6f 75 20 74 79 70 65 20 |ect if y|ou type |
|00002cd0| 74 68 65 20 66 69 6c 65 | 6e 61 6d 65 0a 77 69 74 |the file|name.wit|
|00002ce0| 68 6f 75 74 20 61 20 74 | 72 61 69 6c 69 6e 67 20 |hout a t|railing |
|00002cf0| 2e 6c 20 6f 72 20 2e 6f | 2e 0a 0a 0a 0a 0a 46 72 |.l or .o|......Fr|
|00002d00| 6f 6d 20 6a 6b 66 20 20 | 54 75 65 20 4f 63 74 20 |om jkf |Tue Oct |
|00002d10| 20 35 20 32 31 3a 30 31 | 3a 35 35 20 31 39 38 32 | 5 21:01|:55 1982|
|00002d20| 0a 44 61 74 65 3a 20 35 | 2d 4f 63 74 2d 38 32 20 |.Date: 5|-Oct-82 |
|00002d30| 32 31 3a 30 31 3a 33 33 | 2d 50 44 54 20 28 54 75 |21:01:33|-PDT (Tu|
|00002d40| 65 29 0a 46 72 6f 6d 3a | 20 6a 6b 66 20 28 4a 6f |e).From:| jkf (Jo|
|00002d50| 68 6e 20 46 6f 64 65 72 | 61 72 6f 29 0a 53 75 62 |hn Foder|aro).Sub|
|00002d60| 6a 65 63 74 3a 20 6c 69 | 73 7a 74 20 38 2e 31 32 |ject: li|szt 8.12|
|00002d70| 2c 20 6c 69 73 70 20 33 | 38 2e 32 39 0a 4d 65 73 |, lisp 3|8.29.Mes|
|00002d80| 73 61 67 65 2d 49 64 3a | 20 3c 38 32 30 39 30 36 |sage-Id:| <820906|
|00002d90| 30 34 30 31 2e 36 33 35 | 38 40 55 43 42 4b 49 4d |0401.635|8@UCBKIM|
|00002da0| 2e 42 45 52 4b 45 4c 45 | 59 2e 41 52 50 41 3e 0a |.BERKELE|Y.ARPA>.|
|00002db0| 52 65 63 65 69 76 65 64 | 3a 20 62 79 20 55 43 42 |Received|: by UCB|
|00002dc0| 4b 49 4d 2e 42 45 52 4b | 45 4c 45 59 2e 41 52 50 |KIM.BERK|ELEY.ARP|
|00002dd0| 41 20 28 33 2e 31 39 33 | 20 5b 39 2f 36 2f 38 32 |A (3.193| [9/6/82|
|00002de0| 5d 29 20 69 64 20 61 30 | 36 33 35 38 3b 0a 09 35 |]) id a0|6358;..5|
|00002df0| 2d 4f 63 74 2d 38 32 20 | 32 31 3a 30 31 3a 35 35 |-Oct-82 |21:01:55|
|00002e00| 2d 50 44 54 20 28 54 75 | 65 29 0a 54 6f 3a 20 6c |-PDT (Tu|e).To: l|
|00002e10| 6f 63 61 6c 2d 6c 69 73 | 70 0a 53 74 61 74 75 73 |ocal-lis|p.Status|
|00002e20| 3a 20 52 4f 0a 0a 20 20 | 4c 69 73 7a 74 20 77 69 |: RO.. |Liszt wi|
|00002e30| 6c 6c 20 6e 6f 77 20 63 | 68 65 63 6b 20 74 68 61 |ll now c|heck tha|
|00002e40| 74 20 79 6f 75 20 61 72 | 65 20 70 61 73 73 69 6e |t you ar|e passin|
|00002e50| 67 20 74 68 65 20 63 6f | 72 72 65 63 74 20 6e 75 |g the co|rrect nu|
|00002e60| 6d 62 65 72 20 6f 66 20 | 61 72 67 75 6d 65 6e 74 |mber of |argument|
|00002e70| 73 0a 74 6f 20 66 75 6e | 63 74 69 6f 6e 73 2e 20 |s.to fun|ctions. |
|00002e80| 20 20 41 73 20 61 20 72 | 65 73 75 6c 74 2c 20 73 | As a r|esult, s|
|00002e90| 6f 6d 65 20 66 69 6c 65 | 73 20 77 68 69 63 68 20 |ome file|s which |
|00002ea0| 68 61 76 65 20 63 6f 6d | 70 69 6c 65 64 20 77 69 |have com|piled wi|
|00002eb0| 74 68 6f 75 74 0a 63 6f | 6d 70 6c 61 69 6e 74 20 |thout.co|mplaint |
|00002ec0| 69 6e 20 74 68 65 20 70 | 61 73 74 20 6d 61 79 20 |in the p|ast may |
|00002ed0| 63 6f 6d 70 69 6c 65 20 | 6e 6f 77 20 77 69 74 68 |compile |now with|
|00002ee0| 20 77 61 72 6e 69 6e 67 | 73 20 6f 72 20 65 72 72 | warning|s or err|
|00002ef0| 6f 72 73 2e 20 20 49 6e | 20 74 68 69 73 0a 6e 6f |ors. In| this.no|
|00002f00| 74 65 2c 20 49 27 6c 6c | 20 65 78 70 6c 61 69 6e |te, I'll| explain|
|00002f10| 20 77 68 61 74 20 74 68 | 65 20 63 6f 6d 70 69 6c | what th|e compil|
|00002f20| 65 72 20 6b 6e 6f 77 73 | 2c 20 77 68 61 74 20 69 |er knows|, what i|
|00002f30| 74 20 6c 6f 6f 6b 73 20 | 66 6f 72 20 69 6e 20 79 |t looks |for in y|
|00002f40| 6f 75 72 0a 70 72 6f 67 | 72 61 6d 2c 20 61 6e 64 |our.prog|ram, and|
|00002f50| 20 68 6f 77 20 79 6f 75 | 20 63 61 6e 20 68 65 6c | how you| can hel|
|00002f60| 70 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 20 75 |p the co|mpiler u|
|00002f70| 6e 64 65 72 73 74 61 6e | 64 20 79 6f 75 72 20 70 |nderstan|d your p|
|00002f80| 72 6f 67 72 61 6d 2e 0a | 0a 20 20 46 6f 72 20 65 |rogram..|. For e|
|00002f90| 61 63 68 20 66 75 6e 63 | 74 69 6f 6e 2c 20 6c 69 |ach func|tion, li|
|00002fa0| 73 7a 74 20 65 69 74 68 | 65 72 20 6b 6e 6f 77 73 |szt eith|er knows|
|00002fb0| 20 6e 6f 74 68 69 6e 67 | 20 61 62 6f 75 74 20 74 | nothing| about t|
|00002fc0| 68 65 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |he the n|umber of|
|00002fd0| 0a 61 72 67 75 6d 65 6e | 74 73 20 74 6f 20 61 20 |.argumen|ts to a |
|00002fe0| 66 75 6e 63 74 69 6f 6e | 2c 20 6f 72 20 69 74 20 |function|, or it |
|00002ff0| 6b 6e 6f 77 73 20 74 68 | 65 20 6d 69 6e 69 6d 75 |knows th|e minimu|
|00003000| 6d 20 6e 75 6d 62 65 72 | 20 6f 66 20 61 72 67 75 |m number| of argu|
|00003010| 6d 65 6e 74 73 2c 20 6f | 72 20 74 68 65 0a 6d 61 |ments, o|r the.ma|
|00003020| 78 69 6d 75 6d 20 6e 75 | 6d 62 65 72 20 6f 66 20 |ximum nu|mber of |
|00003030| 61 72 67 75 6d 65 6e 74 | 73 2c 20 6f 72 20 62 6f |argument|s, or bo|
|00003040| 74 68 20 74 68 65 20 6d | 69 6e 69 6d 75 6d 20 61 |th the m|inimum a|
|00003050| 6e 64 20 6d 61 78 69 6d | 75 6d 20 6e 75 6d 62 65 |nd maxim|um numbe|
|00003060| 72 20 6f 66 0a 61 72 67 | 75 6d 65 6e 74 73 2e 20 |r of.arg|uments. |
|00003070| 20 20 54 68 69 73 20 69 | 6e 66 6f 72 6d 61 74 69 | This i|nformati|
|00003080| 6f 6e 20 63 6f 6d 65 73 | 20 61 62 6f 75 74 20 69 |on comes| about i|
|00003090| 6e 20 6f 6e 65 20 6f 66 | 20 74 68 72 65 65 20 77 |n one of| three w|
|000030a0| 61 79 73 3a 0a 20 20 31 | 29 20 69 74 20 69 73 20 |ays:. 1|) it is |
|000030b0| 6b 6e 6f 77 6e 20 77 68 | 65 6e 20 6c 69 73 7a 74 |known wh|en liszt|
|000030c0| 20 73 74 61 72 74 73 20 | 28 62 79 20 76 69 72 74 | starts |(by virt|
|000030d0| 75 65 20 6f 66 20 61 20 | 76 61 6c 75 65 20 73 74 |ue of a |value st|
|000030e0| 6f 72 65 64 20 75 6e 64 | 65 72 20 74 68 65 0a 20 |ored und|er the. |
|000030f0| 20 20 20 20 66 63 6e 2d | 69 6e 66 6f 20 69 6e 64 | fcn-|info ind|
|00003100| 69 63 61 74 6f 72 20 6f | 6e 20 61 20 66 75 6e 63 |icator o|n a func|
|00003110| 74 69 6f 6e 27 73 20 70 | 72 6f 70 65 72 74 79 20 |tion's p|roperty |
|00003120| 6c 69 73 74 29 0a 20 20 | 32 29 20 69 74 20 69 73 |list). |2) it is|
|00003130| 20 64 65 63 6c 61 72 65 | 64 20 62 79 20 74 68 65 | declare|d by the|
|00003140| 20 75 73 65 72 2c 20 65 | 69 74 68 65 72 20 76 69 | user, e|ither vi|
|00003150| 61 20 28 64 65 63 6c 61 | 72 65 20 28 2a 61 72 67 |a (decla|re (*arg|
|00003160| 69 6e 66 6f 20 2e 2e 2e | 29 29 0a 20 20 20 20 20 |info ...|)). |
|00003170| 6f 72 20 28 64 65 63 6c | 61 72 65 20 28 2a 61 72 |or (decl|are (*ar|
|00003180| 67 73 20 2e 2e 2e 29 29 | 20 5b 73 65 65 20 62 65 |gs ...))| [see be|
|00003190| 6c 6f 77 5d 0a 20 20 33 | 29 20 69 74 20 69 73 20 |low]. 3|) it is |
|000031a0| 64 65 74 65 72 6d 69 6e | 65 64 20 77 68 65 6e 20 |determin|ed when |
|000031b0| 61 20 28 6c 61 6d 62 64 | 61 29 20 66 75 6e 63 74 |a (lambd|a) funct|
|000031c0| 69 6f 6e 20 69 73 20 63 | 6f 6d 70 69 6c 65 64 2e |ion is c|ompiled.|
|000031d0| 0a 20 20 20 20 20 57 68 | 65 6e 20 61 20 6c 61 6d |. Wh|en a lam|
|000031e0| 62 64 61 20 69 73 20 63 | 6f 6d 70 69 6c 65 64 2c |bda is c|ompiled,|
|000031f0| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 20 63 61 | the com|piler ca|
|00003200| 6e 20 65 61 73 69 6c 79 | 20 66 69 67 75 72 65 20 |n easily| figure |
|00003210| 6f 75 74 20 74 68 65 0a | 20 20 20 20 20 20 20 6d |out the.| m|
|00003220| 69 6e 69 6d 75 6d 20 61 | 6e 64 20 6d 61 78 69 6d |inimum a|nd maxim|
|00003230| 75 6d 20 6e 75 6d 62 65 | 72 20 6f 66 20 61 72 67 |um numbe|r of arg|
|00003240| 75 6d 65 6e 74 73 2e 0a | 20 20 20 20 20 57 68 65 |uments..| Whe|
|00003250| 6e 20 61 6e 20 6e 6c 61 | 6d 62 64 61 20 6f 72 20 |n an nla|mbda or |
|00003260| 6c 65 78 70 72 20 66 75 | 6e 63 74 69 6f 6e 20 69 |lexpr fu|nction i|
|00003270| 73 20 63 6f 6d 70 69 6c | 65 64 2c 20 74 68 65 20 |s compil|ed, the |
|00003280| 63 6f 6d 70 69 6c 65 72 | 20 64 6f 65 73 6e 27 74 |compiler| doesn't|
|00003290| 0a 20 20 20 20 20 6d 61 | 6b 65 20 61 20 67 75 65 |. ma|ke a gue|
|000032a0| 73 73 20 61 73 20 74 6f | 20 68 6f 77 20 6d 61 6e |ss as to| how man|
|000032b0| 79 20 61 72 67 75 6d 65 | 6e 74 73 20 61 72 65 20 |y argume|nts are |
|000032c0| 65 78 70 65 63 74 65 64 | 2e 20 20 54 68 65 20 75 |expected|. The u|
|000032d0| 73 65 72 20 73 68 6f 75 | 6c 64 0a 20 20 20 20 20 |ser shou|ld. |
|000032e0| 75 73 65 20 74 68 65 20 | 28 64 65 63 6c 61 72 65 |use the |(declare|
|000032f0| 20 28 2a 61 72 67 73 20 | 2e 2e 2e 29 29 20 66 6f | (*args |...)) fo|
|00003300| 72 6d 20 74 6f 20 74 65 | 6c 6c 20 74 68 65 20 63 |rm to te|ll the c|
|00003310| 6f 6d 70 69 6c 65 72 20 | 68 6f 77 20 6d 61 6e 79 |ompiler |how many|
|00003320| 0a 20 20 20 20 20 61 72 | 67 75 6d 65 6e 74 73 20 |. ar|guments |
|00003330| 61 72 65 20 65 78 70 65 | 63 74 65 64 2e 0a 20 20 |are expe|cted.. |
|00003340| 20 20 20 46 6f 72 20 6c | 65 78 70 72 27 73 20 67 | For l|expr's g|
|00003350| 65 6e 65 72 61 74 65 64 | 20 76 69 61 20 27 64 65 |enerated| via 'de|
|00003360| 66 75 6e 27 20 75 73 69 | 6e 67 20 26 6f 70 74 69 |fun' usi|ng &opti|
|00003370| 6f 6e 61 6c 20 61 6e 64 | 20 26 72 65 73 74 20 6b |onal and| &rest k|
|00003380| 65 79 77 6f 72 64 73 2c | 0a 20 20 20 20 20 74 68 |eywords,|. th|
|00003390| 65 20 63 6f 72 72 65 63 | 74 20 64 65 63 6c 61 72 |e correc|t declar|
|000033a0| 61 74 69 6f 6e 20 69 73 | 20 67 65 6e 65 72 61 74 |ation is| generat|
|000033b0| 65 64 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ed autom|atically|
|000033c0| 2e 0a 4f 6e 63 65 20 6c | 69 73 7a 74 20 64 65 74 |..Once l|iszt det|
|000033d0| 65 72 6d 69 6e 65 73 20 | 74 68 65 20 6e 75 6d 62 |ermines |the numb|
|000033e0| 65 72 20 6f 66 20 61 72 | 67 75 6d 65 6e 74 73 20 |er of ar|guments |
|000033f0| 74 6f 20 61 20 66 75 6e | 63 74 69 6f 6e 2c 20 69 |to a fun|ction, i|
|00003400| 74 20 75 73 65 73 20 74 | 68 61 74 0a 69 6e 66 6f |t uses t|hat.info|
|00003410| 72 6d 61 74 69 6f 6e 20 | 74 6f 20 63 68 65 63 6b |rmation |to check|
|00003420| 20 74 68 61 74 20 74 68 | 65 20 66 75 6e 63 74 69 | that th|e functi|
|00003430| 6f 6e 20 69 73 20 63 61 | 6c 6c 65 64 20 77 69 74 |on is ca|lled wit|
|00003440| 68 20 74 68 65 20 63 6f | 72 72 65 63 74 20 6e 75 |h the co|rrect nu|
|00003450| 6d 62 65 72 20 6f 66 0a | 61 72 67 75 6d 65 6e 74 |mber of.|argument|
|00003460| 73 2e 20 20 49 74 20 64 | 6f 65 73 20 6e 6f 74 20 |s. It d|oes not |
|00003470| 63 68 65 63 6b 20 63 61 | 6c 6c 73 20 74 6f 20 74 |check ca|lls to t|
|00003480| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 74 68 61 74 |he funct|ion that|
|00003490| 20 6f 63 63 75 72 65 64 | 20 62 65 66 6f 72 65 20 | occured| before |
|000034a0| 69 74 0a 64 65 74 65 72 | 6d 69 6e 65 64 20 74 68 |it.deter|mined th|
|000034b0| 65 20 63 6f 72 72 65 63 | 74 20 6e 75 6d 62 65 72 |e correc|t number|
|000034c0| 20 6f 66 20 61 72 67 75 | 6d 65 6e 74 73 2e 20 20 | of argu|ments. |
|000034d0| 5b 54 68 69 73 20 62 61 | 63 6b 77 61 72 64 20 63 |[This ba|ckward c|
|000034e0| 68 65 63 6b 69 6e 67 20 | 77 69 6c 6c 0a 62 65 20 |hecking |will.be |
|000034f0| 61 64 64 65 64 20 73 6f | 6d 65 74 69 6d 65 20 69 |added so|metime i|
|00003500| 6e 20 74 68 65 20 66 75 | 74 75 72 65 2e 5d 0a 0a |n the fu|ture.]..|
|00003510| 20 20 49 66 20 6c 69 73 | 7a 74 20 66 69 6e 64 73 | If lis|zt finds|
|00003520| 20 74 68 61 74 20 61 20 | 66 75 6e 63 74 69 6f 6e | that a |function|
|00003530| 20 69 73 20 63 61 6c 6c | 65 64 20 77 69 74 68 20 | is call|ed with |
|00003540| 74 68 65 20 77 72 6f 6e | 67 20 6e 75 6d 62 65 72 |the wron|g number|
|00003550| 20 6f 66 0a 61 72 67 75 | 6d 65 6e 74 73 2c 20 69 | of.argu|ments, i|
|00003560| 74 20 70 72 69 6e 74 73 | 20 61 6e 20 69 6e 66 6f |t prints| an info|
|00003570| 72 6d 61 74 69 76 65 20 | 6d 65 73 73 61 67 65 2e |rmative |message.|
|00003580| 20 20 54 68 61 74 20 6d | 65 73 73 61 67 65 20 69 | That m|essage i|
|00003590| 73 20 61 20 65 72 72 6f | 72 20 69 66 20 74 68 65 |s a erro|r if the|
|000035a0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 65 69 6e 67 20 |.functio|n being |
|000035b0| 63 61 6c 6c 65 64 20 69 | 73 20 6f 6e 65 20 77 68 |called i|s one wh|
|000035c0| 69 63 68 20 69 73 20 6f | 70 65 6e 20 63 6f 64 65 |ich is o|pen code|
|000035d0| 64 20 62 79 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 |d by the| compile|
|000035e0| 72 2e 20 54 68 65 0a 6d | 65 73 73 61 67 65 20 69 |r. The.m|essage i|
|000035f0| 73 20 61 20 77 61 72 6e | 69 6e 67 20 6f 74 68 65 |s a warn|ing othe|
|00003600| 72 77 69 73 65 2e 20 20 | 54 68 65 20 72 65 61 73 |rwise. |The reas|
|00003610| 6f 6e 20 66 6f 72 20 74 | 68 65 20 64 69 73 74 69 |on for t|he disti|
|00003620| 6e 63 74 69 6f 6e 20 69 | 73 20 74 68 61 74 0a 79 |nction i|s that.y|
|00003630| 6f 75 20 61 72 65 20 66 | 72 65 65 20 74 6f 20 72 |ou are f|ree to r|
|00003640| 65 64 65 66 69 6e 65 20 | 66 75 6e 63 74 69 6f 6e |edefine |function|
|00003650| 73 20 6e 6f 74 20 6f 70 | 65 6e 20 63 6f 64 65 64 |s not op|en coded|
|00003660| 20 62 79 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 | by the |compiler|
|00003670| 2e 20 49 66 20 74 68 65 | 0a 6e 75 6d 62 65 72 20 |. If the|.number |
|00003680| 6f 66 20 61 72 67 75 6d | 65 6e 74 73 20 69 73 20 |of argum|ents is |
|00003690| 6e 6f 74 20 63 6f 72 72 | 65 63 74 2c 20 69 74 20 |not corr|ect, it |
|000036a0| 6d 61 79 20 6a 75 73 74 | 20 62 65 20 74 68 61 74 |may just| be that|
|000036b0| 20 74 68 65 20 63 6f 6d | 70 69 6c 65 72 27 73 0a | the com|piler's.|
|000036c0| 64 61 74 61 62 61 73 65 | 20 61 6e 64 20 79 6f 75 |database| and you|
|000036d0| 72 20 63 6f 64 65 20 61 | 72 65 20 72 65 66 65 72 |r code a|re refer|
|000036e0| 69 6e 67 20 74 6f 20 74 | 77 6f 20 64 69 66 66 65 |ing to t|wo diffe|
|000036f0| 72 65 6e 74 20 66 75 6e | 63 74 69 6f 6e 73 2e 0a |rent fun|ctions..|
|00003700| 49 66 20 79 6f 75 20 72 | 65 64 65 66 69 6e 65 20 |If you r|edefine |
|00003710| 73 79 73 74 65 6d 20 66 | 75 6e 63 74 69 6f 6e 73 |system f|unctions|
|00003720| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 75 73 65 |, you sh|ould use|
|00003730| 20 74 68 65 0a 28 64 65 | 63 6c 61 72 65 20 28 2a | the.(de|clare (*|
|00003740| 61 72 67 69 6e 66 6f 20 | 2e 2e 2e 29 29 20 66 6f |arginfo |...)) fo|
|00003750| 72 6d 20 74 6f 20 6c 65 | 74 20 74 68 65 20 63 6f |rm to le|t the co|
|00003760| 6d 70 69 6c 65 72 20 6b | 6e 6f 77 20 61 62 6f 75 |mpiler k|now abou|
|00003770| 74 20 74 68 65 20 6e 75 | 6d 62 65 72 0a 6f 66 20 |t the nu|mber.of |
|00003780| 61 72 67 75 6d 65 6e 74 | 73 20 65 78 70 65 63 74 |argument|s expect|
|00003790| 65 64 20 62 79 20 79 6f | 75 72 20 76 65 72 73 69 |ed by yo|ur versi|
|000037a0| 6f 6e 20 6f 66 20 74 68 | 65 20 66 75 6e 63 74 69 |on of th|e functi|
|000037b0| 6f 6e 73 2e 0a 0a 20 20 | 59 6f 75 20 63 61 6e 20 |ons... |You can |
|000037c0| 64 65 63 6c 61 72 65 20 | 74 68 65 20 6e 75 6d 62 |declare |the numb|
|000037d0| 65 72 20 6f 66 20 61 72 | 67 75 6d 65 6e 74 73 20 |er of ar|guments |
|000037e0| 74 6f 20 66 75 6e 63 74 | 69 6f 6e 73 20 75 73 69 |to funct|ions usi|
|000037f0| 6e 67 20 74 68 69 73 20 | 66 6f 72 6d 0a 0a 28 64 |ng this |form..(d|
|00003800| 65 63 6c 61 72 65 20 28 | 2a 61 72 67 69 6e 66 6f |eclare (|*arginfo|
|00003810| 20 28 66 63 6e 6e 61 6d | 65 31 20 6d 69 6e 31 20 | (fcnnam|e1 min1 |
|00003820| 6d 61 78 31 29 20 28 66 | 63 6e 6e 61 6d 65 32 20 |max1) (f|cnname2 |
|00003830| 6d 69 6e 32 20 6d 61 78 | 32 29 20 2e 2e 2e 29 29 |min2 max|2) ...))|
|00003840| 0a 20 20 77 68 65 72 65 | 20 65 61 63 68 20 6d 69 |. where| each mi|
|00003850| 6e 20 6f 72 20 6d 61 78 | 20 69 73 20 65 69 74 68 |n or max| is eith|
|00003860| 65 72 20 61 20 66 69 78 | 6e 75 6d 20 6f 72 20 6e |er a fix|num or n|
|00003870| 69 6c 20 28 6d 65 61 6e | 69 6e 67 20 22 49 20 64 |il (mean|ing "I d|
|00003880| 6f 6e 27 74 20 6b 6e 6f | 77 22 29 0a 20 20 0a 66 |on't kno|w"). .f|
|00003890| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 68 65 72 65 |or examp|le, here|
|000038a0| 20 61 72 65 20 73 6f 6d | 65 20 60 63 6f 72 72 65 | are som|e `corre|
|000038b0| 63 74 27 20 64 65 63 6c | 61 72 61 74 69 6f 6e 73 |ct' decl|arations|
|000038c0| 3a 0a 0a 28 64 65 63 6c | 61 72 65 20 28 2a 61 72 |:..(decl|are (*ar|
|000038d0| 67 69 6e 66 6f 20 28 72 | 65 61 64 20 30 20 32 29 |ginfo (r|ead 0 2)|
|000038e0| 20 28 63 6f 6e 73 20 32 | 20 32 29 20 28 62 6f 6f | (cons 2| 2) (boo|
|000038f0| 6c 65 20 33 20 6e 69 6c | 29 20 28 61 70 70 65 6e |le 3 nil|) (appen|
|00003900| 64 20 6e 69 6c 20 6e 69 | 6c 29 29 29 0a 20 20 0a |d nil ni|l))). .|
|00003910| 20 65 78 70 6c 61 6e 61 | 74 69 6f 6e 3a 0a 20 20 | explana|tion:. |
|00003920| 20 28 72 65 61 64 20 30 | 20 32 29 20 6d 65 61 6e | (read 0| 2) mean|
|00003930| 73 20 74 68 61 74 20 74 | 68 65 20 66 75 6e 63 74 |s that t|he funct|
|00003940| 69 6f 6e 20 72 65 61 64 | 20 65 78 70 65 63 74 73 |ion read| expects|
|00003950| 20 62 65 74 77 65 65 6e | 20 30 20 61 6e 64 20 32 | between| 0 and 2|
|00003960| 0a 20 20 20 09 61 72 67 | 75 6d 65 6e 74 73 20 28 |. .arg|uments (|
|00003970| 69 6e 63 6c 75 73 69 76 | 65 29 2e 0a 20 20 20 28 |inclusiv|e).. (|
|00003980| 63 6f 6e 73 20 32 20 32 | 29 20 6d 65 61 6e 73 20 |cons 2 2|) means |
|00003990| 74 68 61 74 20 63 6f 6e | 73 20 65 78 70 65 63 74 |that con|s expect|
|000039a0| 73 20 32 20 61 72 67 75 | 6d 65 6e 74 73 2e 0a 20 |s 2 argu|ments.. |
|000039b0| 20 20 28 62 6f 6f 6c 65 | 20 33 20 6e 69 6c 29 20 | (boole| 3 nil) |
|000039c0| 6d 65 61 6e 73 20 74 68 | 61 74 20 62 6f 6f 6c 65 |means th|at boole|
|000039d0| 20 65 78 70 65 63 74 73 | 20 61 74 20 6c 65 61 73 | expects| at leas|
|000039e0| 74 20 33 20 61 72 67 75 | 6d 65 6e 74 73 2e 0a 20 |t 3 argu|ments.. |
|000039f0| 20 20 28 61 70 70 65 6e | 64 20 6e 69 6c 20 6e 69 | (appen|d nil ni|
|00003a00| 6c 29 20 6d 65 61 6e 73 | 20 74 68 61 74 20 61 70 |l) means| that ap|
|00003a10| 70 65 6e 64 20 65 78 70 | 65 63 74 73 20 61 6e 79 |pend exp|ects any|
|00003a20| 20 6e 75 6d 62 65 72 20 | 6f 66 20 61 72 67 75 6d | number |of argum|
|00003a30| 65 6e 74 73 2c 0a 20 20 | 20 20 20 20 74 68 69 73 |ents,. | this|
|00003a40| 20 69 73 20 65 71 75 69 | 76 61 6c 65 6e 74 20 74 | is equi|valent t|
|00003a50| 6f 20 28 61 70 70 65 6e | 64 20 30 20 6e 69 6c 29 |o (appen|d 0 nil)|
|00003a60| 2e 0a 20 20 20 20 20 20 | 0a 0a 54 68 65 20 2a 61 |.. |..The *a|
|00003a70| 72 67 69 6e 66 6f 20 64 | 65 63 6c 61 72 61 74 69 |rginfo d|eclarati|
|00003a80| 6f 6e 20 69 73 20 75 73 | 75 61 6c 6c 79 20 6d 61 |on is us|ually ma|
|00003a90| 64 65 20 61 74 20 74 68 | 65 20 74 6f 70 20 6c 65 |de at th|e top le|
|00003aa0| 76 65 6c 20 6f 66 20 61 | 20 66 69 6c 65 2e 0a 0a |vel of a| file...|
|00003ab0| 54 6f 20 64 65 63 6c 61 | 72 65 20 74 68 65 20 61 |To decla|re the a|
|00003ac0| 72 67 75 6d 65 6e 74 20 | 63 68 61 72 61 63 74 65 |rgument |characte|
|00003ad0| 72 69 73 74 69 63 73 20 | 6f 66 20 74 68 65 20 63 |ristics |of the c|
|00003ae0| 75 72 72 65 6e 74 20 66 | 75 6e 63 74 69 6f 6e 20 |urrent f|unction |
|00003af0| 62 65 69 6e 67 0a 63 6f | 6d 70 69 6c 65 64 20 75 |being.co|mpiled u|
|00003b00| 73 65 20 74 68 65 20 27 | 2a 61 72 67 73 27 20 64 |se the '|*args' d|
|00003b10| 65 63 6c 61 72 61 74 69 | 6f 6e 2e 20 49 74 20 6c |eclarati|on. It l|
|00003b20| 6f 6f 6b 73 20 73 6f 6d | 65 77 68 61 74 20 6c 69 |ooks som|ewhat li|
|00003b30| 6b 65 20 74 68 65 0a 2a | 61 72 67 69 6e 66 6f 20 |ke the.*|arginfo |
|00003b40| 64 65 63 6c 61 72 61 74 | 69 6f 6e 2e 0a 0a 49 74 |declarat|ion...It|
|00003b50| 20 69 73 20 62 65 73 74 | 20 65 78 70 6c 61 69 6e | is best| explain|
|00003b60| 65 64 20 77 69 74 68 20 | 65 78 61 6d 70 6c 65 73 |ed with |examples|
|00003b70| 0a 0a 28 64 65 66 20 72 | 65 61 64 0a 20 20 20 28 |..(def r|ead. (|
|00003b80| 6c 65 78 70 72 20 28 6e | 29 0a 20 20 20 20 20 20 |lexpr (n|). |
|00003b90| 20 28 64 65 63 6c 61 72 | 65 20 28 2a 61 72 67 73 | (declar|e (*args|
|00003ba0| 20 30 20 32 29 29 0a 20 | 20 20 20 20 20 20 2e 2e | 0 2)). | ..|
|00003bb0| 2e 20 63 6f 64 65 20 66 | 6f 72 20 72 65 61 64 0a |. code f|or read.|
|00003bc0| 20 20 20 20 20 20 20 29 | 29 0a 0a 28 64 65 66 20 | )|)..(def |
|00003bd0| 70 72 6f 63 65 73 73 0a | 20 20 28 6e 6c 61 6d 62 |process.| (nlamb|
|00003be0| 64 61 20 28 78 29 0a 20 | 20 20 20 20 20 28 64 65 |da (x). | (de|
|00003bf0| 63 6c 61 72 65 20 28 2a | 61 72 67 73 20 31 20 33 |clare (*|args 1 3|
|00003c00| 29 29 0a 20 20 20 20 20 | 20 2e 2e 2e 20 63 6f 64 |)). | ... cod|
|00003c10| 65 20 66 6f 72 20 70 72 | 6f 63 65 73 73 0a 20 20 |e for pr|ocess. |
|00003c20| 20 20 20 20 29 29 0a 0a | 4e 6f 74 65 3a 20 74 68 | ))..|Note: th|
|00003c30| 65 20 2a 61 72 67 73 20 | 64 65 63 6c 61 72 61 74 |e *args |declarat|
|00003c40| 69 6f 6e 20 69 73 20 6e | 6f 74 20 6e 65 65 64 65 |ion is n|ot neede|
|00003c50| 64 20 66 6f 72 20 6c 61 | 6d 62 64 61 27 73 2e 0a |d for la|mbda's..|
|00003c60| 0a 0a 0a 20 20 49 66 20 | 79 6f 75 20 67 65 74 20 |... If |you get |
|00003c70| 61 6e 20 65 72 72 6f 72 | 20 6f 72 20 77 61 72 6e |an error| or warn|
|00003c80| 69 6e 67 20 77 68 69 63 | 68 20 79 6f 75 20 62 65 |ing whic|h you be|
|00003c90| 6c 69 65 76 65 20 69 73 | 20 69 6e 63 6f 72 72 65 |lieve is| incorre|
|00003ca0| 63 74 2c 20 69 74 20 69 | 73 0a 70 72 6f 62 61 62 |ct, it i|s.probab|
|00003cb0| 6c 79 20 64 75 65 20 74 | 6f 20 61 6e 20 69 6e 63 |ly due t|o an inc|
|00003cc0| 6f 72 72 65 63 74 20 64 | 61 74 61 62 61 73 65 20 |orrect d|atabase |
|00003cd0| 65 6e 74 72 79 2e 20 20 | 50 6c 65 61 73 65 20 6c |entry. |Please l|
|00003ce0| 65 74 20 6d 65 20 6b 6e | 6f 77 20 61 6e 64 20 49 |et me kn|ow and I|
|00003cf0| 20 77 69 6c 6c 0a 66 69 | 78 20 69 74 20 69 6d 6d | will.fi|x it imm|
|00003d00| 65 64 69 61 74 65 6c 79 | 2e 20 20 20 49 20 65 78 |ediately|. I ex|
|00003d10| 70 65 63 74 20 74 68 61 | 74 20 74 68 65 72 65 20 |pect tha|t there |
|00003d20| 77 69 6c 6c 20 62 65 20 | 71 75 69 74 65 20 61 20 |will be |quite a |
|00003d30| 66 65 77 20 6f 66 20 74 | 68 65 73 65 0a 65 72 72 |few of t|hese.err|
|00003d40| 6f 72 73 20 62 65 63 61 | 75 73 65 20 6d 75 63 68 |ors beca|use much|
|00003d50| 20 6f 66 20 74 68 65 20 | 64 61 74 61 62 61 73 65 | of the |database|
|00003d60| 20 77 61 73 20 62 75 69 | 6c 74 20 62 79 20 68 61 | was bui|lt by ha|
|00003d70| 6e 64 2e 0a 0a 0a 20 20 | 20 20 20 0a 0a 0a 0a 46 |nd.... | ....F|
|00003d80| 72 6f 6d 20 6a 6b 66 20 | 20 46 72 69 20 4f 63 74 |rom jkf | Fri Oct|
|00003d90| 20 20 38 20 31 32 3a 35 | 35 3a 34 35 20 31 39 38 | 8 12:5|5:45 198|
|00003da0| 32 0a 44 61 74 65 3a 20 | 38 2d 4f 63 74 2d 38 32 |2.Date: |8-Oct-82|
|00003db0| 20 31 32 3a 35 35 3a 33 | 31 2d 50 44 54 20 28 46 | 12:55:3|1-PDT (F|
|00003dc0| 72 69 29 0a 46 72 6f 6d | 3a 20 6a 6b 66 20 28 4a |ri).From|: jkf (J|
|00003dd0| 6f 68 6e 20 46 6f 64 65 | 72 61 72 6f 29 0a 53 75 |ohn Fode|raro).Su|
|00003de0| 62 6a 65 63 74 3a 20 6c | 69 73 70 20 33 38 2e 33 |bject: l|isp 38.3|
|00003df0| 30 2c 20 6c 69 73 7a 74 | 20 38 2e 31 33 0a 4d 65 |0, liszt| 8.13.Me|
|00003e00| 73 73 61 67 65 2d 49 64 | 3a 20 3c 38 32 30 39 30 |ssage-Id|: <82090|
|00003e10| 38 31 39 35 35 2e 34 31 | 34 30 40 55 43 42 4b 49 |81955.41|40@UCBKI|
|00003e20| 4d 2e 42 45 52 4b 45 4c | 45 59 2e 41 52 50 41 3e |M.BERKEL|EY.ARPA>|
|00003e30| 0a 52 65 63 65 69 76 65 | 64 3a 20 62 79 20 55 43 |.Receive|d: by UC|
|00003e40| 42 4b 49 4d 2e 42 45 52 | 4b 45 4c 45 59 2e 41 52 |BKIM.BER|KELEY.AR|
|00003e50| 50 41 20 28 33 2e 31 39 | 33 20 5b 39 2f 36 2f 38 |PA (3.19|3 [9/6/8|
|00003e60| 32 5d 29 20 69 64 20 61 | 30 34 31 34 30 3b 0a 09 |2]) id a|04140;..|
|00003e70| 38 2d 4f 63 74 2d 38 32 | 20 31 32 3a 35 35 3a 34 |8-Oct-82| 12:55:4|
|00003e80| 35 2d 50 44 54 20 28 46 | 72 69 29 0a 54 6f 3a 20 |5-PDT (F|ri).To: |
|00003e90| 6c 6f 63 61 6c 2d 6c 69 | 73 70 0a 53 74 61 74 75 |local-li|sp.Statu|
|00003ea0| 73 3a 20 52 4f 0a 0a 54 | 68 65 72 65 20 61 72 65 |s: RO..T|here are|
|00003eb0| 20 6e 6f 77 20 74 68 72 | 65 65 20 6e 65 77 20 66 | now thr|ee new f|
|00003ec0| 75 6e 63 74 69 6f 6e 73 | 20 66 6f 72 20 64 65 61 |unctions| for dea|
|00003ed0| 6c 69 6e 67 20 77 69 74 | 68 20 70 72 6f 63 65 73 |ling wit|h proces|
|00003ee0| 73 65 73 3a 0a 20 20 2a | 70 72 6f 63 65 73 73 0a |ses:. *|process.|
|00003ef0| 20 20 2a 70 72 6f 63 65 | 73 73 2d 73 65 6e 64 0a | *proce|ss-send.|
|00003f00| 20 20 2a 70 72 6f 63 65 | 73 73 2d 72 65 63 65 69 | *proce|ss-recei|
|00003f10| 76 65 0a 0a 20 54 68 65 | 73 65 20 66 75 6e 63 74 |ve.. The|se funct|
|00003f20| 69 6f 6e 73 20 61 72 65 | 20 64 65 73 69 67 6e 65 |ions are| designe|
|00003f30| 64 20 74 6f 20 72 65 70 | 6c 61 63 65 20 74 68 65 |d to rep|lace the|
|00003f40| 20 27 70 72 6f 63 65 73 | 73 27 20 66 75 6e 63 74 | 'proces|s' funct|
|00003f50| 69 6f 6e 2c 20 77 68 69 | 63 68 2c 20 64 75 65 0a |ion, whi|ch, due.|
|00003f60| 74 6f 20 69 74 73 20 6e | 6c 61 6d 62 64 61 27 6e |to its n|lambda'n|
|00003f70| 65 73 73 2c 20 77 61 73 | 20 64 69 66 66 69 63 75 |ess, was| difficu|
|00003f80| 6c 74 20 74 6f 20 75 73 | 65 2e 20 20 41 6c 6c 20 |lt to us|e. All |
|00003f90| 6f 66 20 74 68 65 20 61 | 62 6f 76 65 20 66 75 6e |of the a|bove fun|
|00003fa0| 63 74 69 6f 6e 73 0a 61 | 72 65 20 6c 61 6d 62 64 |ctions.a|re lambd|
|00003fb0| 61 27 73 20 6f 72 20 6c | 65 78 70 72 27 73 2e 0a |a's or l|expr's..|
|00003fc0| 0a 20 20 53 65 65 20 63 | 68 61 70 74 65 72 20 36 |. See c|hapter 6|
|00003fd0| 20 6f 66 20 74 68 65 20 | 6d 61 6e 75 61 6c 20 28 | of the |manual (|
|00003fe0| 69 74 73 20 6f 6e 2d 6c | 69 6e 65 29 20 66 6f 72 |its on-l|ine) for|
|00003ff0| 20 74 68 65 20 64 65 74 | 61 69 6c 73 20 6f 66 20 | the det|ails of |
|00004000| 74 68 65 73 65 0a 66 75 | 6e 63 74 69 6f 6e 73 2e |these.fu|nctions.|
|00004010| 20 20 54 68 69 73 20 69 | 73 20 61 20 71 75 69 63 | This i|s a quic|
|00004020| 6b 20 73 75 6d 6d 61 72 | 79 3a 0a 0a 20 20 28 2a |k summar|y:.. (*|
|00004030| 70 72 6f 63 65 73 73 2d | 73 65 6e 64 20 27 73 74 |process-|send 'st|
|00004040| 5f 63 6f 6d 6d 61 6e 64 | 29 0a 20 20 74 65 6c 6c |_command|). tell|
|00004050| 73 20 74 68 65 20 73 68 | 65 6c 6c 20 74 6f 20 72 |s the sh|ell to r|
|00004060| 75 6e 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 73 |un the c|ommand s|
|00004070| 74 5f 63 6f 6d 6d 61 6e | 64 20 63 6f 6e 63 75 72 |t_comman|d concur|
|00004080| 72 65 6e 74 6c 79 2c 20 | 61 6e 64 20 72 65 74 75 |rently, |and retu|
|00004090| 72 6e 73 0a 20 20 61 20 | 77 72 69 74 65 2d 6f 6e |rns. a |write-on|
|000040a0| 6c 79 20 70 6f 72 74 2e | 20 20 43 68 61 72 61 63 |ly port.| Charac|
|000040b0| 74 65 72 73 20 77 72 69 | 74 74 65 6e 20 74 6f 20 |ters wri|tten to |
|000040c0| 74 68 69 73 20 70 6f 72 | 74 20 77 69 6c 6c 20 61 |this por|t will a|
|000040d0| 70 70 65 61 72 20 61 74 | 0a 20 20 74 68 65 20 73 |ppear at|. the s|
|000040e0| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 6f 66 |tandard |input of|
|000040f0| 20 73 74 5f 63 6f 6d 6d | 61 6e 64 2e 0a 20 20 65 | st_comm|and.. e|
|00004100| 78 61 6d 70 6c 65 3a 0a | 20 20 20 20 20 28 73 65 |xample:.| (se|
|00004110| 74 71 20 70 20 28 2a 70 | 72 6f 63 65 73 73 2d 73 |tq p (*p|rocess-s|
|00004120| 65 6e 64 20 22 6d 61 69 | 6c 20 6a 6b 66 22 29 29 |end "mai|l jkf"))|
|00004130| 0a 20 20 20 20 20 28 70 | 72 69 6e 74 20 27 48 69 |. (p|rint 'Hi|
|00004140| 54 68 65 72 65 20 70 29 | 0a 20 20 20 20 20 28 63 |There p)|. (c|
|00004150| 6c 6f 73 65 20 70 29 0a | 0a 20 20 20 20 20 0a 20 |lose p).|. . |
|00004160| 20 28 2a 70 72 6f 63 65 | 73 73 2d 72 65 63 65 69 | (*proce|ss-recei|
|00004170| 76 65 20 27 73 74 5f 63 | 6f 6d 6d 61 6e 64 29 0a |ve 'st_c|ommand).|
|00004180| 20 20 74 65 6c 6c 73 20 | 74 68 65 20 73 68 65 6c | tells |the shel|
|00004190| 6c 20 74 6f 20 72 75 6e | 20 73 74 5f 63 6f 6d 6d |l to run| st_comm|
|000041a0| 61 6e 64 20 63 6f 6e 63 | 75 72 72 65 6e 74 6c 79 |and conc|urrently|
|000041b0| 2c 20 61 6e 64 20 72 65 | 74 75 72 6e 73 20 61 0a |, and re|turns a.|
|000041c0| 20 20 72 65 61 64 2d 6f | 6e 6c 79 20 70 6f 72 74 | read-o|nly port|
|000041d0| 2e 20 20 43 68 61 72 61 | 63 74 65 72 73 20 77 72 |. Chara|cters wr|
|000041e0| 69 74 74 65 6e 20 74 6f | 20 74 68 65 20 73 74 61 |itten to| the sta|
|000041f0| 6e 64 61 72 64 20 6f 75 | 74 70 75 74 20 62 79 0a |ndard ou|tput by.|
|00004200| 20 20 73 74 5f 63 6f 6d | 6d 61 6e 64 20 77 69 6c | st_com|mand wil|
|00004210| 6c 20 62 65 20 61 76 61 | 69 6c 61 62 6c 65 20 62 |l be ava|ilable b|
|00004220| 79 20 72 65 61 64 69 6e | 67 20 66 72 6f 6d 20 74 |y readin|g from t|
|00004230| 68 65 20 67 69 76 65 6e | 20 70 6f 72 74 2e 0a 20 |he given| port.. |
|00004240| 20 43 68 61 72 61 63 74 | 65 72 73 20 77 72 69 74 | Charact|ers writ|
|00004250| 74 65 6e 20 6f 6e 20 74 | 68 65 20 73 74 61 6e 64 |ten on t|he stand|
|00004260| 61 72 64 20 65 72 72 6f | 72 20 62 79 20 73 74 5f |ard erro|r by st_|
|00004270| 63 6f 6d 6d 61 6e 64 20 | 77 69 6c 6c 0a 20 20 61 |command |will. a|
|00004280| 70 70 65 61 72 20 6f 6e | 20 6c 69 73 70 27 73 20 |ppear on| lisp's |
|00004290| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 65 72 72 |the stan|dard err|
|000042a0| 6f 72 20 28 74 68 65 20 | 74 65 72 6d 69 6e 61 6c |or (the |terminal|
|000042b0| 20 6d 6f 73 74 20 6c 69 | 6b 65 6c 79 29 2e 0a 20 | most li|kely).. |
|000042c0| 20 65 78 61 6d 70 6c 65 | 3a 0a 20 20 20 20 3b 20 | example|:. ; |
|000042d0| 74 6f 20 73 65 65 20 69 | 66 20 66 6f 6f 20 69 73 |to see i|f foo is|
|000042e0| 20 6c 6f 67 67 65 64 20 | 69 6e 3a 0a 20 20 20 20 | logged |in:. |
|000042f0| 28 73 65 74 71 20 70 20 | 28 2a 70 72 6f 63 65 73 |(setq p |(*proces|
|00004300| 73 2d 72 65 63 65 69 76 | 65 20 22 75 22 29 29 0a |s-receiv|e "u")).|
|00004310| 20 20 20 20 28 64 6f 20 | 28 28 75 73 65 72 20 28 | (do |((user (|
|00004320| 72 65 61 64 20 70 20 27 | 2a 2a 65 6f 66 2a 2a 29 |read p '|**eof**)|
|00004330| 20 28 72 65 61 64 20 70 | 20 27 2a 2a 65 6f 66 2a | (read p| '**eof*|
|00004340| 2a 29 29 29 0a 20 20 20 | 20 20 20 20 20 28 28 65 |*))). | ((e|
|00004350| 71 20 27 2a 2a 65 6f 66 | 2a 2a 20 75 73 65 72 29 |q '**eof|** user)|
|00004360| 20 28 70 72 69 6e 74 20 | 27 4e 6f 74 2d 4c 6f 67 | (print |'Not-Log|
|00004370| 67 65 64 2d 49 6e 29 29 | 0a 09 28 63 6f 6e 64 20 |ged-In))|..(cond |
|00004380| 28 28 65 71 20 27 66 6f | 6f 20 75 73 65 72 29 20 |((eq 'fo|o user) |
|00004390| 28 70 72 69 6e 74 20 27 | 49 73 2d 4c 6f 67 67 65 |(print '|Is-Logge|
|000043a0| 64 2d 49 6e 29 29 29 29 | 0a 20 20 20 20 28 63 6c |d-In))))|. (cl|
|000043b0| 6f 73 65 20 70 29 0a 0a | 0a 20 20 28 2a 70 72 6f |ose p)..|. (*pro|
|000043c0| 63 65 73 73 20 27 73 74 | 5f 63 6f 6d 6d 61 6e 64 |cess 'st|_command|
|000043d0| 20 5b 27 67 5f 72 65 61 | 64 70 20 5b 27 67 5f 77 | ['g_rea|dp ['g_w|
|000043e0| 72 69 74 65 70 5d 5d 29 | 0a 20 20 74 68 69 73 20 |ritep]])|. this |
|000043f0| 69 73 20 74 68 65 20 67 | 65 6e 65 72 61 6c 20 66 |is the g|eneral f|
|00004400| 75 6e 63 74 69 6f 6e 20 | 77 68 69 63 68 20 70 72 |unction |which pr|
|00004410| 6f 63 65 73 73 2c 20 2a | 70 72 6f 63 65 73 73 2d |ocess, *|process-|
|00004420| 73 65 6e 64 20 61 6e 64 | 0a 20 20 2a 70 72 6f 63 |send and|. *proc|
|00004430| 65 73 73 2d 72 65 63 65 | 69 76 65 20 63 61 6c 6c |ess-rece|ive call|
|00004440| 2e 20 20 49 66 20 63 61 | 6c 6c 65 64 20 77 69 74 |. If ca|lled wit|
|00004450| 68 20 6f 6e 65 20 61 72 | 67 75 6d 65 6e 74 20 69 |h one ar|gument i|
|00004460| 74 0a 20 20 73 74 61 72 | 74 73 20 74 68 65 20 6e |t. star|ts the n|
|00004470| 65 77 20 70 72 6f 63 65 | 73 73 20 61 6e 64 20 77 |ew proce|ss and w|
|00004480| 61 69 74 73 20 66 6f 72 | 20 69 74 20 74 6f 20 65 |aits for| it to e|
|00004490| 6e 64 2c 20 65 2e 67 3a | 0a 20 20 28 2a 70 72 6f |nd, e.g:|. (*pro|
|000044a0| 63 65 73 73 20 28 63 6f | 6e 63 61 74 20 22 76 69 |cess (co|ncat "vi|
|000044b0| 20 22 20 66 69 6c 65 6e | 61 6d 65 29 29 0a 20 20 | " filen|ame)). |
|000044c0| 49 6e 20 74 68 69 73 20 | 63 61 73 65 20 2a 70 72 |In this |case *pr|
|000044d0| 6f 63 65 73 73 20 72 65 | 74 75 72 6e 20 74 68 65 |ocess re|turn the|
|000044e0| 20 65 78 69 74 20 63 6f | 64 65 20 6f 66 20 74 68 | exit co|de of th|
|000044f0| 65 20 70 72 6f 63 65 73 | 73 2e 0a 0a 20 20 54 68 |e proces|s... Th|
|00004500| 65 20 67 5f 72 65 61 64 | 70 20 61 6e 64 20 67 5f |e g_read|p and g_|
|00004510| 77 72 69 74 65 70 20 61 | 72 67 75 6d 65 6e 74 73 |writep a|rguments|
|00004520| 2c 20 69 66 20 67 69 76 | 65 6e 2c 20 74 65 6c 6c |, if giv|en, tell|
|00004530| 20 2a 70 72 6f 63 65 73 | 73 20 74 6f 0a 20 20 72 | *proces|s to. r|
|00004540| 75 6e 20 74 68 65 20 70 | 72 6f 63 65 73 73 20 63 |un the p|rocess c|
|00004550| 6f 6e 63 75 72 72 65 6e | 74 6c 79 2e 20 20 49 66 |oncurren|tly. If|
|00004560| 20 67 5f 72 65 61 64 20 | 69 73 20 6e 6f 6e 20 6e | g_read |is non n|
|00004570| 69 6c 20 74 68 65 6e 0a | 20 20 2a 70 72 6f 63 65 |il then.| *proce|
|00004580| 73 73 20 77 69 6c 6c 20 | 72 65 74 75 72 6e 20 61 |ss will |return a|
|00004590| 20 70 6f 72 74 20 6a 75 | 73 74 20 6c 69 6b 65 20 | port ju|st like |
|000045a0| 2a 70 72 6f 63 65 73 73 | 2d 72 65 63 65 69 76 65 |*process|-receive|
|000045b0| 2e 0a 20 20 49 66 20 67 | 5f 77 72 69 74 65 70 20 |.. If g|_writep |
|000045c0| 69 73 20 6e 6f 6e 2d 6e | 69 6c 2c 20 74 68 65 6e |is non-n|il, then|
|000045d0| 20 2a 70 72 6f 63 65 73 | 73 20 77 69 6c 6c 20 73 | *proces|s will s|
|000045e0| 65 74 20 75 70 20 61 20 | 70 69 70 65 20 6c 69 6b |et up a |pipe lik|
|000045f0| 65 0a 20 20 2a 70 72 6f | 63 65 73 73 2d 73 65 6e |e. *pro|cess-sen|
|00004600| 64 2e 0a 20 20 2a 70 72 | 6f 63 65 73 73 20 77 69 |d.. *pr|ocess wi|
|00004610| 6c 6c 20 72 65 74 75 72 | 6e 20 61 20 6c 69 73 74 |ll retur|n a list|
|00004620| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 0a 20 20 20 | of the |form. |
|00004630| 20 28 72 65 61 64 70 6f | 72 74 20 77 72 69 74 65 | (readpo|rt write|
|00004640| 70 6f 72 74 20 70 72 6f | 63 65 73 73 2d 69 64 29 |port pro|cess-id)|
|00004650| 0a 20 20 20 20 77 68 65 | 72 65 20 72 65 61 64 70 |. whe|re readp|
|00004660| 6f 72 74 20 61 6e 64 20 | 77 72 69 74 65 70 6f 72 |ort and |writepor|
|00004670| 74 20 77 69 6c 6c 20 6f | 6e 6c 79 20 62 65 20 61 |t will o|nly be a|
|00004680| 20 70 6f 72 74 20 69 66 | 20 67 5f 72 65 61 64 70 | port if| g_readp|
|00004690| 0a 20 20 20 20 6f 72 20 | 67 5f 77 72 69 74 65 70 |. or |g_writep|
|000046a0| 20 61 72 65 20 6e 6f 6e | 20 6e 69 6c 2e 0a 0a 0a | are non| nil....|
|000046b0| 20 41 20 6c 69 74 74 6c | 65 20 6b 6e 6f 77 20 66 | A littl|e know f|
|000046c0| 61 63 74 20 61 62 6f 75 | 74 20 70 72 6f 63 65 73 |act abou|t proces|
|000046d0| 73 65 73 20 69 73 20 74 | 68 61 74 20 20 61 20 70 |ses is t|hat a p|
|000046e0| 72 6f 63 65 73 73 2c 20 | 6f 6e 63 65 20 73 74 61 |rocess, |once sta|
|000046f0| 72 74 65 64 2c 0a 63 61 | 6e 6e 6f 74 20 64 69 65 |rted,.ca|nnot die|
|00004700| 20 61 6e 64 20 64 69 73 | 61 70 70 65 61 72 20 75 | and dis|appear u|
|00004710| 6e 74 69 6c 20 69 74 73 | 20 70 61 72 65 6e 74 20 |ntil its| parent |
|00004720| 61 73 6b 73 20 61 62 6f | 75 74 20 69 74 73 20 73 |asks abo|ut its s|
|00004730| 74 61 74 75 73 2e 0a 54 | 61 6b 65 20 74 68 65 20 |tatus..T|ake the |
|00004740| 6d 61 69 6c 20 65 78 61 | 6d 70 6c 65 20 67 69 76 |mail exa|mple giv|
|00004750| 65 6e 20 61 62 6f 76 65 | 3a 0a 20 20 20 20 20 28 |en above|:. (|
|00004760| 73 65 74 71 20 70 20 28 | 2a 70 72 6f 63 65 73 73 |setq p (|*process|
|00004770| 2d 73 65 6e 64 20 22 6d | 61 69 6c 20 6a 6b 66 22 |-send "m|ail jkf"|
|00004780| 29 29 0a 20 20 20 20 20 | 28 70 72 69 6e 74 20 27 |)). |(print '|
|00004790| 48 69 54 68 65 72 65 20 | 70 29 0a 20 20 20 20 20 |HiThere |p). |
|000047a0| 28 63 6c 6f 73 65 20 70 | 29 0a 61 66 74 65 72 20 |(close p|).after |
|000047b0| 74 68 65 20 6d 61 69 6c | 20 70 72 6f 63 65 73 73 |the mail| process|
|000047c0| 20 66 69 6e 69 73 68 65 | 73 20 69 74 20 77 6f 72 | finishe|s it wor|
|000047d0| 6b 2c 20 69 74 20 77 69 | 6c 6c 20 61 74 74 65 6d |k, it wi|ll attem|
|000047e0| 70 74 20 74 6f 20 64 69 | 65 2c 20 72 65 74 75 72 |pt to di|e, retur|
|000047f0| 6e 69 6e 67 0a 61 6e 20 | 69 6e 74 65 67 65 72 20 |ning.an |integer |
|00004800| 63 61 6c 6c 65 64 20 74 | 68 65 20 27 65 78 69 74 |called t|he 'exit|
|00004810| 20 73 74 61 74 75 73 27 | 2e 20 20 48 6f 77 65 76 | status'|. Howev|
|00004820| 65 72 20 75 6e 74 69 6c | 20 74 68 65 20 6c 69 73 |er until| the lis|
|00004830| 70 20 70 72 6f 67 72 61 | 6d 0a 61 73 6b 73 20 61 |p progra|m.asks a|
|00004840| 62 6f 75 74 20 69 74 73 | 20 73 74 61 74 75 73 20 |bout its| status |
|00004850| 74 68 65 20 6d 61 69 6c | 20 70 72 6f 63 65 73 73 |the mail| process|
|00004860| 20 77 69 6c 6c 20 72 65 | 6d 61 69 6e 20 69 6e 20 | will re|main in |
|00004870| 65 78 69 73 74 65 6e 63 | 65 0a 69 6e 20 61 20 5a |existenc|e.in a Z|
|00004880| 6f 6d 62 69 65 20 73 74 | 61 74 65 2c 20 73 6f 6d |ombie st|ate, som|
|00004890| 65 77 68 65 72 65 20 62 | 65 74 77 65 65 6e 20 6c |ewhere b|etween l|
|000048a0| 69 66 65 20 61 6e 64 20 | 64 65 61 74 68 2e 20 70 |ife and |death. p|
|000048b0| 73 20 77 69 6c 6c 20 73 | 68 6f 77 20 74 68 69 73 |s will s|how this|
|000048c0| 3a 0a 0a 20 20 50 49 44 | 20 54 54 20 53 54 41 54 |:.. PID| TT STAT|
|000048d0| 20 20 54 49 4d 45 20 43 | 4f 4d 4d 41 4e 44 0a 20 | TIME C|OMMAND. |
|000048e0| 33 38 37 36 20 70 30 20 | 5a 20 20 20 20 20 30 3a |3876 p0 |Z 0:|
|000048f0| 30 31 20 3c 65 78 69 74 | 69 6e 67 3e 0a 0a 41 20 |01 <exit|ing>..A |
|00004900| 75 73 65 72 20 69 73 20 | 6f 6e 6c 79 20 61 6c 6c |user is |only all|
|00004910| 6f 77 65 64 20 61 20 73 | 6d 61 6c 6c 20 6e 75 6d |owed a s|mall num|
|00004920| 62 65 72 20 6f 66 20 70 | 72 6f 63 65 73 73 65 73 |ber of p|rocesses|
|00004930| 2c 20 73 6f 20 69 66 20 | 79 6f 75 20 63 6f 6e 74 |, so if |you cont|
|00004940| 69 6e 75 65 0a 74 6f 20 | 67 65 6e 65 72 61 74 65 |inue.to |generate|
|00004950| 20 70 72 6f 63 65 73 73 | 65 73 20 61 6e 64 20 6c | process|es and l|
|00004960| 65 61 76 65 20 74 68 65 | 6d 20 61 72 6f 75 6e 64 |eave the|m around|
|00004970| 20 61 73 20 5a 6f 6d 62 | 69 65 73 2c 20 79 6f 75 | as Zomb|ies, you|
|00004980| 20 77 69 6c 6c 20 65 76 | 65 6e 74 75 61 6c 6c 79 | will ev|entually|
|00004990| 0a 72 75 6e 20 6f 75 74 | 20 6f 66 20 70 72 6f 63 |.run out| of proc|
|000049a0| 65 73 73 65 73 2e 20 20 | 54 68 65 20 77 61 79 20 |esses. |The way |
|000049b0| 74 6f 20 6c 65 74 20 74 | 68 65 20 5a 6f 6d 62 69 |to let t|he Zombi|
|000049c0| 65 20 64 69 65 20 69 73 | 20 74 6f 20 63 61 6c 6c |e die is| to call|
|000049d0| 0a 74 68 65 20 77 61 69 | 74 20 66 75 6e 63 74 69 |.the wai|t functi|
|000049e0| 6f 6e 2c 20 65 2e 67 2e | 0a 20 20 20 20 2d 3e 20 |on, e.g.|. -> |
|000049f0| 28 77 61 69 74 29 0a 20 | 20 20 20 28 33 38 37 36 |(wait). | (3876|
|00004a00| 20 2e 20 30 29 0a 20 20 | 20 20 2d 3e 20 0a 74 68 | . 0). | -> .th|
|00004a10| 69 73 20 73 61 79 73 20 | 74 68 61 74 20 70 72 6f |is says |that pro|
|00004a20| 63 65 73 73 20 33 38 37 | 36 20 64 69 65 64 20 77 |cess 387|6 died w|
|00004a30| 69 74 68 20 65 78 69 74 | 20 73 74 61 74 75 73 20 |ith exit| status |
|00004a40| 30 2e 0a 0a 41 6c 73 6f | 2c 20 77 68 65 6e 20 79 |0...Also|, when y|
|00004a50| 6f 75 20 65 78 69 74 20 | 6c 69 73 70 20 74 68 65 |ou exit |lisp the|
|00004a60| 20 73 68 65 6c 6c 20 77 | 69 6c 6c 20 63 6c 65 61 | shell w|ill clea|
|00004a70| 6e 20 75 70 20 74 68 65 | 20 5a 6f 6d 62 69 65 73 |n up the| Zombies|
|00004a80| 2e 0a 0a 49 66 20 79 6f | 75 20 73 74 61 72 74 20 |...If yo|u start |
|00004a90| 61 20 20 70 72 6f 63 65 | 73 73 20 77 69 74 68 20 |a proce|ss with |
|00004aa0| 28 2a 70 72 6f 63 65 73 | 73 20 22 76 69 20 66 6f |(*proces|s "vi fo|
|00004ab0| 6f 22 29 20 74 68 65 6e | 20 6c 69 73 70 20 77 69 |o") then| lisp wi|
|00004ac0| 6c 6c 20 77 61 69 74 0a | 66 6f 72 20 69 74 20 74 |ll wait.|for it t|
|00004ad0| 6f 20 63 6f 6d 70 6c 65 | 74 65 20 62 65 66 6f 72 |o comple|te befor|
|00004ae0| 65 20 63 6f 6e 74 69 6e | 75 69 6e 67 2c 20 73 6f |e contin|uing, so|
|00004af0| 20 79 6f 75 20 64 6f 6e | 27 74 20 68 61 76 65 20 | you don|'t have |
|00004b00| 74 6f 20 77 6f 72 72 79 | 20 61 62 6f 75 74 0a 5a |to worry| about.Z|
|00004b10| 6f 6d 62 69 65 73 2e 20 | 20 59 6f 75 20 6f 6e 6c |ombies. | You onl|
|00004b20| 79 20 68 61 76 65 20 74 | 6f 20 77 6f 72 72 79 20 |y have t|o worry |
|00004b30| 69 66 20 79 6f 75 20 72 | 75 6e 20 61 20 70 72 6f |if you r|un a pro|
|00004b40| 63 65 73 73 20 63 6f 6e | 63 75 72 72 65 6e 74 6c |cess con|currentl|
|00004b50| 79 2c 0a 73 75 63 68 20 | 61 73 20 77 68 65 6e 20 |y,.such |as when |
|00004b60| 79 6f 75 20 75 73 65 20 | 2a 70 72 6f 63 65 73 73 |you use |*process|
|00004b70| 2d 73 65 6e 64 20 6f 72 | 20 2a 70 72 6f 63 65 73 |-send or| *proces|
|00004b80| 73 2d 72 65 63 65 69 76 | 65 2e 0a 0a 20 20 20 20 |s-receiv|e... |
|00004b90| 20 20 0a 20 20 20 20 20 | 20 20 0a 20 20 20 20 20 | . | . |
|00004ba0| 20 0a 0a 0a 0a 46 72 6f | 6d 20 6a 6b 66 20 20 54 | ....Fro|m jkf T|
|00004bb0| 75 65 20 4f 63 74 20 31 | 32 20 31 30 3a 34 34 3a |ue Oct 1|2 10:44:|
|00004bc0| 32 32 20 31 39 38 32 0a | 44 61 74 65 3a 20 31 32 |22 1982.|Date: 12|
|00004bd0| 2d 4f 63 74 2d 38 32 20 | 31 30 3a 34 33 3a 35 32 |-Oct-82 |10:43:52|
|00004be0| 2d 50 44 54 20 28 54 75 | 65 29 0a 46 72 6f 6d 3a |-PDT (Tu|e).From:|
|00004bf0| 20 6a 6b 66 20 28 4a 6f | 68 6e 20 46 6f 64 65 72 | jkf (Jo|hn Foder|
|00004c00| 61 72 6f 29 0a 53 75 62 | 6a 65 63 74 3a 20 6c 69 |aro).Sub|ject: li|
|00004c10| 73 70 20 6f 70 75 73 20 | 33 38 2e 33 31 0a 4d 65 |sp opus |38.31.Me|
|00004c20| 73 73 61 67 65 2d 49 64 | 3a 20 3c 38 32 30 39 31 |ssage-Id|: <82091|
|00004c30| 32 31 37 34 34 2e 32 39 | 38 30 30 40 55 43 42 4b |21744.29|800@UCBK|
|00004c40| 49 4d 2e 42 45 52 4b 45 | 4c 45 59 2e 41 52 50 41 |IM.BERKE|LEY.ARPA|
|00004c50| 3e 0a 52 65 63 65 69 76 | 65 64 3a 20 62 79 20 55 |>.Receiv|ed: by U|
|00004c60| 43 42 4b 49 4d 2e 42 45 | 52 4b 45 4c 45 59 2e 41 |CBKIM.BE|RKELEY.A|
|00004c70| 52 50 41 20 28 33 2e 32 | 32 30 20 5b 31 30 2f 31 |RPA (3.2|20 [10/1|
|00004c80| 31 2f 38 32 5d 29 0a 09 | 69 64 20 41 32 39 38 30 |1/82])..|id A2980|
|00004c90| 30 3b 20 31 32 2d 4f 63 | 74 2d 38 32 20 31 30 3a |0; 12-Oc|t-82 10:|
|00004ca0| 34 34 3a 32 32 2d 50 44 | 54 20 28 54 75 65 29 0a |44:22-PD|T (Tue).|
|00004cb0| 54 6f 3a 20 6c 6f 63 61 | 6c 2d 6c 69 73 70 0a 53 |To: loca|l-lisp.S|
|00004cc0| 74 61 74 75 73 3a 20 52 | 4f 0a 0a 20 20 6e 65 77 |tatus: R|O.. new|
|00004cd0| 20 66 75 6e 63 74 69 6f | 6e 3a 20 20 28 74 69 6d | functio|n: (tim|
|00004ce0| 65 2d 73 74 72 69 6e 67 | 20 5b 27 78 5f 74 69 6d |e-string| ['x_tim|
|00004cf0| 65 5d 29 0a 20 20 20 20 | 69 66 20 67 69 76 65 6e |e]). |if given|
|00004d00| 20 6e 6f 20 61 72 67 75 | 6d 65 6e 74 73 2c 20 69 | no argu|ments, i|
|00004d10| 74 20 72 65 74 75 72 6e | 73 20 74 68 65 20 63 75 |t return|s the cu|
|00004d20| 72 72 65 6e 74 20 74 69 | 6d 65 20 61 73 20 61 20 |rrent ti|me as a |
|00004d30| 73 74 72 69 6e 67 2e 0a | 0a 20 20 20 20 69 66 20 |string..|. if |
|00004d40| 67 69 76 65 6e 20 61 6e | 20 61 72 67 75 6d 65 6e |given an| argumen|
|00004d50| 74 2c 20 78 5f 74 69 6d | 65 2c 20 74 68 65 6e 20 |t, x_tim|e, then |
|00004d60| 69 74 20 63 6f 6e 76 65 | 72 74 73 20 74 68 61 74 |it conve|rts that|
|00004d70| 20 61 72 67 75 6d 65 6e | 74 20 74 6f 0a 20 20 20 | argumen|t to. |
|00004d80| 20 20 20 61 20 74 69 6d | 65 20 73 74 72 69 6e 67 | a tim|e string|
|00004d90| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 74 68 61 | and ret|urns tha|
|00004da0| 74 20 73 74 72 69 6e 67 | 2e 0a 20 20 20 20 20 20 |t string|.. |
|00004db0| 54 68 65 20 61 72 67 75 | 6d 65 6e 74 20 73 68 6f |The argu|ment sho|
|00004dc0| 75 6c 64 20 72 65 70 72 | 65 73 65 6e 74 20 74 68 |uld repr|esent th|
|00004dd0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 73 65 63 6f |e number| of seco|
|00004de0| 6e 64 73 20 73 69 6e 63 | 65 0a 20 20 20 20 20 20 |nds sinc|e. |
|00004df0| 4a 61 6e 20 31 2c 20 31 | 39 37 30 20 28 47 4d 54 |Jan 1, 1|970 (GMT|
|00004e00| 29 2e 0a 0a 20 20 6e 6f | 74 65 20 74 68 61 74 20 |)... no|te that |
|00004e10| 74 68 69 73 20 6d 61 6b | 65 73 20 28 73 74 61 74 |this mak|es (stat|
|00004e20| 75 73 20 63 74 69 6d 65 | 29 20 6f 62 73 6f 6c 65 |us ctime|) obsole|
|00004e30| 74 65 2e 0a 20 0a 0a 0a | 46 72 6f 6d 20 6a 6b 66 |te.. ...|From jkf|
|00004e40| 20 20 54 75 65 20 4f 63 | 74 20 31 32 20 31 34 3a | Tue Oc|t 12 14:|
|00004e50| 33 35 3a 32 36 20 31 39 | 38 32 0a 44 61 74 65 3a |35:26 19|82.Date:|
|00004e60| 20 31 32 2d 4f 63 74 2d | 38 32 20 31 34 3a 33 34 | 12-Oct-|82 14:34|
|00004e70| 3a 31 30 2d 50 44 54 20 | 28 54 75 65 29 0a 46 72 |:10-PDT |(Tue).Fr|
|00004e80| 6f 6d 3a 20 6a 6b 66 20 | 28 4a 6f 68 6e 20 46 6f |om: jkf |(John Fo|
|00004e90| 64 65 72 61 72 6f 29 0a | 53 75 62 6a 65 63 74 3a |deraro).|Subject:|
|00004ea0| 20 61 6c 73 6f 20 69 6e | 20 6f 70 75 73 20 33 38 | also in| opus 38|
|00004eb0| 2e 33 31 0a 4d 65 73 73 | 61 67 65 2d 49 64 3a 20 |.31.Mess|age-Id: |
|00004ec0| 3c 38 32 30 39 31 32 32 | 31 33 35 2e 35 30 38 36 |<8209122|135.5086|
|00004ed0| 40 55 43 42 4b 49 4d 2e | 42 45 52 4b 45 4c 45 59 |@UCBKIM.|BERKELEY|
|00004ee0| 2e 41 52 50 41 3e 0a 52 | 65 63 65 69 76 65 64 3a |.ARPA>.R|eceived:|
|00004ef0| 20 62 79 20 55 43 42 4b | 49 4d 2e 42 45 52 4b 45 | by UCBK|IM.BERKE|
|00004f00| 4c 45 59 2e 41 52 50 41 | 20 28 33 2e 32 32 30 20 |LEY.ARPA| (3.220 |
|00004f10| 5b 31 30 2f 31 31 2f 38 | 32 5d 29 0a 09 69 64 20 |[10/11/8|2])..id |
|00004f20| 41 30 35 30 38 36 3b 20 | 31 32 2d 4f 63 74 2d 38 |A05086; |12-Oct-8|
|00004f30| 32 20 31 34 3a 33 35 3a | 32 36 2d 50 44 54 20 28 |2 14:35:|26-PDT (|
|00004f40| 54 75 65 29 0a 54 6f 3a | 20 6c 6f 63 61 6c 2d 6c |Tue).To:| local-l|
|00004f50| 69 73 70 0a 53 74 61 74 | 75 73 3a 20 52 4f 0a 0a |isp.Stat|us: RO..|
|00004f60| 20 20 49 66 20 74 6f 70 | 2d 6c 65 76 65 6c 2d 72 | If top|-level-r|
|00004f70| 65 61 64 20 69 73 20 73 | 65 74 20 74 6f 20 61 20 |ead is s|et to a |
|00004f80| 6e 6f 6e 20 6e 69 6c 20 | 76 61 6c 75 65 2c 20 74 |non nil |value, t|
|00004f90| 68 65 6e 20 74 68 65 20 | 6c 69 73 70 0a 74 6f 70 |hen the |lisp.top|
|00004fa0| 20 6c 65 76 65 6c 20 77 | 69 6c 6c 20 66 75 6e 63 | level w|ill func|
|00004fb0| 61 6c 6c 20 69 74 20 74 | 6f 20 72 65 61 64 20 61 |all it t|o read a|
|00004fc0| 20 66 6f 72 6d 20 66 6f | 72 20 65 76 61 6c 75 61 | form fo|r evalua|
|00004fd0| 74 69 6f 6e 2e 0a 49 74 | 20 77 69 6c 6c 20 62 65 |tion..It| will be|
|00004fe0| 20 66 75 6e 63 61 6c 6c | 65 64 20 77 69 74 68 20 | funcall|ed with |
|00004ff0| 74 77 6f 20 61 72 67 75 | 6d 65 6e 74 73 2c 20 61 |two argu|ments, a|
|00005000| 20 70 6f 72 74 20 61 6e | 64 20 61 6e 20 65 6f 66 | port an|d an eof|
|00005010| 20 6d 61 72 6b 65 72 2e | 0a 74 6f 70 2d 6c 65 76 | marker.|.top-lev|
|00005020| 65 6c 2d 72 65 61 64 20 | 77 69 6c 6c 20 62 65 20 |el-read |will be |
|00005030| 75 73 65 64 20 69 6e 20 | 62 72 65 61 6b 20 6c 65 |used in |break le|
|00005040| 76 65 6c 73 20 74 6f 6f | 2e 0a 20 20 42 65 20 76 |vels too|.. Be v|
|00005050| 65 72 79 20 63 61 72 65 | 66 75 6c 20 77 68 65 6e |ery care|ful when|
|00005060| 20 73 65 74 74 69 6e 67 | 20 74 6f 70 2d 6c 65 76 | setting| top-lev|
|00005070| 65 6c 2d 72 65 61 64 20 | 62 65 63 61 75 73 65 20 |el-read |because |
|00005080| 69 66 20 79 6f 75 20 73 | 65 74 20 69 74 0a 74 6f |if you s|et it.to|
|00005090| 20 61 6e 20 69 6c 6c 65 | 67 61 6c 20 76 61 6c 75 | an ille|gal valu|
|000050a0| 65 2c 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 77 |e, there| is no w|
|000050b0| 61 79 20 74 6f 20 63 6f | 72 72 65 63 74 20 69 74 |ay to co|rrect it|
|000050c0| 2e 0a 0a 0a 0a 0a 0a 46 | 72 6f 6d 20 6a 6b 66 20 |.......F|rom jkf |
|000050d0| 20 54 75 65 20 4f 63 74 | 20 31 39 20 31 38 3a 35 | Tue Oct| 19 18:5|
|000050e0| 34 3a 31 38 20 31 39 38 | 32 0a 44 61 74 65 3a 20 |4:18 198|2.Date: |
|000050f0| 31 39 2d 4f 63 74 2d 38 | 32 20 31 38 3a 35 34 3a |19-Oct-8|2 18:54:|
|00005100| 30 32 2d 50 44 54 20 28 | 54 75 65 29 0a 46 72 6f |02-PDT (|Tue).Fro|
|00005110| 6d 3a 20 6a 6b 66 20 28 | 4a 6f 68 6e 20 46 6f 64 |m: jkf (|John Fod|
|00005120| 65 72 61 72 6f 29 0a 53 | 75 62 6a 65 63 74 3a 20 |eraro).S|ubject: |
|00005130| 6c 69 73 70 20 74 61 67 | 73 0a 4d 65 73 73 61 67 |lisp tag|s.Messag|
|00005140| 65 2d 49 64 3a 20 3c 38 | 32 30 39 32 30 30 31 35 |e-Id: <8|20920015|
|00005150| 34 2e 31 39 35 40 55 43 | 42 4b 49 4d 2e 42 45 52 |4.195@UC|BKIM.BER|
|00005160| 4b 45 4c 45 59 2e 41 52 | 50 41 3e 0a 52 65 63 65 |KELEY.AR|PA>.Rece|
|00005170| 69 76 65 64 3a 20 62 79 | 20 55 43 42 4b 49 4d 2e |ived: by| UCBKIM.|
|00005180| 42 45 52 4b 45 4c 45 59 | 2e 41 52 50 41 20 28 33 |BERKELEY|.ARPA (3|
|00005190| 2e 32 32 32 20 5b 31 30 | 2f 31 33 2f 38 32 5d 29 |.222 [10|/13/82])|
|000051a0| 0a 09 69 64 20 41 30 30 | 31 39 35 3b 20 31 39 2d |..id A00|195; 19-|
|000051b0| 4f 63 74 2d 38 32 20 31 | 38 3a 35 34 3a 31 38 2d |Oct-82 1|8:54:18-|
|000051c0| 50 44 54 20 28 54 75 65 | 29 0a 54 6f 3a 20 66 72 |PDT (Tue|).To: fr|
|000051d0| 61 6e 7a 2d 66 72 69 65 | 6e 64 73 0a 53 74 61 74 |anz-frie|nds.Stat|
|000051e0| 75 73 3a 20 52 4f 0a 0a | 20 20 57 65 20 61 6c 73 |us: RO..| We als|
|000051f0| 6f 20 75 73 65 20 76 69 | 20 73 74 79 6c 65 20 74 |o use vi| style t|
|00005200| 61 67 73 20 73 6f 20 65 | 6d 61 63 73 20 75 73 65 |ags so e|macs use|
|00005210| 72 73 20 61 6e 64 20 76 | 69 20 75 73 65 72 73 20 |rs and v|i users |
|00005220| 63 61 6e 20 73 68 61 72 | 65 20 74 68 65 20 73 61 |can shar|e the sa|
|00005230| 6d 65 0a 74 61 67 73 20 | 66 69 6c 65 2e 20 20 52 |me.tags |file. R|
|00005240| 61 74 68 65 72 20 74 68 | 61 6e 20 6d 6f 64 69 66 |ather th|an modif|
|00005250| 79 20 63 74 61 67 73 2c | 20 77 65 20 75 73 65 20 |y ctags,| we use |
|00005260| 74 68 69 73 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |this she|ll scrip|
|00005270| 74 3a 0a 0a 23 21 2f 62 | 69 6e 2f 63 73 68 20 0a |t:..#!/b|in/csh .|
|00005280| 23 20 6d 61 6b 65 20 61 | 20 74 61 67 73 20 66 69 |# make a| tags fi|
|00005290| 6c 65 20 66 6f 72 20 6c | 69 73 70 20 73 6f 75 72 |le for l|isp sour|
|000052a0| 63 65 20 66 69 6c 65 73 | 2e 0a 23 20 75 73 65 3a |ce files|..# use:|
|000052b0| 0a 23 09 6c 69 73 70 74 | 61 67 73 20 66 6f 6f 2e |.#.lispt|ags foo.|
|000052c0| 6c 20 62 61 72 2e 6c 20 | 62 61 7a 2e 6c 20 2e 2e |l bar.l |baz.l ..|
|000052d0| 2e 20 62 6f 66 2e 6c 0a | 23 20 67 65 6e 65 72 61 |. bof.l.|# genera|
|000052e0| 74 65 20 74 68 65 20 66 | 69 6c 65 20 27 74 61 67 |te the f|ile 'tag|
|000052f0| 73 27 0a 23 0a 61 77 6b | 20 2d 66 20 2f 75 73 72 |s'.#.awk| -f /usr|
|00005300| 2f 6c 6f 63 61 6c 2f 6c | 69 62 2f 6c 74 61 67 73 |/local/l|ib/ltags|
|00005310| 20 24 2a 20 7c 20 73 6f | 72 74 20 3e 20 74 61 67 | $* | so|rt > tag|
|00005320| 73 0a 0a 0a 77 68 65 72 | 65 20 74 68 65 20 66 69 |s...wher|e the fi|
|00005330| 6c 65 20 2f 75 73 72 2f | 6c 6f 63 61 6c 2f 6c 69 |le /usr/|local/li|
|00005340| 62 2f 6c 74 61 67 73 20 | 69 73 0a 0a 2f 5e 5c 28 |b/ltags |is../^\(|
|00005350| 44 45 46 2f 09 7b 20 70 | 72 69 6e 74 20 24 32 20 |DEF/.{ p|rint $2 |
|00005360| 22 09 22 20 46 49 4c 45 | 4e 41 4d 45 20 22 09 3f |"." FILE|NAME ".?|
|00005370| 5e 22 20 24 30 20 22 24 | 3f 22 20 7d 0a 2f 5e 5c |^" $0 "$|?" }./^\|
|00005380| 28 64 65 66 2f 09 7b 20 | 70 72 69 6e 74 20 24 32 |(def/.{ |print $2|
|00005390| 20 22 09 22 20 46 49 4c | 45 4e 41 4d 45 20 22 09 | "." FIL|ENAME ".|
|000053a0| 3f 5e 22 20 24 30 20 22 | 24 3f 22 20 7d 0a 0a 0a |?^" $0 "|$?" }...|
|000053b0| 0a 46 72 6f 6d 20 6a 6b | 66 20 20 54 75 65 20 4f |.From jk|f Tue O|
|000053c0| 63 74 20 31 39 20 32 32 | 3a 35 30 3a 34 30 20 31 |ct 19 22|:50:40 1|
|000053d0| 39 38 32 0a 44 61 74 65 | 3a 20 31 39 2d 4f 63 74 |982.Date|: 19-Oct|
|000053e0| 2d 38 32 20 32 32 3a 35 | 30 3a 32 39 2d 50 44 54 |-82 22:5|0:29-PDT|
|000053f0| 20 28 54 75 65 29 0a 46 | 72 6f 6d 3a 20 6a 6b 66 | (Tue).F|rom: jkf|
|00005400| 20 28 4a 6f 68 6e 20 46 | 6f 64 65 72 61 72 6f 29 | (John F|oderaro)|
|00005410| 0a 53 75 62 6a 65 63 74 | 3a 20 4c 69 73 70 20 4f |.Subject|: Lisp O|
|00005420| 70 75 73 20 33 38 2e 33 | 32 2c 20 4c 69 73 7a 74 |pus 38.3|2, Liszt|
|00005430| 20 38 2e 31 34 0a 4d 65 | 73 73 61 67 65 2d 49 64 | 8.14.Me|ssage-Id|
|00005440| 3a 20 3c 38 32 30 39 32 | 30 30 35 35 30 2e 33 39 |: <82092|00550.39|
|00005450| 36 38 40 55 43 42 4b 49 | 4d 2e 42 45 52 4b 45 4c |68@UCBKI|M.BERKEL|
|00005460| 45 59 2e 41 52 50 41 3e | 0a 52 65 63 65 69 76 65 |EY.ARPA>|.Receive|
|00005470| 64 3a 20 62 79 20 55 43 | 42 4b 49 4d 2e 42 45 52 |d: by UC|BKIM.BER|
|00005480| 4b 45 4c 45 59 2e 41 52 | 50 41 20 28 33 2e 32 32 |KELEY.AR|PA (3.22|
|00005490| 32 20 5b 31 30 2f 31 33 | 2f 38 32 5d 29 0a 09 69 |2 [10/13|/82])..i|
|000054a0| 64 20 41 30 33 39 36 38 | 3b 20 31 39 2d 4f 63 74 |d A03968|; 19-Oct|
|000054b0| 2d 38 32 20 32 32 3a 35 | 30 3a 34 30 2d 50 44 54 |-82 22:5|0:40-PDT|
|000054c0| 20 28 54 75 65 29 0a 54 | 6f 3a 20 6c 6f 63 61 6c | (Tue).T|o: local|
|000054d0| 2d 6c 69 73 70 0a 53 74 | 61 74 75 73 3a 20 52 4f |-lisp.St|atus: RO|
|000054e0| 0a 0a 0a 54 6f 70 69 63 | 20 31 3a 0a 20 20 20 20 |...Topic| 1:. |
|000054f0| 6c 69 73 7a 74 20 63 61 | 6e 20 6e 6f 77 20 61 75 |liszt ca|n now au|
|00005500| 74 6f 6c 6f 61 64 20 6d | 61 63 72 6f 73 2e 20 20 |toload m|acros. |
|00005510| 20 49 66 20 6c 69 73 7a | 74 20 65 6e 63 6f 75 6e | If lisz|t encoun|
|00005520| 74 65 72 73 20 61 20 73 | 79 6d 62 6f 6c 20 77 69 |ters a s|ymbol wi|
|00005530| 74 68 6f 75 74 0a 20 20 | 20 20 61 20 66 75 6e 63 |thout. | a func|
|00005540| 74 69 6f 6e 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |tion def|inition |
|00005550| 62 75 74 20 77 69 74 68 | 20 61 20 6d 61 63 72 6f |but with| a macro|
|00005560| 2d 61 75 74 6f 6c 6f 61 | 64 20 69 6e 64 69 63 61 |-autoloa|d indica|
|00005570| 74 6f 72 20 6f 6e 20 74 | 68 65 0a 20 20 20 20 70 |tor on t|he. p|
|00005580| 72 6f 70 65 72 74 79 20 | 6c 69 73 74 2c 20 74 68 |roperty |list, th|
|00005590| 65 6e 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |en the v|alue of |
|000055a0| 74 68 65 20 69 6e 64 69 | 63 61 74 6f 72 20 69 73 |the indi|cator is|
|000055b0| 20 61 20 66 69 6c 65 20 | 74 6f 20 6c 6f 61 64 20 | a file |to load |
|000055c0| 77 68 69 63 68 0a 20 20 | 20 20 73 68 6f 75 6c 64 |which. | should|
|000055d0| 20 64 65 66 69 6e 65 20 | 74 68 65 20 6d 61 63 72 | define |the macr|
|000055e0| 6f 2e 0a 0a 20 20 20 20 | 54 68 65 20 69 6e 74 65 |o... |The inte|
|000055f0| 72 70 72 65 74 65 72 27 | 73 20 75 6e 64 65 66 69 |rpreter'|s undefi|
|00005600| 6e 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 68 61 6e |ned func|tion han|
|00005610| 64 6c 65 72 20 77 69 6c | 6c 20 61 6c 73 6f 20 6c |dler wil|l also l|
|00005620| 6f 6f 6b 20 66 6f 72 0a | 20 20 20 20 6d 61 63 72 |ook for.| macr|
|00005630| 6f 2d 61 75 74 6f 6c 6f | 61 64 20 70 72 6f 70 65 |o-autolo|ad prope|
|00005640| 72 74 69 65 73 2c 20 74 | 68 75 73 20 79 6f 75 20 |rties, t|hus you |
|00005650| 6e 65 65 64 6e 27 74 20 | 67 69 76 65 20 61 20 73 |needn't |give a s|
|00005660| 79 6d 62 6f 6c 20 62 6f | 74 68 20 61 6e 0a 20 20 |ymbol bo|th an. |
|00005670| 20 20 61 75 74 6f 6c 6f | 61 64 20 61 6e 64 20 61 | autolo|ad and a|
|00005680| 20 6d 61 63 72 6f 2d 61 | 75 74 6f 6c 6f 61 64 20 | macro-a|utoload |
|00005690| 70 72 6f 70 65 72 74 79 | 2e 0a 0a 20 20 20 20 54 |property|... T|
|000056a0| 68 65 20 64 65 66 61 75 | 6c 74 20 6c 69 73 70 20 |he defau|lt lisp |
|000056b0| 63 6f 6e 74 61 69 6e 73 | 20 6d 61 63 72 6f 2d 61 |contains| macro-a|
|000056c0| 75 74 6f 6c 6f 61 64 20 | 70 72 6f 70 65 72 74 69 |utoload |properti|
|000056d0| 65 73 20 66 6f 72 20 74 | 68 65 20 6d 61 63 72 6f |es for t|he macro|
|000056e0| 73 0a 20 20 20 20 64 65 | 66 73 74 72 75 63 74 2c |s. de|fstruct,|
|000056f0| 20 6c 6f 6f 70 20 61 6e | 64 20 64 65 66 66 6c 61 | loop an|d deffla|
|00005700| 76 6f 72 2e 0a 0a 54 6f | 70 69 63 20 32 3a 0a 20 |vor...To|pic 2:. |
|00005710| 20 20 20 49 74 20 69 73 | 20 6e 6f 77 20 70 6f 73 | It is| now pos|
|00005720| 73 69 62 6c 65 20 74 6f | 20 64 65 66 69 6e 65 20 |sible to| define |
|00005730| 27 63 6f 6d 70 69 6c 65 | 72 20 6f 6e 6c 79 20 6d |'compile|r only m|
|00005740| 61 63 72 6f 73 27 20 6f | 72 20 63 6d 61 63 72 6f |acros' o|r cmacro|
|00005750| 73 2e 0a 20 20 20 20 41 | 20 63 6d 61 63 72 6f 20 |s.. A| cmacro |
|00005760| 61 63 74 73 20 6c 69 6b | 65 20 61 20 6e 6f 72 6d |acts lik|e a norm|
|00005770| 61 6c 20 6d 61 63 72 6f | 2c 20 62 75 74 20 77 69 |al macro|, but wi|
|00005780| 6c 6c 20 6f 6e 6c 79 20 | 62 65 20 75 73 65 64 20 |ll only |be used |
|00005790| 62 79 20 74 68 65 0a 20 | 20 20 20 63 6f 6d 70 69 |by the. | compi|
|000057a0| 6c 65 72 2e 20 20 20 41 | 20 63 6d 61 63 72 6f 20 |ler. A| cmacro |
|000057b0| 69 73 20 73 74 6f 72 65 | 64 20 6f 6e 20 74 68 65 |is store|d on the|
|000057c0| 20 70 72 6f 70 65 72 74 | 79 20 6c 69 73 74 20 6f | propert|y list o|
|000057d0| 66 20 61 0a 20 20 20 20 | 73 79 6d 62 6f 6c 20 75 |f a. |symbol u|
|000057e0| 6e 64 65 72 20 74 68 65 | 20 69 6e 64 69 63 61 74 |nder the| indicat|
|000057f0| 6f 72 20 27 63 6d 61 63 | 72 6f 27 2e 20 20 20 20 |or 'cmac|ro'. |
|00005800| 54 68 75 73 20 61 20 66 | 75 6e 63 74 69 6f 6e 20 |Thus a f|unction |
|00005810| 63 61 6e 0a 20 20 20 20 | 68 61 76 65 20 61 20 6e |can. |have a n|
|00005820| 6f 72 6d 61 6c 20 64 65 | 66 69 6e 69 74 69 6f 6e |ormal de|finition|
|00005830| 20 61 6e 64 20 61 20 63 | 6d 61 63 72 6f 20 64 65 | and a c|macro de|
|00005840| 66 69 6e 69 74 69 6f 6e | 2e 0a 20 20 20 20 54 68 |finition|.. Th|
|00005850| 65 20 6d 61 63 72 6f 20 | 27 64 65 66 63 6d 61 63 |e macro |'defcmac|
|00005860| 72 6f 27 20 68 61 73 20 | 61 20 73 79 6e 74 61 78 |ro' has |a syntax|
|00005870| 20 69 64 65 6e 74 69 63 | 61 6c 20 74 6f 20 27 64 | identic|al to 'd|
|00005880| 65 66 6d 61 63 72 6f 27 | 20 61 6e 64 0a 20 20 20 |efmacro'| and. |
|00005890| 20 63 72 65 61 74 65 73 | 20 63 6d 61 63 72 6f 73 | creates| cmacros|
|000058a0| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 6d 61 63 72 | instead| of macr|
|000058b0| 6f 73 2e 0a 20 20 20 20 | 46 6f 72 20 61 6e 20 65 |os.. |For an e|
|000058c0| 78 61 6d 70 6c 65 20 6f | 66 20 74 68 65 20 75 73 |xample o|f the us|
|000058d0| 65 20 6f 66 20 63 6d 61 | 63 72 6f 73 2c 20 73 65 |e of cma|cros, se|
|000058e0| 65 20 74 68 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |e the de|finition|
|000058f0| 73 0a 20 20 20 20 6f 66 | 20 6e 74 68 63 64 72 20 |s. of| nthcdr |
|00005900| 61 6e 64 20 6e 74 68 20 | 69 6e 20 2f 75 73 72 2f |and nth |in /usr/|
|00005910| 6c 69 62 2f 6c 69 73 70 | 2f 63 6f 6d 6d 6f 6e 32 |lib/lisp|/common2|
|00005920| 2e 6c 0a 0a 20 54 6f 70 | 69 63 20 33 3a 0a 20 20 |.l.. Top|ic 3:. |
|00005930| 20 20 49 66 20 74 68 65 | 20 66 6f 72 6d 20 28 66 | If the| form (f|
|00005940| 6f 6f 20 2e 2e 2e 29 20 | 69 73 20 6d 61 63 72 6f |oo ...) |is macro|
|00005950| 20 65 78 70 61 6e 64 65 | 64 20 61 6e 64 20 74 68 | expande|d and th|
|00005960| 65 20 72 65 73 75 6c 74 | 20 61 6c 73 6f 20 62 65 |e result| also be|
|00005970| 67 69 6e 73 0a 20 20 20 | 20 77 69 74 68 20 74 68 |gins. | with th|
|00005980| 65 20 73 79 6d 62 6f 6c | 20 66 6f 6f 2c 20 74 68 |e symbol| foo, th|
|00005990| 65 6e 20 6c 69 73 7a 74 | 20 77 69 6c 6c 20 73 74 |en liszt| will st|
|000059a0| 6f 70 20 6d 61 63 72 6f | 20 65 78 70 61 6e 64 69 |op macro| expandi|
|000059b0| 6e 67 20 28 70 72 65 76 | 69 6f 75 73 6c 79 0a 20 |ng (prev|iously. |
|000059c0| 20 20 20 69 74 20 67 6f | 74 20 69 6e 74 6f 20 61 | it go|t into a|
|000059d0| 6e 20 69 6e 66 69 6e 69 | 74 65 20 6c 6f 6f 70 29 |n infini|te loop)|
|000059e0| 2e 0a 20 20 20 20 0a 20 | 54 6f 70 69 63 20 34 3a |.. . |Topic 4:|
|000059f0| 0a 20 20 20 20 54 68 65 | 20 66 75 6e 63 74 69 6f |. The| functio|
|00005a00| 6e 20 6e 74 68 20 68 61 | 73 20 62 65 65 6e 20 61 |n nth ha|s been a|
|00005a10| 64 64 65 64 20 74 6f 20 | 46 72 61 6e 7a 2e 0a 20 |dded to |Franz.. |
|00005a20| 20 20 20 28 6e 74 68 20 | 27 78 5f 69 6e 64 65 78 | (nth |'x_index|
|00005a30| 20 27 6c 5f 6c 69 73 74 | 29 0a 20 20 20 20 72 65 | 'l_list|). re|
|00005a40| 74 75 72 6e 73 20 74 68 | 65 20 6e 74 68 20 65 6c |turns th|e nth el|
|00005a50| 65 6d 65 6e 74 20 6f 66 | 20 6c 5f 6c 69 73 74 2c |ement of| l_list,|
|00005a60| 20 77 68 65 72 65 20 74 | 68 65 20 63 61 72 20 6f | where t|he car o|
|00005a70| 66 20 74 68 65 20 6c 69 | 73 74 0a 20 20 20 20 69 |f the li|st. i|
|00005a80| 73 20 61 63 63 65 73 73 | 65 64 20 77 69 74 68 20 |s access|ed with |
|00005a90| 28 6e 74 68 20 30 20 27 | 6c 5f 6c 69 73 74 29 0a |(nth 0 '|l_list).|
|00005aa0| 0a 20 20 20 20 54 68 65 | 20 6d 61 63 72 6f 73 20 |. The| macros |
|00005ab0| 28 70 75 73 68 20 27 67 | 5f 76 61 6c 75 65 20 27 |(push 'g|_value '|
|00005ac0| 67 5f 73 74 61 63 6b 29 | 2c 20 61 6e 64 0a 20 20 |g_stack)|, and. |
|00005ad0| 20 20 09 20 20 20 20 20 | 20 20 28 70 6f 70 20 27 | . | (pop '|
|00005ae0| 67 5f 73 74 61 63 6b 20 | 5b 27 67 5f 69 6e 74 6f |g_stack |['g_into|
|00005af0| 5d 29 0a 20 20 20 20 68 | 61 76 65 20 62 65 65 6e |]). h|ave been|
|00005b00| 20 61 64 64 65 64 20 74 | 6f 20 66 72 61 6e 7a 2e | added t|o franz.|
|00005b10| 0a 20 20 20 20 74 79 70 | 69 63 61 6c 20 75 73 65 |. typ|ical use|
|00005b20| 73 0a 20 20 20 20 20 20 | 28 73 65 74 71 20 66 6f |s. |(setq fo|
|00005b30| 6f 20 6e 69 6c 29 0a 20 | 20 20 20 20 20 28 70 75 |o nil). | (pu|
|00005b40| 73 68 20 27 78 78 78 20 | 66 6f 6f 29 0a 20 20 20 |sh 'xxx |foo). |
|00005b50| 20 20 20 28 70 75 73 68 | 20 31 32 33 20 66 6f 6f | (push| 123 foo|
|00005b60| 29 0a 20 20 20 20 20 20 | 6e 6f 77 20 66 6f 6f 20 |). |now foo |
|00005b70| 3d 20 28 31 32 33 20 78 | 78 78 29 0a 20 20 20 20 |= (123 x|xx). |
|00005b80| 20 20 28 70 6f 70 20 66 | 6f 6f 29 20 72 65 74 75 | (pop f|oo) retu|
|00005b90| 72 6e 73 20 31 32 33 0a | 20 20 20 20 20 20 6e 6f |rns 123.| no|
|00005ba0| 77 20 66 6f 6f 20 3d 20 | 28 78 78 78 29 0a 20 20 |w foo = |(xxx). |
|00005bb0| 20 20 20 20 28 70 6f 70 | 20 66 6f 6f 20 79 79 79 | (pop| foo yyy|
|00005bc0| 29 20 72 65 74 75 72 6e | 73 20 78 78 78 20 61 6e |) return|s xxx an|
|00005bd0| 64 20 73 65 74 73 20 79 | 79 79 20 74 6f 20 78 78 |d sets y|yy to xx|
|00005be0| 78 0a 0a 20 20 20 20 20 | 20 0a 20 54 6f 70 69 63 |x.. | . Topic|
|00005bf0| 20 35 3a 0a 20 20 20 20 | 54 68 65 20 76 65 72 73 | 5:. |The vers|
|00005c00| 69 6f 6e 20 6f 66 20 46 | 6c 61 76 6f 72 73 20 77 |ion of F|lavors w|
|00005c10| 72 69 74 74 65 6e 20 61 | 74 20 4d 69 74 20 66 6f |ritten a|t Mit fo|
|00005c20| 72 20 46 72 61 6e 7a 20 | 68 61 76 65 20 62 65 65 |r Franz |have bee|
|00005c30| 6e 20 74 72 61 6e 73 70 | 6f 72 74 65 64 0a 20 20 |n transp|orted. |
|00005c40| 20 20 68 65 72 65 2e 20 | 20 46 6c 61 76 6f 72 73 | here. | Flavors|
|00005c50| 20 69 73 20 61 20 73 79 | 73 74 65 6d 20 66 6f 72 | is a sy|stem for|
|00005c60| 20 64 6f 69 6e 67 20 6f | 62 6a 65 63 74 20 6f 72 | doing o|bject or|
|00005c70| 69 65 6e 74 65 64 20 70 | 72 6f 67 72 61 6d 6d 69 |iented p|rogrammi|
|00005c80| 6e 67 20 69 6e 0a 20 20 | 20 20 6c 69 73 70 2e 20 |ng in. | lisp. |
|00005c90| 20 54 68 65 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | The doc|umentati|
|00005ca0| 6f 6e 20 66 6f 72 20 66 | 6c 61 76 6f 72 73 20 69 |on for f|lavors i|
|00005cb0| 6e 20 74 68 65 20 4c 69 | 73 70 20 4d 61 63 68 69 |n the Li|sp Machi|
|00005cc0| 6e 65 20 6d 61 6e 75 61 | 6c 0a 20 20 20 20 66 72 |ne manua|l. fr|
|00005cd0| 6f 6d 20 4d 69 74 2e 20 | 20 53 69 6e 63 65 20 4c |om Mit. | Since L|
|00005ce0| 69 73 70 20 4d 61 63 68 | 69 6e 65 20 6d 61 6e 75 |isp Mach|ine manu|
|00005cf0| 61 6c 73 20 61 72 65 20 | 72 61 74 68 65 72 20 73 |als are |rather s|
|00005d00| 63 61 72 63 65 20 61 72 | 6f 75 6e 64 20 68 65 72 |carce ar|ound her|
|00005d10| 65 2c 0a 20 20 20 20 70 | 65 72 68 61 70 73 20 77 |e,. p|erhaps w|
|00005d20| 65 20 63 61 6e 20 66 69 | 6e 64 20 73 6f 6d 65 6f |e can fi|nd someo|
|00005d30| 6e 65 20 74 6f 20 6d 61 | 6b 65 20 63 6f 70 69 65 |ne to ma|ke copie|
|00005d40| 73 20 6f 66 20 74 68 65 | 20 66 6c 61 76 6f 72 20 |s of the| flavor |
|00005d50| 63 68 61 70 74 65 72 20 | 66 6f 72 0a 20 20 20 20 |chapter |for. |
|00005d60| 74 68 6f 73 65 20 69 6e | 74 65 72 65 73 74 65 64 |those in|terested|
|00005d70| 20 69 6e 20 69 74 2e 20 | 20 54 68 65 72 65 20 69 | in it. | There i|
|00005d80| 73 20 61 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |s a desc|ription |
|00005d90| 6f 66 20 74 68 65 20 75 | 6e 69 71 75 65 0a 20 20 |of the u|nique. |
|00005da0| 20 20 66 65 61 74 75 72 | 65 73 20 6f 66 20 74 68 | featur|es of th|
|00005db0| 65 20 46 72 61 6e 7a 20 | 46 6c 61 76 6f 72 73 20 |e Franz |Flavors |
|00005dc0| 69 6e 20 2f 75 73 72 2f | 6c 69 62 2f 6c 69 73 70 |in /usr/|lib/lisp|
|00005dd0| 2f 66 6c 61 76 6f 72 73 | 2e 75 73 61 67 65 2e 0a |/flavors|.usage..|
|00005de0| 20 20 20 20 41 73 20 6d | 65 6e 74 69 6f 6e 65 64 | As m|entioned|
|00005df0| 20 61 62 6f 76 65 2c 20 | 74 68 65 20 66 6c 61 76 | above, |the flav|
|00005e00| 6f 72 73 20 63 6f 64 65 | 20 77 69 6c 6c 20 62 65 |ors code| will be|
|00005e10| 20 61 75 74 6f 6c 6f 61 | 64 65 64 0a 20 20 20 20 | autoloa|ded. |
|00005e20| 77 68 65 6e 20 79 6f 75 | 20 63 61 6c 6c 20 27 64 |when you| call 'd|
|00005e30| 65 66 66 6c 61 76 6f 72 | 27 20 66 6f 72 20 74 68 |efflavor|' for th|
|00005e40| 65 20 66 69 72 73 74 20 | 74 69 6d 65 2e 0a 20 20 |e first |time.. |
|00005e50| 20 20 4f 75 72 20 6c 6f | 63 61 6c 20 66 6c 61 76 | Our lo|cal flav|
|00005e60| 6f 72 73 20 65 78 70 65 | 72 74 20 69 73 20 45 72 |ors expe|rt is Er|
|00005e70| 69 63 20 43 6f 6f 70 65 | 72 20 28 72 2e 65 63 63 |ic Coope|r (r.ecc|
|00005e80| 29 2e 0a 20 0a 20 20 20 | 20 0a 20 20 20 20 0a 20 |).. . | . . |
|00005e90| 20 20 20 0a 0a 0a 0a 46 | 72 6f 6d 20 6a 6b 66 20 | ....F|rom jkf |
|00005ea0| 20 46 72 69 20 4f 63 74 | 20 32 32 20 31 35 3a 34 | Fri Oct| 22 15:4|
|00005eb0| 36 3a 35 31 20 31 39 38 | 32 0a 44 61 74 65 3a 20 |6:51 198|2.Date: |
|00005ec0| 32 32 2d 4f 63 74 2d 38 | 32 20 31 35 3a 34 36 3a |22-Oct-8|2 15:46:|
|00005ed0| 33 32 2d 50 44 54 20 28 | 46 72 69 29 0a 46 72 6f |32-PDT (|Fri).Fro|
|00005ee0| 6d 3a 20 6a 6b 66 20 28 | 4a 6f 68 6e 20 46 6f 64 |m: jkf (|John Fod|
|00005ef0| 65 72 61 72 6f 29 0a 53 | 75 62 6a 65 63 74 3a 20 |eraro).S|ubject: |
|00005f00| 6c 69 73 70 20 6f 70 75 | 73 20 33 38 2e 33 34 0a |lisp opu|s 38.34.|
|00005f10| 4d 65 73 73 61 67 65 2d | 49 64 3a 20 3c 38 32 30 |Message-|Id: <820|
|00005f20| 39 32 32 32 32 34 36 2e | 35 36 31 30 40 55 43 42 |9222246.|5610@UCB|
|00005f30| 4b 49 4d 2e 42 45 52 4b | 45 4c 45 59 2e 41 52 50 |KIM.BERK|ELEY.ARP|
|00005f40| 41 3e 0a 52 65 63 65 69 | 76 65 64 3a 20 62 79 20 |A>.Recei|ved: by |
|00005f50| 55 43 42 4b 49 4d 2e 42 | 45 52 4b 45 4c 45 59 2e |UCBKIM.B|ERKELEY.|
|00005f60| 41 52 50 41 20 28 33 2e | 32 32 32 20 5b 31 30 2f |ARPA (3.|222 [10/|
|00005f70| 31 33 2f 38 32 5d 29 0a | 09 69 64 20 41 30 35 36 |13/82]).|.id A056|
|00005f80| 31 30 3b 20 32 32 2d 4f | 63 74 2d 38 32 20 31 35 |10; 22-O|ct-82 15|
|00005f90| 3a 34 36 3a 35 31 2d 50 | 44 54 20 28 46 72 69 29 |:46:51-P|DT (Fri)|
|00005fa0| 0a 54 6f 3a 20 6c 6f 63 | 61 6c 2d 6c 69 73 70 0a |.To: loc|al-lisp.|
|00005fb0| 53 74 61 74 75 73 3a 20 | 52 4f 0a 0a 0a 20 20 46 |Status: |RO... F|
|00005fc0| 72 61 6e 7a 20 6c 69 73 | 70 20 6e 6f 77 20 68 61 |ranz lis|p now ha|
|00005fd0| 73 20 61 20 66 6f 72 6d | 20 6f 66 20 63 6c 6f 73 |s a form| of clos|
|00005fe0| 75 72 65 20 63 61 6c 6c | 65 64 20 61 6e 20 66 63 |ure call|ed an fc|
|00005ff0| 6c 6f 73 75 72 65 2e 20 | 20 41 20 66 63 6c 6f 73 |losure. | A fclos|
|00006000| 75 72 65 20 69 73 20 61 | 0a 63 6f 6d 70 72 6f 6d |ure is a|.comprom|
|00006010| 69 73 65 20 62 65 74 77 | 65 65 6e 20 61 20 66 75 |ise betw|een a fu|
|00006020| 6e 61 72 67 20 61 6e 64 | 20 74 68 65 20 74 79 70 |narg and| the typ|
|00006030| 65 20 6f 66 20 66 75 6e | 63 74 69 6f 6e 61 6c 20 |e of fun|ctional |
|00006040| 6f 62 6a 65 63 74 20 74 | 68 61 74 20 77 65 0a 63 |object t|hat we.c|
|00006050| 75 72 72 65 6e 74 6c 79 | 20 68 61 76 65 20 69 6e |urrently| have in|
|00006060| 20 46 72 61 6e 7a 2e 20 | 49 6e 20 74 68 69 73 20 | Franz. |In this |
|00006070| 73 68 6f 72 74 20 6e 6f | 74 65 2c 20 49 27 6c 6c |short no|te, I'll|
|00006080| 20 65 78 70 6c 61 69 6e | 20 74 68 72 6f 75 67 68 | explain| through|
|00006090| 20 65 78 61 6d 70 6c 65 | 73 0a 77 68 61 74 20 66 | example|s.what f|
|000060a0| 63 6c 6f 73 75 72 65 73 | 20 61 72 65 20 61 6e 64 |closures| are and|
|000060b0| 20 77 68 65 72 65 20 79 | 6f 75 20 6d 69 67 68 74 | where y|ou might|
|000060c0| 20 75 73 65 20 74 68 65 | 6d 2c 20 61 6e 64 20 66 | use the|m, and f|
|000060d0| 69 6e 61 6c 6c 79 20 64 | 65 73 63 72 69 62 65 20 |inally d|escribe |
|000060e0| 74 68 65 20 6e 65 77 0a | 66 75 6e 63 74 69 6f 6e |the new.|function|
|000060f0| 73 2e 20 20 54 68 65 20 | 66 63 6c 6f 73 75 72 65 |s. The |fclosure|
|00006100| 20 73 79 73 74 65 6d 20 | 77 61 73 20 64 65 73 69 | system |was desi|
|00006110| 67 6e 65 64 20 74 6f 20 | 62 65 20 63 6f 6d 70 61 |gned to |be compa|
|00006120| 74 69 62 6c 65 20 77 69 | 74 68 20 74 68 65 20 4c |tible wi|th the L|
|00006130| 69 73 70 0a 4d 61 63 68 | 69 6e 65 20 63 6c 6f 73 |isp.Mach|ine clos|
|00006140| 75 72 65 73 2c 20 73 6f | 20 79 6f 75 20 6d 61 79 |ures, so| you may|
|00006150| 20 77 61 6e 74 20 74 6f | 20 6c 6f 6f 6b 20 61 74 | want to| look at|
|00006160| 20 61 20 4c 69 73 70 20 | 4d 61 63 68 69 6e 65 20 | a Lisp |Machine |
|00006170| 6d 61 6e 75 61 6c 20 66 | 6f 72 20 6d 6f 72 65 0a |manual f|or more.|
|00006180| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 20 20 66 63 |informat|ion. fc|
|00006190| 6c 6f 73 75 72 65 20 61 | 72 65 20 72 65 6c 61 74 |losure a|re relat|
|000061a0| 65 64 20 74 6f 20 63 6c | 6f 73 75 72 65 73 20 69 |ed to cl|osures i|
|000061b0| 6e 20 74 68 69 73 20 77 | 61 79 3a 0a 20 20 20 28 |n this w|ay:. (|
|000061c0| 66 63 6c 6f 73 75 72 65 | 20 27 28 61 20 62 29 20 |fclosure| '(a b) |
|000061d0| 27 66 6f 6f 29 20 3c 3d | 3d 3e 20 28 6c 65 74 20 |'foo) <=|=> (let |
|000061e0| 28 28 61 20 61 29 20 28 | 62 20 62 29 29 20 28 63 |((a a) (|b b)) (c|
|000061f0| 6c 6f 73 75 72 65 20 27 | 28 61 20 62 29 20 27 66 |losure '|(a b) 'f|
|00006200| 6f 6f 29 29 0a 0a 41 20 | 65 78 61 6d 70 6c 65 20 |oo))..A |example |
|00006210| 6f 66 20 74 68 65 20 75 | 73 65 20 6f 66 20 66 63 |of the u|se of fc|
|00006220| 6c 6f 73 75 72 65 73 3a | 0a 0a 2d 3e 28 73 65 74 |losures:|..->(set|
|00006230| 71 20 63 6f 75 6e 74 65 | 72 20 30 29 0a 30 0a 2d |q counte|r 0).0.-|
|00006240| 3e 28 73 65 74 71 20 78 | 20 28 66 63 6c 6f 73 75 |>(setq x| (fclosu|
|00006250| 72 65 20 27 28 63 6f 75 | 6e 74 65 72 29 20 27 28 |re '(cou|nter) '(|
|00006260| 6c 61 6d 62 64 61 20 28 | 76 61 6c 29 20 28 73 65 |lambda (|val) (se|
|00006270| 74 71 20 63 6f 75 6e 74 | 65 72 20 28 2b 20 76 61 |tq count|er (+ va|
|00006280| 6c 20 63 6f 75 6e 74 65 | 72 29 29 29 29 29 0a 66 |l counte|r))))).f|
|00006290| 63 6c 6f 73 75 72 65 5b | 31 5d 0a 0a 54 68 65 20 |closure[|1]..The |
|000062a0| 66 75 6e 63 74 69 6f 6e | 20 27 66 63 6c 6f 73 75 |function| 'fclosu|
|000062b0| 72 65 27 20 63 72 65 61 | 74 65 73 20 61 20 6e 65 |re' crea|tes a ne|
|000062c0| 77 20 74 79 70 65 20 6f | 66 20 6f 62 6a 65 63 74 |w type o|f object|
|000062d0| 20 63 61 6c 6c 65 64 20 | 61 20 66 63 6c 6f 73 75 | called |a fclosu|
|000062e0| 72 65 2e 0a 41 20 66 63 | 6c 6f 73 75 72 65 20 6f |re..A fc|losure o|
|000062f0| 62 6a 65 63 74 20 63 6f | 6e 74 61 69 6e 73 20 61 |bject co|ntains a|
|00006300| 20 66 75 6e 63 74 69 6f | 6e 61 6c 20 6f 62 6a 65 | functio|nal obje|
|00006310| 63 74 2c 20 61 6e 64 20 | 61 20 73 65 74 20 6f 66 |ct, and |a set of|
|00006320| 20 73 79 6d 62 6f 6c 73 | 20 61 6e 64 0a 76 61 6c | symbols| and.val|
|00006330| 75 65 73 20 66 6f 72 20 | 74 68 65 20 73 79 6d 62 |ues for |the symb|
|00006340| 6f 6c 73 2e 20 20 49 6e | 20 74 68 65 20 61 62 6f |ols. In| the abo|
|00006350| 76 65 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 65 20 |ve examp|le, the |
|00006360| 66 63 6c 6f 73 75 72 65 | 20 66 75 6e 63 74 69 6f |fclosure| functio|
|00006370| 6e 61 6c 0a 6f 62 6a 65 | 63 74 20 69 73 20 28 6c |nal.obje|ct is (l|
|00006380| 61 6d 62 64 61 20 28 76 | 61 6c 29 20 28 73 65 74 |ambda (v|al) (set|
|00006390| 71 20 63 6f 75 6e 74 65 | 72 20 28 2b 20 76 61 6c |q counte|r (+ val|
|000063a0| 20 63 6f 75 6e 74 65 72 | 29 29 29 0a 61 6e 64 20 | counter|))).and |
|000063b0| 74 68 65 20 73 65 74 20 | 6f 66 20 73 79 6d 62 6f |the set |of symbo|
|000063c0| 6c 73 20 61 6e 64 20 76 | 61 6c 75 65 73 20 6a 75 |ls and v|alues ju|
|000063d0| 73 74 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |st conta|ins the |
|000063e0| 73 79 6d 62 6f 6c 20 27 | 63 6f 75 6e 74 65 72 27 |symbol '|counter'|
|000063f0| 20 61 6e 64 0a 7a 65 72 | 6f 2c 20 74 68 65 20 76 | and.zer|o, the v|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.