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: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 44 61 74 65 3a 20 57 65 | 64 2c 20 31 33 20 4d 61 |Date: We|d, 13 Ma|
|00000010| 72 20 38 35 20 31 36 3a | 34 37 3a 33 35 20 70 73 |r 85 16:|47:35 ps|
|00000020| 74 0a 46 72 6f 6d 3a 20 | 64 65 63 76 61 78 21 75 |t.From: |decvax!u|
|00000030| 63 62 76 61 78 21 55 43 | 42 4a 41 44 45 21 75 63 |cbvax!UC|BJADE!uc|
|00000040| 62 6a 61 64 65 3a 6d 77 | 6d 20 28 4d 69 6b 65 20 |bjade:mw|m (Mike |
|00000050| 4d 65 79 65 72 29 0a 4d | 65 73 73 61 67 65 2d 49 |Meyer).M|essage-I|
|00000060| 64 3a 20 3c 38 35 30 33 | 31 34 30 30 34 37 2e 41 |d: <8503|140047.A|
|00000070| 41 31 31 37 39 31 40 75 | 63 62 6a 61 64 65 2e 43 |A11791@u|cbjade.C|
|00000080| 43 2e 42 65 72 6b 65 6c | 65 79 2e 41 52 50 41 3e |C.Berkel|ey.ARPA>|
|00000090| 0a 53 75 62 6a 65 63 74 | 3a 20 58 4c 49 53 50 20 |.Subject|: XLISP |
|000000a0| 31 2e 34 20 70 61 72 74 | 20 31 20 28 6f 66 20 34 |1.4 part| 1 (of 4|
|000000b0| 29 0a 0a 0a 23 21 20 2f | 62 69 6e 2f 73 68 0a 23 |)...#! /|bin/sh.#|
|000000c0| 20 54 68 69 73 20 69 73 | 20 61 20 73 68 65 6c 6c | This is| a shell|
|000000d0| 20 61 72 63 68 69 76 65 | 2c 20 6d 65 61 6e 69 6e | archive|, meanin|
|000000e0| 67 3a 0a 23 20 31 2e 20 | 52 65 6d 6f 76 65 20 65 |g:.# 1. |Remove e|
|000000f0| 76 65 72 79 74 68 69 6e | 67 20 61 62 6f 76 65 20 |verythin|g above |
|00000100| 74 68 65 20 23 21 20 2f | 62 69 6e 2f 73 68 20 6c |the #! /|bin/sh l|
|00000110| 69 6e 65 2e 0a 23 20 32 | 2e 20 53 61 76 65 20 74 |ine..# 2|. Save t|
|00000120| 68 65 20 72 65 73 75 6c | 74 69 6e 67 20 74 65 78 |he resul|ting tex|
|00000130| 74 20 69 6e 20 61 20 66 | 69 6c 65 2e 0a 23 20 33 |t in a f|ile..# 3|
|00000140| 2e 20 45 78 65 63 75 74 | 65 20 74 68 65 20 66 69 |. Execut|e the fi|
|00000150| 6c 65 20 77 69 74 68 20 | 2f 62 69 6e 2f 73 68 20 |le with |/bin/sh |
|00000160| 28 6e 6f 74 20 63 73 68 | 29 20 74 6f 20 63 72 65 |(not csh|) to cre|
|00000170| 61 74 65 20 74 68 65 20 | 66 69 6c 65 73 3a 0a 23 |ate the |files:.#|
|00000180| 09 78 6c 69 73 70 2e 64 | 6f 63 0a 23 20 54 68 69 |.xlisp.d|oc.# Thi|
|00000190| 73 20 61 72 63 68 69 76 | 65 20 63 72 65 61 74 65 |s archiv|e create|
|000001a0| 64 3a 20 4d 6f 6e 20 44 | 65 63 20 20 32 20 31 30 |d: Mon D|ec 2 10|
|000001b0| 3a 30 39 3a 33 35 20 31 | 39 38 35 0a 65 78 70 6f |:09:35 1|985.expo|
|000001c0| 72 74 20 50 41 54 48 3b | 20 50 41 54 48 3d 2f 62 |rt PATH;| PATH=/b|
|000001d0| 69 6e 3a 24 50 41 54 48 | 0a 65 63 68 6f 20 73 68 |in:$PATH|.echo sh|
|000001e0| 61 72 3a 20 65 78 74 72 | 61 63 74 69 6e 67 20 22 |ar: extr|acting "|
|000001f0| 27 78 6c 69 73 70 2e 64 | 6f 63 27 22 20 27 28 35 |'xlisp.d|oc'" '(5|
|00000200| 33 33 34 39 20 63 68 61 | 72 61 63 74 65 72 73 29 |3349 cha|racters)|
|00000210| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 78 6c |'.if tes|t -f 'xl|
|00000220| 69 73 70 2e 64 6f 63 27 | 0a 74 68 65 6e 0a 09 65 |isp.doc'|.then..e|
|00000230| 63 68 6f 20 73 68 61 72 | 3a 20 77 69 6c 6c 20 6e |cho shar|: will n|
|00000240| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00000250| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 78 6c |isting f|ile "'xl|
|00000260| 69 73 70 2e 64 6f 63 27 | 22 0a 65 6c 73 65 0a 73 |isp.doc'|".else.s|
|00000270| 65 64 20 27 73 2f 5e 58 | 2f 2f 27 20 3c 3c 20 5c |ed 's/^X|//' << \|
|00000280| 53 48 41 52 5f 45 4f 46 | 20 3e 20 27 78 6c 69 73 |SHAR_EOF| > 'xlis|
|00000290| 70 2e 64 6f 63 27 0a 0a | 0a 0a 0a 0a 20 20 20 20 |p.doc'..|.... |
|000002a0| 20 20 20 20 20 20 20 20 | 58 4c 49 53 50 3a 20 41 | |XLISP: A|
|000002b0| 6e 20 45 78 70 65 72 69 | 6d 65 6e 74 61 6c 20 4f |n Experi|mental O|
|000002c0| 62 6a 65 63 74 20 4f 72 | 69 65 6e 74 65 64 20 4c |bject Or|iented L|
|000002d0| 61 6e 67 75 61 67 65 0a | 0a 20 20 20 20 20 20 20 |anguage.|. |
|000002e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002f0| 20 20 20 20 20 20 20 56 | 65 72 73 69 6f 6e 20 31 | V|ersion 1|
|00000300| 2e 34 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.4.. | |
|00000310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000320| 4a 61 6e 75 61 72 79 20 | 31 2c 20 31 39 38 35 0a |January |1, 1985.|
|00000330| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000350| 20 20 20 20 20 62 79 0a | 20 20 20 20 20 20 20 20 | by.| |
|00000360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000370| 20 20 20 20 20 20 20 44 | 61 76 69 64 20 42 65 74 | D|avid Bet|
|00000380| 7a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |z. | |
|00000390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 31 34 | | 114|
|000003a0| 20 44 61 76 65 6e 70 6f | 72 74 20 41 76 65 2e 0a | Davenpo|rt Ave..|
|000003b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003c0| 20 20 20 20 20 20 20 20 | 20 4d 61 6e 63 68 65 73 | | Manches|
|000003d0| 74 65 72 2c 20 4e 48 20 | 20 30 33 31 30 33 0a 0a |ter, NH | 03103..|
|000003e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003f0| 20 20 20 20 20 20 20 20 | 20 28 36 30 33 29 20 36 | | (603) 6|
|00000400| 32 35 2d 34 36 39 31 20 | 28 68 6f 6d 65 29 0a 0c |25-4691 |(home)..|
|00000410| 0a 0a 0a 20 20 20 20 20 | 20 58 4c 49 53 50 3a 20 |... | XLISP: |
|00000420| 41 6e 20 45 78 70 65 72 | 69 6d 65 6e 74 61 6c 20 |An Exper|imental |
|00000430| 4f 62 6a 65 63 74 20 4f | 72 69 65 6e 74 65 64 20 |Object O|riented |
|00000440| 4c 61 6e 67 75 61 67 65 | 20 20 20 20 20 20 20 20 |Language| |
|00000450| 20 20 20 20 20 20 20 20 | 20 50 61 67 65 20 32 0a | | Page 2.|
|00000460| 20 20 20 20 20 20 54 41 | 42 4c 45 20 4f 46 20 43 | TA|BLE OF C|
|00000470| 4f 4e 54 45 4e 54 53 0a | 0a 0a 20 20 20 20 20 20 |ONTENTS.|.. |
|00000480| 20 20 20 20 20 20 20 20 | 31 2e 30 20 20 20 20 20 | |1.0 |
|00000490| 49 4e 54 52 4f 44 55 43 | 54 49 4f 4e 20 2e 20 2e |INTRODUC|TION . .|
|000004a0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|000004b0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|000004c0| 20 2e 20 2e 20 33 0a 20 | 20 20 20 20 20 20 20 20 | . . 3. | |
|000004d0| 20 20 20 20 20 32 2e 30 | 20 20 20 20 20 41 20 4e | 2.0| A N|
|000004e0| 4f 54 45 20 46 52 4f 4d | 20 54 48 45 20 41 55 54 |OTE FROM| THE AUT|
|000004f0| 48 4f 52 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |HOR . . |. . . . |
|00000500| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000510| 2e 20 34 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |. 4. | |
|00000520| 20 20 33 2e 30 20 20 20 | 20 20 58 4c 49 53 50 20 | 3.0 | XLISP |
|00000530| 43 4f 4d 4d 41 4e 44 20 | 4c 4f 4f 50 20 2e 20 2e |COMMAND |LOOP . .|
|00000540| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000550| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 35 | . . . .| . . . 5|
|00000560| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 34 |. | 4|
|00000570| 2e 30 20 20 20 20 20 42 | 52 45 41 4b 20 43 4f 4d |.0 B|REAK COM|
|00000580| 4d 41 4e 44 20 4c 4f 4f | 50 20 2e 20 2e 20 2e 20 |MAND LOO|P . . . |
|00000590| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|000005a0| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 36 0a 20 20 |. . . . |. . 6. |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 35 2e 30 20 | | 5.0 |
|000005c0| 20 20 20 20 44 41 54 41 | 20 54 59 50 45 53 20 2e | DATA| TYPES .|
|000005d0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|000005e0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|000005f0| 20 2e 20 2e 20 2e 20 2e | 20 37 0a 20 20 20 20 20 | . . . .| 7. |
|00000600| 20 20 20 20 20 20 20 20 | 20 36 2e 30 20 20 20 20 | | 6.0 |
|00000610| 20 54 48 45 20 45 56 41 | 4c 55 41 54 4f 52 20 20 | THE EVA|LUATOR |
|00000620| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000630| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000640| 2e 20 2e 20 2e 20 38 0a | 20 20 20 20 20 20 20 20 |. . . 8.| |
|00000650| 20 20 20 20 20 20 37 2e | 30 20 20 20 20 20 4c 45 | 7.|0 LE|
|00000660| 58 49 43 41 4c 20 43 4f | 4e 56 45 4e 54 49 4f 4e |XICAL CO|NVENTION|
|00000670| 53 20 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e |S . . .| . . . .|
|00000680| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000690| 20 2e 20 39 0a 20 20 20 | 20 20 20 20 20 20 20 20 | . 9. | |
|000006a0| 20 20 20 38 2e 30 20 20 | 20 20 20 4f 42 4a 45 43 | 8.0 | OBJEC|
|000006b0| 54 53 20 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |TS . . |. . . . |
|000006c0| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|000006d0| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 20 31 |. . . . |. . . 1|
|000006e0| 30 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0. | |
|000006f0| 39 2e 30 20 20 20 20 20 | 53 59 4d 42 4f 4c 53 20 |9.0 |SYMBOLS |
|00000700| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000710| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000720| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 20 31 33 0a 20 | . . . .| . 13. |
|00000730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 30 2e | | 10.|
|00000740| 30 20 20 20 20 45 56 41 | 4c 55 41 54 49 4f 4e 20 |0 EVA|LUATION |
|00000750| 46 55 4e 43 54 49 4f 4e | 53 20 2e 20 2e 20 2e 20 |FUNCTION|S . . . |
|00000760| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000770| 2e 20 2e 20 2e 20 2e 20 | 20 31 34 0a 20 20 20 20 |. . . . | 14. |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 31 31 2e 30 20 20 | | 11.0 |
|00000790| 20 20 53 59 4d 42 4f 4c | 20 46 55 4e 43 54 49 4f | SYMBOL| FUNCTIO|
|000007a0| 4e 53 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e |NS . . .| . . . .|
|000007b0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|000007c0| 20 2e 20 2e 20 20 31 35 | 0a 20 20 20 20 20 20 20 | . . 15|. |
|000007d0| 20 20 20 20 20 20 20 31 | 32 2e 30 20 20 20 20 50 | 1|2.0 P|
|000007e0| 52 4f 50 45 52 54 59 20 | 4c 49 53 54 20 46 55 4e |ROPERTY |LIST FUN|
|000007f0| 43 54 49 4f 4e 53 20 20 | 2e 20 2e 20 2e 20 2e 20 |CTIONS |. . . . |
|00000800| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000810| 2e 20 20 31 37 0a 20 20 | 20 20 20 20 20 20 20 20 |. 17. | |
|00000820| 20 20 20 20 31 33 2e 30 | 20 20 20 20 4c 49 53 54 | 13.0| LIST|
|00000830| 20 46 55 4e 43 54 49 4f | 4e 53 20 2e 20 2e 20 2e | FUNCTIO|NS . . .|
|00000840| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000850| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 20 | . . . .| . . . |
|00000860| 31 38 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |18. | |
|00000870| 20 31 34 2e 30 20 20 20 | 20 44 45 53 54 52 55 43 | 14.0 | DESTRUC|
|00000880| 54 49 56 45 20 4c 49 53 | 54 20 46 55 4e 43 54 49 |TIVE LIS|T FUNCTI|
|00000890| 4f 4e 53 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |ONS . . |. . . . |
|000008a0| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 20 32 31 0a |. . . . |. . 21.|
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 35 | | 15|
|000008c0| 2e 30 20 20 20 20 50 52 | 45 44 49 43 41 54 45 20 |.0 PR|EDICATE |
|000008d0| 46 55 4e 43 54 49 4f 4e | 53 20 20 2e 20 2e 20 2e |FUNCTION|S . . .|
|000008e0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|000008f0| 20 2e 20 2e 20 2e 20 2e | 20 20 32 32 0a 20 20 20 | . . . .| 22. |
|00000900| 20 20 20 20 20 20 20 20 | 20 20 20 31 36 2e 30 20 | | 16.0 |
|00000910| 20 20 20 43 4f 4e 54 52 | 4f 4c 20 46 55 4e 43 54 | CONTR|OL FUNCT|
|00000920| 49 4f 4e 53 20 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |IONS . |. . . . |
|00000930| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000940| 2e 20 2e 20 2e 20 20 32 | 34 0a 20 20 20 20 20 20 |. . . 2|4. |
|00000950| 20 20 20 20 20 20 20 20 | 31 37 2e 30 20 20 20 20 | |17.0 |
|00000960| 4c 4f 4f 50 49 4e 47 20 | 46 55 4e 43 54 49 4f 4e |LOOPING |FUNCTION|
|00000970| 53 20 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e |S . . .| . . . .|
|00000980| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000990| 20 2e 20 20 32 35 0a 20 | 20 20 20 20 20 20 20 20 | . 25. | |
|000009a0| 20 20 20 20 20 31 38 2e | 30 20 20 20 20 54 48 45 | 18.|0 THE|
|000009b0| 20 50 52 4f 47 52 41 4d | 20 46 45 41 54 55 52 45 | PROGRAM| FEATURE|
|000009c0| 20 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 | . . . |. . . . |
|000009d0| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|000009e0| 20 32 36 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | 26. | |
|000009f0| 20 20 31 39 2e 30 20 20 | 20 20 44 45 42 55 47 47 | 19.0 | DEBUGG|
|00000a00| 49 4e 47 20 41 4e 44 20 | 45 52 52 4f 52 20 48 41 |ING AND |ERROR HA|
|00000a10| 4e 44 4c 49 4e 47 20 2e | 20 2e 20 2e 20 2e 20 2e |NDLING .| . . . .|
|00000a20| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 20 32 37 | . . . .| . . 27|
|00000a30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 32 |. | 2|
|00000a40| 30 2e 30 20 20 20 20 41 | 52 49 54 48 4d 45 54 49 |0.0 A|RITHMETI|
|00000a50| 43 20 46 55 4e 43 54 49 | 4f 4e 53 20 2e 20 2e 20 |C FUNCTI|ONS . . |
|00000a60| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000a70| 2e 20 2e 20 2e 20 2e 20 | 2e 20 20 32 38 0a 20 20 |. . . . |. 28. |
|00000a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 31 2e 30 | | 21.0|
|00000a90| 20 20 20 20 42 49 54 57 | 49 53 45 20 4c 4f 47 49 | BITW|ISE LOGI|
|00000aa0| 43 41 4c 20 46 55 4e 43 | 54 49 4f 4e 53 20 20 2e |CAL FUNC|TIONS .|
|00000ab0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000ac0| 20 2e 20 2e 20 2e 20 20 | 32 39 0a 20 20 20 20 20 | . . . |29. |
|00000ad0| 20 20 20 20 20 20 20 20 | 20 32 32 2e 30 20 20 20 | | 22.0 |
|00000ae0| 20 52 45 4c 41 54 49 4f | 4e 41 4c 20 46 55 4e 43 | RELATIO|NAL FUNC|
|00000af0| 54 49 4f 4e 53 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |TIONS . |. . . . |
|00000b00| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000b10| 2e 20 2e 20 20 33 30 0a | 20 20 20 20 20 20 20 20 |. . 30.| |
|00000b20| 20 20 20 20 20 20 32 33 | 2e 30 20 20 20 20 53 54 | 23|.0 ST|
|00000b30| 52 49 4e 47 20 46 55 4e | 43 54 49 4f 4e 53 20 2e |RING FUN|CTIONS .|
|00000b40| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000b50| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000b60| 20 20 33 31 0a 20 20 20 | 20 20 20 20 20 20 20 20 | 31. | |
|00000b70| 20 20 20 32 34 2e 30 20 | 20 20 20 49 4e 50 55 54 | 24.0 | INPUT|
|00000b80| 2f 4f 55 54 50 55 54 20 | 46 55 4e 43 54 49 4f 4e |/OUTPUT |FUNCTION|
|00000b90| 53 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |S . . . |. . . . |
|00000ba0| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 20 33 |. . . . |. . . 3|
|00000bb0| 32 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |2. | |
|00000bc0| 32 35 2e 30 20 20 20 20 | 46 49 4c 45 20 49 2f 4f |25.0 |FILE I/O|
|00000bd0| 20 46 55 4e 43 54 49 4f | 4e 53 20 2e 20 2e 20 2e | FUNCTIO|NS . . .|
|00000be0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 2e 20 2e 20 2e | . . . .| . . . .|
|00000bf0| 20 2e 20 2e 20 2e 20 2e | 20 2e 20 20 33 33 0a 20 | . . . .| . 33. |
|00000c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 32 36 2e | | 26.|
|00000c10| 30 20 20 20 20 53 59 53 | 54 45 4d 20 46 55 4e 43 |0 SYS|TEM FUNC|
|00000c20| 54 49 4f 4e 53 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |TIONS . |. . . . |
|00000c30| 2e 20 2e 20 2e 20 2e 20 | 2e 20 2e 20 2e 20 2e 20 |. . . . |. . . . |
|00000c40| 2e 20 2e 20 2e 20 2e 20 | 20 33 34 0a 0c 0a 0a 0a |. . . . | 34.....|
|00000c50| 20 20 20 20 20 20 58 4c | 49 53 50 3a 20 41 6e 20 | XL|ISP: An |
|00000c60| 45 78 70 65 72 69 6d 65 | 6e 74 61 6c 20 4f 62 6a |Experime|ntal Obj|
|00000c70| 65 63 74 20 4f 72 69 65 | 6e 74 65 64 20 4c 61 6e |ect Orie|nted Lan|
|00000c80| 67 75 61 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |guage | |
|00000c90| 20 20 20 20 20 20 50 61 | 67 65 20 33 0a 20 20 20 | Pa|ge 3. |
|00000ca0| 20 20 20 49 4e 54 52 4f | 44 55 43 54 49 4f 4e 0a | INTRO|DUCTION.|
|00000cb0| 0a 0a 20 20 20 20 20 20 | 31 2e 30 20 20 49 4e 54 |.. |1.0 INT|
|00000cc0| 52 4f 44 55 43 54 49 4f | 4e 0a 0a 20 20 20 20 20 |RODUCTIO|N.. |
|00000cd0| 20 58 4c 49 53 50 20 69 | 73 20 61 6e 20 65 78 70 | XLISP i|s an exp|
|00000ce0| 65 72 69 6d 65 6e 74 61 | 6c 20 70 72 6f 67 72 61 |erimenta|l progra|
|00000cf0| 6d 6d 69 6e 67 20 6c 61 | 6e 67 75 61 67 65 20 63 |mming la|nguage c|
|00000d00| 6f 6d 62 69 6e 69 6e 67 | 20 73 6f 6d 65 0a 20 20 |ombining| some. |
|00000d10| 20 20 20 20 6f 66 20 20 | 74 68 65 20 20 66 65 61 | of |the fea|
|00000d20| 74 75 72 65 73 20 20 6f | 66 20 4c 49 53 50 20 77 |tures o|f LISP w|
|00000d30| 69 74 68 20 61 6e 20 6f | 62 6a 65 63 74 20 6f 72 |ith an o|bject or|
|00000d40| 69 65 6e 74 65 64 20 65 | 78 74 65 6e 73 69 6f 6e |iented e|xtension|
|00000d50| 0a 20 20 20 20 20 20 63 | 61 70 61 62 69 6c 69 74 |. c|apabilit|
|00000d60| 79 2e 20 20 49 74 20 77 | 61 73 20 20 69 6d 70 6c |y. It w|as impl|
|00000d70| 65 6d 65 6e 74 65 64 20 | 20 74 6f 20 20 61 6c 6c |emented | to all|
|00000d80| 6f 77 20 20 65 78 70 65 | 72 69 6d 65 6e 74 61 74 |ow expe|rimentat|
|00000d90| 69 6f 6e 0a 20 20 20 20 | 20 20 77 69 74 68 20 20 |ion. | with |
|00000da0| 6f 62 6a 65 63 74 20 6f | 72 69 65 6e 74 65 64 20 |object o|riented |
|00000db0| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 6f 6e 20 73 |programm|ing on s|
|00000dc0| 6d 61 6c 6c 20 63 6f 6d | 70 75 74 65 72 73 2e 20 |mall com|puters. |
|00000dd0| 20 54 68 65 72 65 0a 20 | 20 20 20 20 20 61 72 65 | There. | are|
|00000de0| 20 63 75 72 72 65 6e 74 | 6c 79 20 69 6d 70 6c 65 | current|ly imple|
|00000df0| 6d 65 6e 74 61 74 69 6f | 6e 73 20 72 75 6e 6e 69 |mentatio|ns runni|
|00000e00| 6e 67 20 6f 6e 20 20 74 | 68 65 20 20 50 44 50 2d |ng on t|he PDP-|
|00000e10| 31 31 20 20 75 6e 64 65 | 72 0a 20 20 20 20 20 20 |11 unde|r. |
|00000e20| 55 4e 49 58 20 20 56 37 | 2c 20 6f 6e 20 74 68 65 |UNIX V7|, on the|
|00000e30| 20 56 41 58 2d 31 31 20 | 75 6e 64 65 72 20 56 41 | VAX-11 |under VA|
|00000e40| 58 2f 56 4d 53 20 61 6e | 64 20 42 65 72 6b 65 6c |X/VMS an|d Berkel|
|00000e50| 65 79 20 56 41 58 2f 55 | 4e 49 58 2c 0a 20 20 20 |ey VAX/U|NIX,. |
|00000e60| 20 20 20 61 6e 64 20 6f | 6e 20 74 68 65 20 38 30 | and o|n the 80|
|00000e70| 38 38 2f 38 30 38 36 20 | 75 6e 64 65 72 20 43 50 |88/8086 |under CP|
|00000e80| 2f 4d 2d 38 36 20 6f 72 | 20 4d 53 2d 44 4f 53 2e |/M-86 or| MS-DOS.|
|00000e90| 20 20 41 20 76 65 72 73 | 69 6f 6e 20 20 69 73 0a | A vers|ion is.|
|00000ea0| 20 20 20 20 20 20 63 75 | 72 72 65 6e 74 6c 79 20 | cu|rrently |
|00000eb0| 20 62 65 69 6e 67 20 20 | 64 65 76 65 6c 6f 70 65 | being |develope|
|00000ec0| 64 20 66 6f 72 20 74 68 | 65 20 36 38 30 30 30 20 |d for th|e 68000 |
|00000ed0| 75 6e 64 65 72 20 43 50 | 2f 4d 2d 36 38 4b 20 61 |under CP|/M-68K a|
|00000ee0| 6e 64 0a 20 20 20 20 20 | 20 66 6f 72 20 74 68 65 |nd. | for the|
|00000ef0| 20 41 70 70 6c 65 20 4d | 61 63 69 6e 74 6f 73 68 | Apple M|acintosh|
|00000f00| 2e 20 20 49 74 20 69 73 | 20 63 6f 6d 70 6c 65 74 |. It is| complet|
|00000f10| 65 6c 79 20 20 77 72 69 | 74 74 65 6e 20 20 69 6e |ely wri|tten in|
|00000f20| 20 20 74 68 65 0a 20 20 | 20 20 20 20 70 72 6f 67 | the. | prog|
|00000f30| 72 61 6d 6d 69 6e 67 20 | 20 6c 61 6e 67 75 61 67 |ramming | languag|
|00000f40| 65 20 20 27 43 27 20 20 | 61 6e 64 20 69 73 20 65 |e 'C' |and is e|
|00000f50| 61 73 69 6c 79 20 65 78 | 74 65 6e 64 65 64 20 77 |asily ex|tended w|
|00000f60| 69 74 68 20 75 73 65 72 | 0a 20 20 20 20 20 20 77 |ith user|. w|
|00000f70| 72 69 74 74 65 6e 20 62 | 75 69 6c 74 2d 69 6e 20 |ritten b|uilt-in |
|00000f80| 66 75 6e 63 74 69 6f 6e | 73 20 61 6e 64 20 63 6c |function|s and cl|
|00000f90| 61 73 73 65 73 2e 20 20 | 49 74 20 69 73 20 61 76 |asses. |It is av|
|00000fa0| 61 69 6c 61 62 6c 65 20 | 20 69 6e 0a 20 20 20 20 |ailable | in. |
|00000fb0| 20 20 73 6f 75 72 63 65 | 20 20 20 66 6f 72 6d 20 | source| form |
|00000fc0| 20 20 66 72 65 65 20 20 | 6f 66 20 20 63 68 61 72 | free |of char|
|00000fd0| 67 65 20 20 74 6f 20 20 | 6e 6f 6e 2d 63 6f 6d 6d |ge to |non-comm|
|00000fe0| 65 72 63 69 61 6c 20 20 | 75 73 65 72 73 2e 0a 20 |ercial |users.. |
|00000ff0| 20 20 20 20 20 50 72 6f | 73 70 65 63 74 69 76 65 | Pro|spective|
|00001000| 20 63 6f 6d 6d 65 72 63 | 69 61 6c 20 75 73 65 72 | commerc|ial user|
|00001010| 73 20 73 68 6f 75 6c 64 | 20 63 6f 6e 74 61 63 74 |s should| contact|
|00001020| 20 74 68 65 20 20 61 75 | 74 68 6f 72 20 20 66 6f | the au|thor fo|
|00001030| 72 0a 20 20 20 20 20 20 | 70 65 72 6d 69 73 73 69 |r. |permissi|
|00001040| 6f 6e 20 74 6f 20 75 73 | 65 20 58 4c 49 53 50 2e |on to us|e XLISP.|
|00001050| 0a 0a 20 20 20 20 20 20 | 4d 61 6e 79 20 74 72 61 |.. |Many tra|
|00001060| 64 69 74 69 6f 6e 61 6c | 20 4c 49 53 50 20 66 75 |ditional| LISP fu|
|00001070| 6e 63 74 69 6f 6e 73 20 | 61 72 65 20 62 75 69 6c |nctions |are buil|
|00001080| 74 20 20 69 6e 74 6f 20 | 20 58 4c 49 53 50 2e 20 |t into | XLISP. |
|00001090| 20 20 49 6e 0a 20 20 20 | 20 20 20 61 64 64 69 74 | In. | addit|
|000010a0| 69 6f 6e 2c 20 20 58 4c | 49 53 50 20 64 65 66 69 |ion, XL|ISP defi|
|000010b0| 6e 65 73 20 74 68 65 20 | 6f 62 6a 65 63 74 73 20 |nes the |objects |
|000010c0| 27 4f 62 6a 65 63 74 27 | 20 61 6e 64 20 27 43 6c |'Object'| and 'Cl|
|000010d0| 61 73 73 27 20 61 73 0a | 20 20 20 20 20 20 70 72 |ass' as.| pr|
|000010e0| 69 6d 69 74 69 76 65 73 | 2e 20 20 20 27 4f 62 6a |imitives|. 'Obj|
|000010f0| 65 63 74 27 20 20 69 73 | 20 20 74 68 65 20 20 6f |ect' is| the o|
|00001100| 6e 6c 79 20 20 63 6c 61 | 73 73 20 20 74 68 61 74 |nly cla|ss that|
|00001110| 20 20 68 61 73 20 20 20 | 6e 6f 0a 20 20 20 20 20 | has |no. |
|00001120| 20 73 75 70 65 72 63 6c | 61 73 73 20 20 61 6e 64 | supercl|ass and|
|00001130| 20 20 68 65 6e 63 65 20 | 20 69 73 20 20 74 68 65 | hence | is the|
|00001140| 20 20 72 6f 6f 74 20 6f | 66 20 74 68 65 20 63 6c | root o|f the cl|
|00001150| 61 73 73 20 68 65 69 72 | 61 72 63 68 79 0a 20 20 |ass heir|archy. |
|00001160| 20 20 20 20 74 72 65 65 | 2e 20 20 27 43 6c 61 73 | tree|. 'Clas|
|00001170| 73 27 20 20 69 73 20 20 | 74 68 65 20 20 63 6c 61 |s' is |the cla|
|00001180| 73 73 20 20 6f 66 20 20 | 77 68 69 63 68 20 20 61 |ss of |which a|
|00001190| 6c 6c 20 20 63 6c 61 73 | 73 65 73 20 20 61 72 65 |ll clas|ses are|
|000011a0| 0a 20 20 20 20 20 20 69 | 6e 73 74 61 6e 63 65 73 |. i|nstances|
|000011b0| 20 20 28 69 74 20 20 69 | 73 20 20 74 68 65 20 20 | (it i|s the |
|000011c0| 6f 6e 6c 79 20 20 6f 62 | 6a 65 63 74 20 74 68 61 |only ob|ject tha|
|000011d0| 74 20 69 73 20 61 6e 20 | 69 6e 73 74 61 6e 63 65 |t is an |instance|
|000011e0| 20 6f 66 0a 20 20 20 20 | 20 20 69 74 73 65 6c 66 | of. | itself|
|000011f0| 29 2e 0a 0a 20 20 20 20 | 20 20 54 68 69 73 20 64 |)... | This d|
|00001200| 6f 63 75 6d 65 6e 74 20 | 69 73 20 69 6e 74 65 6e |ocument |is inten|
|00001210| 64 65 64 20 20 74 6f 20 | 20 62 65 20 20 61 20 20 |ded to | be a |
|00001220| 62 72 69 65 66 20 20 64 | 65 73 63 72 69 70 74 69 |brief d|escripti|
|00001230| 6f 6e 20 20 6f 66 0a 20 | 20 20 20 20 20 58 4c 49 |on of. | XLI|
|00001240| 53 50 2e 20 20 20 20 49 | 74 20 20 20 61 73 73 75 |SP. I|t assu|
|00001250| 6d 65 73 20 20 73 6f 6d | 65 20 20 6b 6e 6f 77 6c |mes som|e knowl|
|00001260| 65 64 67 65 20 20 6f 66 | 20 20 4c 49 53 50 20 20 |edge of| LISP |
|00001270| 61 6e 64 20 20 73 6f 6d | 65 0a 20 20 20 20 20 20 |and som|e. |
|00001280| 75 6e 64 65 72 73 74 61 | 6e 64 69 6e 67 20 20 20 |understa|nding |
|00001290| 6f 66 20 20 20 74 68 65 | 20 20 20 63 6f 6e 63 65 |of the| conce|
|000012a0| 70 74 73 20 20 20 6f 66 | 20 20 20 6f 62 6a 65 63 |pts of| objec|
|000012b0| 74 20 20 20 6f 72 69 65 | 6e 74 65 64 0a 20 20 20 |t orie|nted. |
|000012c0| 20 20 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 2e 0a | progr|amming..|
|000012d0| 0a 20 20 20 20 20 20 56 | 65 72 73 69 6f 6e 20 31 |. V|ersion 1|
|000012e0| 2e 32 20 6f 66 20 58 4c | 49 53 50 20 64 69 66 66 |.2 of XL|ISP diff|
|000012f0| 65 72 73 20 66 72 6f 6d | 20 20 76 65 72 73 69 6f |ers from| versio|
|00001300| 6e 20 20 31 2e 31 20 20 | 69 6e 20 20 73 65 76 65 |n 1.1 |in seve|
|00001310| 72 61 6c 0a 20 20 20 20 | 20 20 77 61 79 73 2e 20 |ral. | ways. |
|00001320| 20 20 49 74 20 20 73 75 | 70 70 6f 72 74 73 20 20 | It su|pports |
|00001330| 6d 61 6e 79 20 20 6d 6f | 72 65 20 4c 69 73 70 20 |many mo|re Lisp |
|00001340| 66 75 6e 63 74 69 6f 6e | 73 2e 20 20 41 6c 73 6f |function|s. Also|
|00001350| 2c 20 6d 61 6e 79 0a 20 | 20 20 20 20 20 76 65 72 |, many. | ver|
|00001360| 73 69 6f 6e 20 31 2e 31 | 20 20 66 75 6e 63 74 69 |sion 1.1| functi|
|00001370| 6f 6e 73 20 20 68 61 76 | 65 20 20 62 65 65 6e 20 |ons hav|e been |
|00001380| 20 72 65 6e 61 6d 65 64 | 20 20 61 6e 64 2f 6f 72 | renamed| and/or|
|00001390| 20 20 63 68 61 6e 67 65 | 64 0a 20 20 20 20 20 20 | change|d. |
|000013a0| 73 6c 69 67 68 74 6c 79 | 20 20 74 6f 20 66 6f 6c |slightly| to fol|
|000013b0| 6c 6f 77 20 74 72 61 64 | 69 74 69 6f 6e 61 6c 20 |low trad|itional |
|000013c0| 4c 69 73 70 20 75 73 61 | 67 65 2e 20 20 4f 6e 65 |Lisp usa|ge. One|
|000013d0| 20 6f 66 20 74 68 65 20 | 6d 6f 73 74 0a 20 20 20 | of the |most. |
|000013e0| 20 20 20 66 72 65 71 75 | 65 6e 74 6c 79 20 72 65 | frequ|ently re|
|000013f0| 70 6f 72 74 65 64 20 70 | 72 6f 62 6c 65 6d 73 20 |ported p|roblems |
|00001400| 69 6e 20 76 65 72 73 69 | 6f 6e 20 20 31 2e 31 20 |in versi|on 1.1 |
|00001410| 20 72 65 73 75 6c 74 65 | 64 20 20 66 72 6f 6d 0a | resulte|d from.|
|00001420| 20 20 20 20 20 20 6d 61 | 6e 79 20 20 66 75 6e 63 | ma|ny func|
|00001430| 74 69 6f 6e 73 20 62 65 | 69 6e 67 20 6e 61 6d 65 |tions be|ing name|
|00001440| 64 20 61 66 74 65 72 20 | 74 68 65 69 72 20 65 71 |d after |their eq|
|00001450| 75 69 76 69 6c 65 6e 74 | 20 66 75 6e 63 74 69 6f |uivilent| functio|
|00001460| 6e 73 0a 20 20 20 20 20 | 20 69 6e 20 74 68 65 20 |ns. | in the |
|00001470| 43 20 6c 61 6e 67 75 61 | 67 65 2e 20 20 54 68 69 |C langua|ge. Thi|
|00001480| 73 20 74 75 72 6e 65 64 | 20 20 6f 75 74 20 20 74 |s turned| out t|
|00001490| 6f 20 20 62 65 20 20 63 | 6f 6e 66 75 73 69 6e 67 |o be c|onfusing|
|000014a0| 20 20 66 6f 72 0a 20 20 | 20 20 20 20 70 65 6f 70 | for. | peop|
|000014b0| 6c 65 20 77 68 6f 20 77 | 65 72 65 20 74 72 79 69 |le who w|ere tryi|
|000014c0| 6e 67 20 74 6f 20 6c 65 | 61 72 6e 20 58 4c 49 53 |ng to le|arn XLIS|
|000014d0| 50 20 75 73 69 6e 67 20 | 74 72 61 64 69 74 69 6f |P using |traditio|
|000014e0| 6e 61 6c 20 4c 49 53 50 | 0a 20 20 20 20 20 20 74 |nal LISP|. t|
|000014f0| 65 78 74 73 20 61 73 20 | 72 65 66 65 72 65 6e 63 |exts as |referenc|
|00001500| 65 73 2e 20 20 56 65 72 | 73 69 6f 6e 20 31 2e 32 |es. Ver|sion 1.2|
|00001510| 20 72 65 6e 61 6d 65 73 | 20 74 68 65 73 65 20 66 | renames| these f|
|00001520| 75 6e 63 74 69 6f 6e 73 | 20 74 6f 0a 20 20 20 20 |unctions| to. |
|00001530| 20 20 62 65 20 20 63 6f | 6d 70 61 74 69 62 6c 65 | be co|mpatible|
|00001540| 20 20 77 69 74 68 20 20 | 6d 6f 72 65 20 20 74 72 | with |more tr|
|00001550| 61 64 69 74 69 6f 6e 61 | 6c 20 20 64 69 61 6c 65 |aditiona|l diale|
|00001560| 63 74 73 20 20 6f 66 20 | 20 4c 49 53 50 2e 0a 20 |cts of | LISP.. |
|00001570| 20 20 20 20 20 56 65 72 | 73 69 6f 6e 20 31 2e 33 | Ver|sion 1.3|
|00001580| 20 69 6e 74 72 6f 64 75 | 63 65 73 20 6d 61 6e 79 | introdu|ces many|
|00001590| 20 6e 65 77 20 20 4c 49 | 53 50 20 20 66 75 6e 63 | new LI|SP func|
|000015a0| 74 69 6f 6e 73 20 20 61 | 6e 64 20 20 6d 6f 76 65 |tions a|nd move|
|000015b0| 73 0a 20 20 20 20 20 20 | 63 6c 6f 73 65 72 20 20 |s. |closer |
|000015c0| 74 6f 20 74 68 65 20 67 | 6f 61 6c 20 6f 66 20 62 |to the g|oal of b|
|000015d0| 65 69 6e 67 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |eing com|patible |
|000015e0| 77 69 74 68 20 74 68 65 | 20 43 6f 6d 6d 6f 6e 20 |with the| Common |
|000015f0| 4c 69 73 70 0a 20 20 20 | 20 20 20 73 74 61 6e 64 |Lisp. | stand|
|00001600| 61 72 64 2e 20 20 56 65 | 72 73 69 6f 6e 20 31 2e |ard. Ve|rsion 1.|
|00001610| 34 20 69 6e 74 72 6f 64 | 75 63 65 73 20 75 73 65 |4 introd|uces use|
|00001620| 72 20 20 65 72 72 6f 72 | 20 20 68 61 6e 64 6c 69 |r error| handli|
|00001630| 6e 67 20 20 61 6e 64 0a | 20 20 20 20 20 20 62 72 |ng and.| br|
|00001640| 65 61 6b 70 6f 69 6e 74 | 20 20 73 75 70 70 6f 72 |eakpoint| suppor|
|00001650| 74 20 20 61 73 20 20 77 | 65 6c 6c 20 61 73 20 6d |t as w|ell as m|
|00001660| 6f 72 65 20 43 6f 6d 6d | 6f 6e 20 4c 69 73 70 20 |ore Comm|on Lisp |
|00001670| 63 6f 6d 70 61 74 69 62 | 6c 65 0a 20 20 20 20 20 |compatib|le. |
|00001680| 20 66 75 6e 63 74 69 6f | 6e 73 2e 0a 0a 20 20 20 | functio|ns... |
|00001690| 20 20 20 41 20 72 65 63 | 6f 6d 6d 65 6e 64 65 64 | A rec|ommended|
|000016a0| 20 74 65 78 74 20 66 6f | 72 20 6c 65 61 72 6e 69 | text fo|r learni|
|000016b0| 6e 67 20 4c 49 53 50 20 | 70 72 6f 67 72 61 6d 6d |ng LISP |programm|
|000016c0| 69 6e 67 20 69 73 20 74 | 68 65 20 62 6f 6f 6b 0a |ing is t|he book.|
|000016d0| 20 20 20 20 20 20 22 4c | 49 53 50 22 20 20 62 79 | "L|ISP" by|
|000016e0| 20 57 69 6e 73 74 6f 6e | 20 61 6e 64 20 48 6f 72 | Winston| and Hor|
|000016f0| 6e 20 61 6e 64 20 70 75 | 62 6c 69 73 68 65 64 20 |n and pu|blished |
|00001700| 62 79 20 41 64 64 69 73 | 6f 6e 20 57 65 73 6c 65 |by Addis|on Wesle|
|00001710| 79 2e 0a 20 20 20 20 20 | 20 54 68 65 20 66 69 72 |y.. | The fir|
|00001720| 73 74 20 65 64 69 74 69 | 6f 6e 20 6f 66 20 74 68 |st editi|on of th|
|00001730| 69 73 20 62 6f 6f 6b 20 | 69 73 20 62 61 73 65 64 |is book |is based|
|00001740| 20 6f 6e 20 4d 61 63 4c | 69 73 70 20 20 61 6e 64 | on MacL|isp and|
|00001750| 20 20 74 68 65 0a 20 20 | 20 20 20 20 73 65 63 6f | the. | seco|
|00001760| 6e 64 20 20 65 64 69 74 | 69 6f 6e 20 69 73 20 62 |nd edit|ion is b|
|00001770| 61 73 65 64 20 6f 6e 20 | 43 6f 6d 6d 6f 6e 20 4c |ased on |Common L|
|00001780| 69 73 70 2e 20 20 46 75 | 74 75 72 65 20 76 65 72 |isp. Fu|ture ver|
|00001790| 73 69 6f 6e 73 20 6f 66 | 0a 20 20 20 20 20 20 58 |sions of|. X|
|000017a0| 4c 49 53 50 20 77 69 6c | 6c 20 63 6f 6e 74 69 6e |LISP wil|l contin|
|000017b0| 75 65 20 74 6f 20 6d 69 | 67 72 61 74 65 20 20 74 |ue to mi|grate t|
|000017c0| 6f 77 61 72 64 73 20 20 | 63 6f 6d 70 61 74 69 62 |owards |compatib|
|000017d0| 69 6c 69 74 79 20 20 77 | 69 74 68 0a 20 20 20 20 |ility w|ith. |
|000017e0| 20 20 43 6f 6d 6d 6f 6e | 20 4c 69 73 70 2e 0a 0c | Common| Lisp...|
|000017f0| 0a 0a 0a 20 20 20 20 20 | 20 58 4c 49 53 50 3a 20 |... | XLISP: |
|00001800| 41 6e 20 45 78 70 65 72 | 69 6d 65 6e 74 61 6c 20 |An Exper|imental |
|00001810| 4f 62 6a 65 63 74 20 4f | 72 69 65 6e 74 65 64 20 |Object O|riented |
|00001820| 4c 61 6e 67 75 61 67 65 | 20 20 20 20 20 20 20 20 |Language| |
|00001830| 20 20 20 20 20 20 20 20 | 20 50 61 67 65 20 34 0a | | Page 4.|
|00001840| 20 20 20 20 20 20 41 20 | 4e 4f 54 45 20 46 52 4f | A |NOTE FRO|
|00001850| 4d 20 54 48 45 20 41 55 | 54 48 4f 52 0a 0a 0a 20 |M THE AU|THOR... |
|00001860| 20 20 20 20 20 32 2e 30 | 20 20 41 20 4e 4f 54 45 | 2.0| A NOTE|
|00001870| 20 46 52 4f 4d 20 54 48 | 45 20 41 55 54 48 4f 52 | FROM TH|E AUTHOR|
|00001880| 0a 0a 20 20 20 20 20 20 | 49 66 20 79 6f 75 20 68 |.. |If you h|
|00001890| 61 76 65 20 61 6e 79 20 | 70 72 6f 62 6c 65 6d 73 |ave any |problems|
|000018a0| 20 77 69 74 68 20 58 4c | 49 53 50 2c 20 66 65 65 | with XL|ISP, fee|
|000018b0| 6c 20 66 72 65 65 20 74 | 6f 20 63 6f 6e 74 61 63 |l free t|o contac|
|000018c0| 74 20 6d 65 0a 20 20 20 | 20 20 20 66 6f 72 20 20 |t me. | for |
|000018d0| 68 65 6c 70 20 20 6f 72 | 20 20 61 64 76 69 63 65 |help or| advice|
|000018e0| 2e 20 20 20 50 6c 65 61 | 73 65 20 72 65 6d 65 6d |. Plea|se remem|
|000018f0| 62 65 72 20 74 68 61 74 | 20 73 69 6e 63 65 20 58 |ber that| since X|
|00001900| 4c 49 53 50 20 69 73 0a | 20 20 20 20 20 20 61 76 |LISP is.| av|
|00001910| 61 69 6c 61 62 6c 65 20 | 69 6e 20 73 6f 75 72 63 |ailable |in sourc|
|00001920| 65 20 66 6f 72 6d 20 69 | 6e 20 20 61 20 20 68 69 |e form i|n a hi|
|00001930| 67 68 20 20 6c 65 76 65 | 6c 20 20 6c 61 6e 67 75 |gh leve|l langu|
|00001940| 61 67 65 2c 20 20 6d 61 | 6e 79 0a 20 20 20 20 20 |age, ma|ny. |
|00001950| 20 75 73 65 72 73 20 20 | 68 61 76 65 20 20 62 65 | users |have be|
|00001960| 65 6e 20 20 6d 61 6b 69 | 6e 67 20 76 65 72 73 69 |en maki|ng versi|
|00001970| 6f 6e 73 20 61 76 61 69 | 6c 61 62 6c 65 20 6f 6e |ons avai|lable on|
|00001980| 20 61 20 76 61 72 69 65 | 74 79 20 6f 66 0a 20 20 | a varie|ty of. |
|00001990| 20 20 20 20 6d 61 63 68 | 69 6e 65 73 2e 20 20 49 | mach|ines. I|
|000019a0| 66 20 79 6f 75 20 63 61 | 6c 6c 20 74 6f 20 72 65 |f you ca|ll to re|
|000019b0| 70 6f 72 74 20 61 20 70 | 72 6f 62 6c 65 6d 20 77 |port a p|roblem w|
|000019c0| 69 74 68 20 20 61 20 20 | 73 70 65 63 69 66 69 63 |ith a |specific|
|000019d0| 0a 20 20 20 20 20 20 76 | 65 72 73 69 6f 6e 2c 20 |. v|ersion, |
|000019e0| 20 49 20 6d 61 79 20 6e | 6f 74 20 62 65 20 61 62 | I may n|ot be ab|
|000019f0| 6c 65 20 74 6f 20 68 65 | 6c 70 20 79 6f 75 20 69 |le to he|lp you i|
|00001a00| 66 20 74 68 61 74 20 76 | 65 72 73 69 6f 6e 20 72 |f that v|ersion r|
|00001a10| 75 6e 73 0a 20 20 20 20 | 20 20 6f 6e 20 61 20 6d |uns. | on a m|
|00001a20| 61 63 68 69 6e 65 20 74 | 6f 20 77 68 69 63 68 20 |achine t|o which |
|00001a30| 49 20 64 6f 6e 27 74 20 | 68 61 76 65 20 61 63 63 |I don't |have acc|
|00001a40| 65 73 73 2e 20 20 50 6c | 65 61 73 65 20 68 61 76 |ess. Pl|ease hav|
|00001a50| 65 20 20 74 68 65 0a 20 | 20 20 20 20 20 76 65 72 |e the. | ver|
|00001a60| 73 69 6f 6e 20 20 6e 75 | 6d 62 65 72 20 20 6f 66 |sion nu|mber of|
|00001a70| 20 74 68 65 20 76 65 72 | 73 69 6f 6e 20 74 68 61 | the ver|sion tha|
|00001a80| 74 20 79 6f 75 20 61 72 | 65 20 72 75 6e 6e 69 6e |t you ar|e runnin|
|00001a90| 67 20 72 65 61 64 69 6c | 79 0a 20 20 20 20 20 20 |g readil|y. |
|00001aa0| 61 63 63 65 73 73 69 62 | 6c 65 20 62 65 66 6f 72 |accessib|le befor|
|00001ab0| 65 20 63 61 6c 6c 69 6e | 67 20 6d 65 2e 0a 0a 20 |e callin|g me... |
|00001ac0| 20 20 20 20 20 49 66 20 | 79 6f 75 20 66 69 6e 64 | If |you find|
|00001ad0| 20 61 20 62 75 67 20 20 | 69 6e 20 20 58 4c 49 53 | a bug |in XLIS|
|00001ae0| 50 2c 20 20 66 69 72 73 | 74 20 20 74 72 79 20 20 |P, firs|t try |
|00001af0| 74 6f 20 20 66 69 78 20 | 20 74 68 65 20 20 62 75 |to fix | the bu|
|00001b00| 67 0a 20 20 20 20 20 20 | 79 6f 75 72 73 65 6c 66 |g. |yourself|
|00001b10| 20 20 75 73 69 6e 67 20 | 20 74 68 65 20 20 73 6f | using | the so|
|00001b20| 75 72 63 65 20 20 63 6f | 64 65 20 20 70 72 6f 76 |urce co|de prov|
|00001b30| 69 64 65 64 2e 20 20 20 | 49 66 20 20 79 6f 75 20 |ided. |If you |
|00001b40| 20 61 72 65 0a 20 20 20 | 20 20 20 73 75 63 63 65 | are. | succe|
|00001b50| 73 73 66 75 6c 20 69 6e | 20 66 69 78 69 6e 67 20 |ssful in| fixing |
|00001b60| 74 68 65 20 62 75 67 2c | 20 73 65 6e 64 20 74 68 |the bug,| send th|
|00001b70| 65 20 62 75 67 20 72 65 | 70 6f 72 74 20 61 6c 6f |e bug re|port alo|
|00001b80| 6e 67 20 77 69 74 68 0a | 20 20 20 20 20 20 74 68 |ng with.| th|
|00001b90| 65 20 20 66 69 78 20 74 | 6f 20 6d 65 2e 20 20 49 |e fix t|o me. I|
|00001ba0| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 68 61 76 65 |f you do|n't have|
|00001bb0| 20 61 63 63 65 73 73 20 | 74 6f 20 61 20 43 20 63 | access |to a C c|
|00001bc0| 6f 6d 70 69 6c 65 72 20 | 6f 72 0a 20 20 20 20 20 |ompiler |or. |
|00001bd0| 20 61 72 65 20 75 6e 61 | 62 6c 65 20 74 6f 20 66 | are una|ble to f|
|00001be0| 69 78 20 61 20 62 75 67 | 2c 20 70 6c 65 61 73 65 |ix a bug|, please|
|00001bf0| 20 73 65 6e 64 20 74 68 | 65 20 62 75 67 20 20 72 | send th|e bug r|
|00001c00| 65 70 6f 72 74 20 20 74 | 6f 20 20 6d 65 0a 20 20 |eport t|o me. |
|00001c10| 20 20 20 20 61 6e 64 20 | 49 27 6c 6c 20 74 72 79 | and |I'll try|
|00001c20| 20 74 6f 20 66 69 78 20 | 69 74 2e 0a 0a 20 20 20 | to fix |it... |
|00001c30| 20 20 20 41 6e 79 20 73 | 75 67 67 65 73 74 69 6f | Any s|uggestio|
|00001c40| 6e 73 20 66 6f 72 20 69 | 6d 70 72 6f 76 65 6d 65 |ns for i|mproveme|
|00001c50| 6e 74 73 20 20 77 69 6c | 6c 20 20 62 65 20 20 77 |nts wil|l be w|
|00001c60| 65 6c 63 6f 6d 65 64 2e | 20 20 20 46 65 65 6c 0a |elcomed.| Feel.|
|00001c70| 20 20 20 20 20 20 66 72 | 65 65 20 20 74 6f 20 20 | fr|ee to |
|00001c80| 65 78 74 65 6e 64 20 20 | 74 68 65 20 20 6c 61 6e |extend |the lan|
|00001c90| 67 75 61 67 65 20 20 69 | 6e 20 20 77 68 61 74 65 |guage i|n whate|
|00001ca0| 76 65 72 20 77 61 79 20 | 73 75 69 74 73 20 79 6f |ver way |suits yo|
|00001cb0| 75 72 0a 20 20 20 20 20 | 20 6e 65 65 64 73 2e 20 |ur. | needs. |
|00001cc0| 20 48 6f 77 65 76 65 72 | 2c 20 50 4c 45 41 53 45 | However|, PLEASE|
|00001cd0| 20 44 4f 20 20 4e 4f 54 | 20 20 52 45 4c 45 41 53 | DO NOT| RELEAS|
|00001ce0| 45 20 20 45 4e 48 41 4e | 43 45 44 20 20 56 45 52 |E ENHAN|CED VER|
|00001cf0| 53 49 4f 4e 53 0a 20 20 | 20 20 20 20 57 49 54 48 |SIONS. | WITH|
|00001d00| 4f 55 54 20 20 43 48 45 | 43 4b 49 4e 47 20 20 57 |OUT CHE|CKING W|
|00001d10| 49 54 48 20 20 4d 45 20 | 20 46 49 52 53 54 21 21 |ITH ME | FIRST!!|
|00001d20| 20 20 49 20 77 6f 75 6c | 64 20 6c 69 6b 65 20 74 | I woul|d like t|
|00001d30| 6f 20 62 65 20 74 68 65 | 0a 20 20 20 20 20 20 63 |o be the|. c|
|00001d40| 6c 65 61 72 69 6e 67 20 | 68 6f 75 73 65 20 66 6f |learing |house fo|
|00001d50| 72 20 6e 65 77 20 66 65 | 61 74 75 72 65 73 20 61 |r new fe|atures a|
|00001d60| 64 64 65 64 20 74 6f 20 | 58 4c 49 53 50 2e 20 20 |dded to |XLISP. |
|00001d70| 49 66 20 79 6f 75 20 77 | 61 6e 74 0a 20 20 20 20 |If you w|ant. |
|00001d80| 20 20 74 6f 20 20 61 64 | 64 20 20 66 65 61 74 75 | to ad|d featu|
|00001d90| 72 65 73 20 66 6f 72 20 | 79 6f 75 72 20 6f 77 6e |res for |your own|
|00001da0| 20 70 65 72 73 6f 6e 61 | 6c 20 75 73 65 2c 20 67 | persona|l use, g|
|00001db0| 6f 20 61 68 65 61 64 2e | 20 20 42 75 74 2c 0a 20 |o ahead.| But,. |
|00001dc0| 20 20 20 20 20 69 66 20 | 79 6f 75 20 77 61 6e 74 | if |you want|
|00001dd0| 20 74 6f 20 64 69 73 74 | 72 69 62 75 74 65 20 79 | to dist|ribute y|
|00001de0| 6f 75 72 20 65 6e 68 61 | 6e 63 65 64 20 76 65 72 |our enha|nced ver|
|00001df0| 73 69 6f 6e 2c 20 63 6f | 6e 74 61 63 74 20 20 6d |sion, co|ntact m|
|00001e00| 65 0a 20 20 20 20 20 20 | 66 69 72 73 74 2e 20 20 |e. |first. |
|00001e10| 50 6c 65 61 73 65 20 72 | 65 6d 65 6d 62 65 72 20 |Please r|emember |
|00001e20| 74 68 61 74 20 74 68 65 | 20 67 6f 61 6c 20 6f 66 |that the| goal of|
|00001e30| 20 58 4c 49 53 50 20 69 | 73 20 74 6f 20 70 72 6f | XLISP i|s to pro|
|00001e40| 76 69 64 65 0a 20 20 20 | 20 20 20 61 20 6c 61 6e |vide. | a lan|
|00001e50| 67 75 61 67 65 20 74 6f | 20 6c 65 61 72 6e 20 61 |guage to| learn a|
|00001e60| 6e 64 20 20 65 78 70 65 | 72 69 6d 65 6e 74 20 20 |nd expe|riment |
|00001e70| 77 69 74 68 20 20 4c 49 | 53 50 20 20 61 6e 64 20 |with LI|SP and |
|00001e80| 20 6f 62 6a 65 63 74 0a | 20 20 20 20 20 20 6f 72 | object.| or|
|00001e90| 69 65 6e 74 65 64 20 70 | 72 6f 67 72 61 6d 6d 69 |iented p|rogrammi|
|00001ea0| 6e 67 20 6f 6e 20 73 6d | 61 6c 6c 20 63 6f 6d 70 |ng on sm|all comp|
|00001eb0| 75 74 65 72 73 2e 0a 0c | 0a 0a 0a 20 20 20 20 20 |uters...|... |
|00001ec0| 20 58 4c 49 53 50 3a 20 | 41 6e 20 45 78 70 65 72 | XLISP: |An Exper|
|00001ed0| 69 6d 65 6e 74 61 6c 20 | 4f 62 6a 65 63 74 20 4f |imental |Object O|
|00001ee0| 72 69 65 6e 74 65 64 20 | 4c 61 6e 67 75 61 67 65 |riented |Language|
|00001ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f00| 20 50 61 67 65 20 35 0a | 20 20 20 20 20 20 58 4c | Page 5.| XL|
|00001f10| 49 53 50 20 43 4f 4d 4d | 41 4e 44 20 4c 4f 4f 50 |ISP COMM|AND LOOP|
|00001f20| 0a 0a 0a 20 20 20 20 20 | 20 33 2e 30 20 20 58 4c |... | 3.0 XL|
|00001f30| 49 53 50 20 43 4f 4d 4d | 41 4e 44 20 4c 4f 4f 50 |ISP COMM|AND LOOP|
|00001f40| 0a 0a 20 20 20 20 20 20 | 57 68 65 6e 20 58 4c 49 |.. |When XLI|
|00001f50| 53 50 20 69 73 20 73 74 | 61 72 74 65 64 2c 20 69 |SP is st|arted, i|
|00001f60| 74 20 66 69 72 73 74 20 | 20 74 72 69 65 73 20 20 |t first | tries |
|00001f70| 74 6f 20 20 6c 6f 61 64 | 20 20 22 69 6e 69 74 2e |to load| "init.|
|00001f80| 6c 73 70 22 0a 20 20 20 | 20 20 20 66 72 6f 6d 20 |lsp". | from |
|00001f90| 20 74 68 65 20 20 64 65 | 66 61 75 6c 74 20 64 69 | the de|fault di|
|00001fa0| 72 65 63 74 6f 72 79 2e | 20 20 49 74 20 74 68 65 |rectory.| It the|
|00001fb0| 6e 20 6c 6f 61 64 73 20 | 61 6e 79 20 66 69 6c 65 |n loads |any file|
|00001fc0| 73 20 6e 61 6d 65 64 0a | 20 20 20 20 20 20 61 73 |s named.| as|
|00001fd0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 6f 6e 20 74 | paramet|ers on t|
|00001fe0| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 20 |he comma|nd line |
|00001ff0| 28 61 66 74 65 72 20 61 | 70 70 65 6e 64 69 6e 67 |(after a|ppending|
|00002000| 20 22 2e 6c 73 70 22 20 | 74 6f 0a 20 20 20 20 20 | ".lsp" |to. |
|00002010| 20 74 68 65 69 72 20 6e | 61 6d 65 73 29 2e 20 20 | their n|ames). |
|00002020| 49 74 20 74 68 65 6e 20 | 69 73 73 75 65 73 20 74 |It then |issues t|
|00002030| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 70 72 6f |he follo|wing pro|
|00002040| 6d 70 74 3a 0a 0a 20 20 | 20 20 20 20 3e 0a 0a 20 |mpt:.. | >.. |
|00002050| 20 20 20 20 20 54 68 69 | 73 20 69 6e 64 69 63 61 | Thi|s indica|
|00002060| 74 65 73 20 74 68 61 74 | 20 58 4c 49 53 50 20 69 |tes that| XLISP i|
|00002070| 73 20 77 61 69 74 69 6e | 67 20 66 6f 72 20 61 6e |s waitin|g for an|
|00002080| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 74 6f 20 62 | express|ion to b|
|00002090| 65 0a 20 20 20 20 20 20 | 74 79 70 65 64 2e 20 20 |e. |typed. |
|000020a0| 20 57 68 65 6e 20 20 61 | 6e 20 20 69 6e 63 6f 6d | When a|n incom|
|000020b0| 70 6c 65 74 65 20 65 78 | 70 72 65 73 73 69 6f 6e |plete ex|pression|
|000020c0| 20 68 61 73 20 62 65 65 | 6e 20 74 79 70 65 64 20 | has bee|n typed |
|000020d0| 28 6f 6e 65 0a 20 20 20 | 20 20 20 77 68 65 72 65 |(one. | where|
|000020e0| 20 74 68 65 20 6c 65 66 | 74 20 61 6e 64 20 72 69 | the lef|t and ri|
|000020f0| 67 68 74 20 70 61 72 65 | 6e 73 20 64 6f 6e 27 74 |ght pare|ns don't|
|00002100| 20 6d 61 74 63 68 29 20 | 20 58 4c 49 53 50 20 20 | match) | XLISP |
|00002110| 63 68 61 6e 67 65 73 0a | 20 20 20 20 20 20 69 74 |changes.| it|
|00002120| 73 20 70 72 6f 6d 70 74 | 20 74 6f 3a 0a 0a 20 20 |s prompt| to:.. |
|00002130| 20 20 20 20 6e 3e 0a 0a | 20 20 20 20 20 20 77 68 | n>..| wh|
|00002140| 65 72 65 20 6e 20 69 73 | 20 61 6e 20 69 6e 74 65 |ere n is| an inte|
|00002150| 67 65 72 20 69 6e 64 69 | 63 61 74 69 6e 67 20 68 |ger indi|cating h|
|00002160| 6f 77 20 20 6d 61 6e 79 | 20 20 6c 65 76 65 6c 73 |ow many| levels|
|00002170| 20 20 6f 66 20 20 6c 65 | 66 74 0a 20 20 20 20 20 | of le|ft. |
|00002180| 20 70 61 72 65 6e 73 20 | 72 65 6d 61 69 6e 20 75 | parens |remain u|
|00002190| 6e 63 6c 6f 73 65 64 2e | 0a 0a 20 20 20 20 20 20 |nclosed.|.. |
|000021a0| 57 68 65 6e 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |When a c|omplete |
|000021b0| 65 78 70 72 65 73 73 69 | 6f 6e 20 68 61 73 20 62 |expressi|on has b|
|000021c0| 65 65 6e 20 65 6e 74 65 | 72 65 64 2c 20 58 4c 49 |een ente|red, XLI|
|000021d0| 53 50 20 20 61 74 74 65 | 6d 70 74 73 0a 20 20 20 |SP atte|mpts. |
|000021e0| 20 20 20 74 6f 20 20 65 | 76 61 6c 75 61 74 65 20 | to e|valuate |
|000021f0| 20 74 68 61 74 20 20 65 | 78 70 72 65 73 73 69 6f | that e|xpressio|
|00002200| 6e 2e 20 20 49 66 20 74 | 68 65 20 65 78 70 72 65 |n. If t|he expre|
|00002210| 73 73 69 6f 6e 20 65 76 | 61 6c 75 61 74 65 73 0a |ssion ev|aluates.|
|00002220| 20 20 20 20 20 20 73 75 | 63 63 65 73 73 66 75 6c | su|ccessful|
|00002230| 6c 79 2c 20 58 4c 49 53 | 50 20 70 72 69 6e 74 73 |ly, XLIS|P prints|
|00002240| 20 74 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 74 | the res|ult of t|
|00002250| 68 65 20 65 76 61 6c 75 | 61 74 69 6f 6e 20 20 61 |he evalu|ation a|
|00002260| 6e 64 0a 20 20 20 20 20 | 20 74 68 65 6e 20 20 72 |nd. | then r|
|00002270| 65 74 75 72 6e 73 20 20 | 74 6f 20 20 74 68 65 20 |eturns |to the |
|00002280| 20 69 6e 69 74 69 61 6c | 20 20 70 72 6f 6d 70 74 | initial| prompt|
|00002290| 20 20 77 61 69 74 69 6e | 67 20 66 6f 72 20 61 6e | waitin|g for an|
|000022a0| 6f 74 68 65 72 0a 20 20 | 20 20 20 20 65 78 70 72 |other. | expr|
|000022b0| 65 73 73 69 6f 6e 20 74 | 6f 20 62 65 20 74 79 70 |ession t|o be typ|
|000022c0| 65 64 2e 0a 0a 20 20 20 | 20 20 20 49 6e 70 75 74 |ed... | Input|
|000022d0| 20 63 61 6e 20 62 65 20 | 61 62 6f 72 74 65 64 20 | can be |aborted |
|000022e0| 61 74 20 61 6e 79 20 74 | 69 6d 65 20 62 79 20 74 |at any t|ime by t|
|000022f0| 79 70 69 6e 67 20 74 68 | 65 20 43 4f 4e 54 52 4f |yping th|e CONTRO|
|00002300| 4c 2d 47 20 6b 65 79 0a | 20 20 20 20 20 20 28 69 |L-G key.| (i|
|00002310| 74 20 6d 61 79 20 62 65 | 20 6e 65 63 65 73 73 61 |t may be| necessa|
|00002320| 72 79 20 74 6f 20 66 6f | 6c 6c 6f 77 20 43 4f 4e |ry to fo|llow CON|
|00002330| 54 52 4f 4c 2d 47 20 62 | 79 20 52 45 54 55 52 4e |TROL-G b|y RETURN|
|00002340| 29 2e 0a 0c 0a 0a 0a 20 | 20 20 20 20 20 58 4c 49 |)...... | XLI|
|00002350| 53 50 3a 20 41 6e 20 45 | 78 70 65 72 69 6d 65 6e |SP: An E|xperimen|
|00002360| 74 61 6c 20 4f 62 6a 65 | 63 74 20 4f 72 69 65 6e |tal Obje|ct Orien|
|00002370| 74 65 64 20 4c 61 6e 67 | 75 61 67 65 20 20 20 20 |ted Lang|uage |
|00002380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 61 67 | | Pag|
|00002390| 65 20 36 0a 20 20 20 20 | 20 20 42 52 45 41 4b 20 |e 6. | BREAK |
|000023a0| 43 4f 4d 4d 41 4e 44 20 | 4c 4f 4f 50 0a 0a 0a 20 |COMMAND |LOOP... |
|000023b0| 20 20 20 20 20 34 2e 30 | 20 20 42 52 45 41 4b 20 | 4.0| BREAK |
|000023c0| 43 4f 4d 4d 41 4e 44 20 | 4c 4f 4f 50 0a 0a 20 20 |COMMAND |LOOP.. |
|000023d0| 20 20 20 20 57 68 65 6e | 20 20 58 4c 49 53 50 20 | When| XLISP |
|000023e0| 20 65 6e 63 6f 75 6e 74 | 65 72 73 20 20 61 6e 20 | encount|ers an |
|000023f0| 20 65 72 72 6f 72 20 20 | 20 77 68 69 6c 65 20 20 | error | while |
|00002400| 20 65 76 61 6c 75 61 74 | 69 6e 67 20 20 20 61 6e | evaluat|ing an|
|00002410| 0a 20 20 20 20 20 20 65 | 78 70 72 65 73 73 69 6f |. e|xpressio|
|00002420| 6e 2c 20 69 74 20 61 74 | 74 65 6d 70 74 73 20 74 |n, it at|tempts t|
|00002430| 6f 20 68 61 6e 64 6c 65 | 20 74 68 65 20 65 72 72 |o handle| the err|
|00002440| 6f 72 20 69 6e 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |or in th|e follow|
|00002450| 69 6e 67 0a 20 20 20 20 | 20 20 77 61 79 3a 0a 0a |ing. | way:..|
|00002460| 20 20 20 20 20 20 49 66 | 20 20 74 68 65 20 20 73 | If| the s|
|00002470| 79 6d 62 6f 6c 20 20 27 | 2a 62 72 65 61 6b 65 6e |ymbol '|*breaken|
|00002480| 61 62 6c 65 2a 27 20 20 | 69 73 20 20 20 74 72 75 |able*' |is tru|
|00002490| 65 2c 20 20 20 74 68 65 | 20 20 20 6d 65 73 73 61 |e, the| messa|
|000024a0| 67 65 0a 20 20 20 20 20 | 20 63 6f 72 72 65 73 70 |ge. | corresp|
|000024b0| 6f 6e 64 69 6e 67 20 20 | 74 6f 20 20 74 68 65 20 |onding |to the |
|000024c0| 20 65 72 72 6f 72 20 20 | 69 73 20 20 70 72 69 6e | error |is prin|
|000024d0| 74 65 64 2e 20 20 49 66 | 20 74 68 65 20 65 72 72 |ted. If| the err|
|000024e0| 6f 72 20 69 73 0a 20 20 | 20 20 20 20 63 6f 72 72 |or is. | corr|
|000024f0| 65 63 74 61 62 6c 65 2c | 20 74 68 65 20 63 6f 72 |ectable,| the cor|
|00002500| 72 65 63 74 69 6f 6e 20 | 20 6d 65 73 73 61 67 65 |rection | message|
|00002510| 20 20 69 73 20 20 70 72 | 69 6e 74 65 64 2e 20 20 | is pr|inted. |
|00002520| 20 49 66 20 20 74 68 65 | 0a 20 20 20 20 20 20 73 | If the|. s|
|00002530| 79 6d 62 6f 6c 20 27 2a | 74 72 61 63 65 6e 61 62 |ymbol '*|tracenab|
|00002540| 6c 65 2a 27 20 69 73 20 | 74 72 75 65 2c 20 61 20 |le*' is |true, a |
|00002550| 74 72 61 63 65 20 62 61 | 63 6b 20 69 73 20 70 72 |trace ba|ck is pr|
|00002560| 69 6e 74 65 64 2e 20 20 | 54 68 65 0a 20 20 20 20 |inted. |The. |
|00002570| 20 20 6e 75 6d 62 65 72 | 20 6f 66 20 65 6e 74 72 | number| of entr|
|00002580| 69 65 73 20 70 72 69 6e | 74 65 64 20 64 65 70 65 |ies prin|ted depe|
|00002590| 6e 64 73 20 6f 6e 20 74 | 68 65 20 76 61 6c 75 65 |nds on t|he value|
|000025a0| 20 6f 66 20 74 68 65 20 | 73 79 6d 62 6f 6c 0a 20 | of the |symbol. |
|000025b0| 20 20 20 20 20 27 2a 74 | 72 61 63 65 6c 69 6d 69 | '*t|racelimi|
|000025c0| 74 2a 27 2e 20 20 20 49 | 66 20 20 74 68 69 73 20 |t*'. I|f this |
|000025d0| 20 73 79 6d 62 6f 6c 20 | 69 73 20 73 65 74 20 74 | symbol |is set t|
|000025e0| 6f 20 73 6f 6d 65 74 68 | 69 6e 67 20 6f 74 68 65 |o someth|ing othe|
|000025f0| 72 0a 20 20 20 20 20 20 | 74 68 61 6e 20 61 20 6e |r. |than a n|
|00002600| 75 6d 62 65 72 2c 20 74 | 68 65 20 20 65 6e 74 69 |umber, t|he enti|
|00002610| 72 65 20 20 74 72 61 63 | 65 20 20 62 61 63 6b 20 |re trac|e back |
|00002620| 20 73 74 61 63 6b 20 20 | 69 73 20 20 70 72 69 6e | stack |is prin|
|00002630| 74 65 64 2e 0a 20 20 20 | 20 20 20 58 4c 49 53 50 |ted.. | XLISP|
|00002640| 20 20 74 68 65 6e 20 20 | 65 6e 74 65 72 73 20 61 | then |enters a|
|00002650| 20 72 65 61 64 2f 65 76 | 61 6c 2f 70 72 69 6e 74 | read/ev|al/print|
|00002660| 20 6c 6f 6f 70 20 74 6f | 20 61 6c 6c 6f 77 20 74 | loop to| allow t|
|00002670| 68 65 20 75 73 65 72 0a | 20 20 20 20 20 20 74 6f |he user.| to|
|00002680| 20 65 78 61 6d 69 6e 65 | 20 74 68 65 20 73 74 61 | examine| the sta|
|00002690| 74 65 20 6f 66 20 74 68 | 65 20 69 6e 74 65 72 70 |te of th|e interp|
|000026a0| 72 65 74 65 72 20 69 6e | 20 20 74 68 65 20 20 63 |reter in| the c|
|000026b0| 6f 6e 74 65 78 74 20 20 | 6f 66 0a 20 20 20 20 20 |ontext |of. |
|000026c0| 20 74 68 65 20 20 65 72 | 72 6f 72 2e 20 20 20 54 | the er|ror. T|
|000026d0| 68 69 73 20 20 6c 6f 6f | 70 20 20 64 69 66 66 65 |his loo|p diffe|
|000026e0| 72 73 20 20 66 72 6f 6d | 20 74 68 65 20 6e 6f 72 |rs from| the nor|
|000026f0| 6d 61 6c 20 74 6f 70 2d | 6c 65 76 61 6c 0a 20 20 |mal top-|leval. |
|00002700| 20 20 20 20 72 65 61 64 | 2f 65 76 61 6c 2f 70 72 | read|/eval/pr|
|00002710| 69 6e 74 20 6c 6f 6f 70 | 20 69 6e 20 74 68 61 74 |int loop| in that|
|00002720| 20 69 66 20 74 68 65 20 | 75 73 65 72 20 20 74 79 | if the |user ty|
|00002730| 70 65 73 20 20 74 68 65 | 20 20 73 79 6d 62 6f 6c |pes the| symbol|
|00002740| 0a 20 20 20 20 20 20 27 | 63 6f 6e 74 69 6e 75 65 |. '|continue|
|00002750| 27 20 58 4c 49 53 50 20 | 77 69 6c 6c 20 63 6f 6e |' XLISP |will con|
|00002760| 74 69 6e 75 65 20 66 72 | 6f 6d 20 61 20 63 6f 72 |tinue fr|om a cor|
|00002770| 72 65 63 74 61 62 6c 65 | 20 65 72 72 6f 72 2e 20 |rectable| error. |
|00002780| 20 49 66 0a 20 20 20 20 | 20 20 74 68 65 20 75 73 | If. | the us|
|00002790| 65 72 20 74 79 70 65 73 | 20 74 68 65 20 73 79 6d |er types| the sym|
|000027a0| 62 6f 6c 20 27 71 75 69 | 74 27 20 58 4c 49 53 50 |bol 'qui|t' XLISP|
|000027b0| 20 77 69 6c 6c 20 61 62 | 6f 72 74 20 74 68 65 20 | will ab|ort the |
|000027c0| 20 62 72 65 61 6b 0a 20 | 20 20 20 20 20 6c 6f 6f | break. | loo|
|000027d0| 70 20 20 61 6e 64 20 72 | 65 74 75 72 6e 20 74 6f |p and r|eturn to|
|000027e0| 20 74 68 65 20 74 6f 70 | 20 6c 65 76 65 6c 20 6f | the top| level o|
|000027f0| 72 20 74 68 65 20 6e 65 | 78 74 20 6c 6f 77 65 72 |r the ne|xt lower|
|00002800| 20 6e 75 6d 62 65 72 65 | 64 0a 20 20 20 20 20 20 | numbere|d. |
|00002810| 62 72 65 61 6b 20 6c 6f | 6f 70 2e 20 20 57 68 65 |break lo|op. Whe|
|00002820| 6e 20 69 6e 20 61 20 62 | 72 65 61 6b 20 6c 6f 6f |n in a b|reak loo|
|00002830| 70 2c 20 58 4c 49 53 50 | 20 70 72 65 66 69 78 65 |p, XLISP| prefixe|
|00002840| 73 20 74 68 65 20 20 62 | 72 65 61 6b 0a 20 20 20 |s the b|reak. |
|00002850| 20 20 20 6c 65 76 65 6c | 20 74 6f 20 74 68 65 20 | level| to the |
|00002860| 6e 6f 72 6d 61 6c 20 70 | 72 6f 6d 70 74 2e 0a 0a |normal p|rompt...|
|00002870| 20 20 20 20 20 20 49 66 | 20 74 68 65 20 73 79 6d | If| the sym|
|00002880| 62 6f 6c 20 27 2a 62 72 | 65 61 6b 65 6e 61 62 6c |bol '*br|eakenabl|
|00002890| 65 2a 27 20 69 73 20 20 | 6e 69 6c 2c 20 20 58 4c |e*' is |nil, XL|
|000028a0| 49 53 50 20 20 6c 6f 6f | 6b 73 20 20 66 6f 72 20 |ISP loo|ks for |
|000028b0| 20 61 0a 20 20 20 20 20 | 20 73 75 72 72 6f 75 6e | a. | surroun|
|000028c0| 64 69 6e 67 20 20 20 65 | 72 72 73 65 74 20 20 66 |ding e|rrset f|
|000028d0| 75 6e 63 74 69 6f 6e 2e | 20 20 20 49 66 20 20 6f |unction.| If o|
|000028e0| 6e 65 20 20 69 73 20 20 | 66 6f 75 6e 64 2c 20 20 |ne is |found, |
|000028f0| 58 4c 49 53 50 0a 20 20 | 20 20 20 20 65 78 61 6d |XLISP. | exam|
|00002900| 69 6e 65 73 20 74 68 65 | 20 76 61 6c 75 65 20 6f |ines the| value o|
|00002910| 66 20 74 68 65 20 70 72 | 69 6e 74 20 66 6c 61 67 |f the pr|int flag|
|00002920| 2e 20 20 49 66 20 74 68 | 69 73 20 66 6c 61 67 20 |. If th|is flag |
|00002930| 69 73 20 74 72 75 65 2c | 0a 20 20 20 20 20 20 74 |is true,|. t|
|00002940| 68 65 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |he error| message|
|00002950| 20 69 73 20 70 72 69 6e | 74 65 64 2e 20 20 49 6e | is prin|ted. In|
|00002960| 20 61 6e 79 20 63 61 73 | 65 2c 20 58 4c 49 53 50 | any cas|e, XLISP|
|00002970| 20 63 61 75 73 65 73 20 | 74 68 65 0a 20 20 20 20 | causes |the. |
|00002980| 20 20 65 72 72 73 65 74 | 20 66 75 6e 63 74 69 6f | errset| functio|
|00002990| 6e 20 63 61 6c 6c 20 74 | 6f 20 72 65 74 75 72 6e |n call t|o return|
|000029a0| 20 6e 69 6c 2e 0a 0a 20 | 20 20 20 20 20 49 66 20 | nil... | If |
|000029b0| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 73 75 72 72 |there is| no surr|
|000029c0| 6f 75 6e 64 69 6e 67 20 | 65 72 72 73 65 74 20 66 |ounding |errset f|
|000029d0| 75 6e 63 74 69 6f 6e 2c | 20 58 4c 49 53 50 20 70 |unction,| XLISP p|
|000029e0| 72 69 6e 74 73 20 74 68 | 65 0a 20 20 20 20 20 20 |rints th|e. |
|000029f0| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 20 61 6e |error me|ssage an|
|00002a00| 64 20 72 65 74 75 72 6e | 73 20 74 6f 20 74 68 65 |d return|s to the|
|00002a10| 20 74 6f 70 20 6c 65 76 | 65 6c 2e 0a 0c 0a 0a 0a | top lev|el......|
|00002a20| 20 20 20 20 20 20 58 4c | 49 53 50 3a 20 41 6e 20 | XL|ISP: An |
|00002a30| 45 78 70 65 72 69 6d 65 | 6e 74 61 6c 20 4f 62 6a |Experime|ntal Obj|
|00002a40| 65 63 74 20 4f 72 69 65 | 6e 74 65 64 20 4c 61 6e |ect Orie|nted Lan|
|00002a50| 67 75 61 67 65 20 20 20 | 20 20 20 20 20 20 20 20 |guage | |
|00002a60| 20 20 20 20 20 20 50 61 | 67 65 20 37 0a 20 20 20 | Pa|ge 7. |
|00002a70| 20 20 20 44 41 54 41 20 | 54 59 50 45 53 0a 0a 0a | DATA |TYPES...|
|00002a80| 20 20 20 20 20 20 35 2e | 30 20 20 44 41 54 41 20 | 5.|0 DATA |
|00002a90| 54 59 50 45 53 0a 0a 20 | 20 20 20 20 20 54 68 65 |TYPES.. | The|
|00002aa0| 72 65 20 61 72 65 20 73 | 65 76 65 72 61 6c 20 64 |re are s|everal d|
|00002ab0| 69 66 66 65 72 65 6e 74 | 20 64 61 74 61 20 74 79 |ifferent| data ty|
|00002ac0| 70 65 73 20 20 61 76 61 | 69 6c 61 62 6c 65 20 20 |pes ava|ilable |
|00002ad0| 74 6f 20 20 58 4c 49 53 | 50 0a 20 20 20 20 20 20 |to XLIS|P. |
|00002ae0| 70 72 6f 67 72 61 6d 6d | 65 72 73 2e 0a 0a 0a 20 |programm|ers.... |
|00002af0| 20 20 20 20 20 20 20 20 | 20 20 20 6f 20 20 6c 69 | | o li|
|00002b00| 73 74 73 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |sts.. | |
|00002b10| 20 6f 20 20 73 79 6d 62 | 6f 6c 73 0a 0a 20 20 20 | o symb|ols.. |
|00002b20| 20 20 20 20 20 20 20 20 | 20 6f 20 20 73 74 72 69 | | o stri|
|00002b30| 6e 67 73 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ngs.. | |
|00002b40| 20 6f 20 20 69 6e 74 65 | 67 65 72 73 0a 0a 20 20 | o inte|gers.. |
|00002b50| 20 20 20 20 20 20 20 20 | 20 20 6f 20 20 6f 62 6a | | o obj|
|00002b60| 65 63 74 73 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |ects.. | |
|00002b70| 20 20 6f 20 20 66 69 6c | 65 20 70 6f 69 6e 74 65 | o fil|e pointe|
|00002b80| 72 73 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |rs.. | |
|00002b90| 6f 20 20 73 75 62 72 73 | 2f 66 73 75 62 72 73 20 |o subrs|/fsubrs |
|00002ba0| 28 62 75 69 6c 74 2d 69 | 6e 20 66 75 6e 63 74 69 |(built-i|n functi|
|00002bb0| 6f 6e 73 29 0a 0a 20 20 | 20 20 20 20 41 6e 6f 74 |ons).. | Anot|
|00002bc0| 68 65 72 20 64 61 74 61 | 20 74 79 70 65 20 69 73 |her data| type is|
|00002bd0| 20 74 68 65 20 73 74 72 | 65 61 6d 2e 20 20 41 20 | the str|eam. A |
|00002be0| 73 74 72 65 61 6d 20 69 | 73 20 20 61 20 20 6c 69 |stream i|s a li|
|00002bf0| 73 74 20 20 6e 6f 64 65 | 0a 20 20 20 20 20 20 77 |st node|. w|
|00002c00| 68 6f 73 65 20 63 61 72 | 20 70 6f 69 6e 74 73 20 |hose car| points |
|00002c10| 74 6f 20 74 68 65 20 68 | 65 61 64 20 6f 66 20 61 |to the h|ead of a|
|00002c20| 20 6c 69 73 74 20 6f 66 | 20 69 6e 74 65 67 65 72 | list of| integer|
|00002c30| 73 20 61 6e 64 20 77 68 | 6f 73 65 0a 20 20 20 20 |s and wh|ose. |
|00002c40| 20 20 63 64 72 20 70 6f | 69 6e 74 73 20 74 6f 20 | cdr po|ints to |
|00002c50| 74 68 65 20 6c 61 73 74 | 20 6c 69 73 74 20 6e 6f |the last| list no|
|00002c60| 64 65 20 20 6f 66 20 20 | 74 68 65 20 20 6c 69 73 |de of |the lis|
|00002c70| 74 2e 20 20 20 41 6e 20 | 20 65 6d 70 74 79 0a 20 |t. An | empty. |
|00002c80| 20 20 20 20 20 73 74 72 | 65 61 6d 20 20 69 73 20 | str|eam is |
|00002c90| 20 61 20 20 6c 69 73 74 | 20 6e 6f 64 65 20 77 68 | a list| node wh|
|00002ca0| 6f 73 65 20 63 61 72 20 | 61 6e 64 20 63 64 72 20 |ose car |and cdr |
|00002cb0| 61 72 65 20 6e 69 6c 2e | 20 20 45 61 63 68 20 6f |are nil.| Each o|
|00002cc0| 66 0a 20 20 20 20 20 20 | 74 68 65 20 69 6e 74 65 |f. |the inte|
|00002cd0| 67 65 72 73 20 69 6e 20 | 74 68 65 20 20 6c 69 73 |gers in |the lis|
|00002ce0| 74 20 20 72 65 70 72 65 | 73 65 6e 74 73 20 20 61 |t repre|sents a|
|00002cf0| 20 20 63 68 61 72 61 63 | 74 65 72 20 20 69 6e 20 | charac|ter in |
|00002d00| 20 74 68 65 0a 20 20 20 | 20 20 20 73 74 72 65 61 | the. | strea|
|00002d10| 6d 2e 20 20 20 57 68 65 | 6e 20 20 61 20 63 68 61 |m. Whe|n a cha|
|00002d20| 72 61 63 74 65 72 20 69 | 73 20 72 65 61 64 20 66 |racter i|s read f|
|00002d30| 72 6f 6d 20 61 20 73 74 | 72 65 61 6d 2c 20 74 68 |rom a st|ream, th|
|00002d40| 65 20 66 69 72 73 74 0a | 20 20 20 20 20 20 69 6e |e first.| in|
|00002d50| 74 65 67 65 72 20 66 72 | 6f 6d 20 74 68 65 20 68 |teger fr|om the h|
|00002d60| 65 61 64 20 6f 66 20 74 | 68 65 20 6c 69 73 74 20 |ead of t|he list |
|00002d70| 69 73 20 72 65 6d 6f 76 | 65 64 20 20 61 6e 64 20 |is remov|ed and |
|00002d80| 20 72 65 74 75 72 6e 65 | 64 2e 0a 20 20 20 20 20 | returne|d.. |
|00002d90| 20 57 68 65 6e 20 20 61 | 20 20 63 68 61 72 61 63 | When a| charac|
|00002da0| 74 65 72 20 20 69 73 20 | 20 77 72 69 74 74 65 6e |ter is | written|
|00002db0| 20 20 74 6f 20 20 61 20 | 20 73 74 72 65 61 6d 2c | to a | stream,|
|00002dc0| 20 20 74 68 65 20 69 6e | 74 65 67 65 72 0a 20 20 | the in|teger. |
|00002dd0| 20 20 20 20 72 65 70 72 | 65 73 65 6e 74 69 6e 67 | repr|esenting|
|00002de0| 20 74 68 65 20 63 68 61 | 72 61 63 74 65 72 20 63 | the cha|racter c|
|00002df0| 6f 64 65 20 6f 66 20 74 | 68 65 20 63 68 61 72 61 |ode of t|he chara|
|00002e00| 63 74 65 72 20 69 73 20 | 61 70 70 65 6e 64 65 64 |cter is |appended|
|00002e10| 0a 20 20 20 20 20 20 74 | 6f 20 20 74 68 65 20 20 |. t|o the |
|00002e20| 65 6e 64 20 6f 66 20 74 | 68 65 20 6c 69 73 74 2e |end of t|he list.|
|00002e30| 20 20 57 68 65 6e 20 61 | 20 66 75 6e 63 74 69 6f | When a| functio|
|00002e40| 6e 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 61 74 |n indica|tes that|
|00002e50| 20 69 74 0a 20 20 20 20 | 20 20 74 61 6b 65 73 20 | it. | takes |
|00002e60| 61 6e 20 69 6e 70 75 74 | 20 73 6f 75 72 63 65 20 |an input| source |
|00002e70| 61 73 20 61 20 20 70 61 | 72 61 6d 65 74 65 72 2c |as a pa|rameter,|
|00002e80| 20 20 74 68 69 73 20 20 | 70 61 72 61 6d 65 74 65 | this |paramete|
|00002e90| 72 20 20 63 61 6e 0a 20 | 20 20 20 20 20 65 69 74 |r can. | eit|
|00002ea0| 68 65 72 20 20 62 65 20 | 20 61 6e 20 20 69 6e 70 |her be | an inp|
|00002eb0| 75 74 20 20 66 69 6c 65 | 20 70 6f 69 6e 74 65 72 |ut file| pointer|
|00002ec0| 20 6f 72 20 61 20 73 74 | 72 65 61 6d 2e 20 20 53 | or a st|ream. S|
|00002ed0| 69 6d 69 6c 61 72 6c 79 | 2c 0a 20 20 20 20 20 20 |imilarly|,. |
|00002ee0| 77 68 65 6e 20 61 20 66 | 75 6e 63 74 69 6f 6e 20 |when a f|unction |
|00002ef0| 69 6e 64 69 63 61 74 65 | 73 20 74 68 61 74 20 69 |indicate|s that i|
|00002f00| 74 20 74 61 6b 65 73 20 | 61 6e 20 6f 75 74 70 75 |t takes |an outpu|
|00002f10| 74 20 73 69 6e 6b 20 61 | 73 20 20 61 0a 20 20 20 |t sink a|s a. |
|00002f20| 20 20 20 70 61 72 61 6d | 65 74 65 72 2c 20 20 74 | param|eter, t|
|00002f30| 68 69 73 20 20 70 61 72 | 61 6d 65 74 65 72 20 20 |his par|ameter |
|00002f40| 63 61 6e 20 20 65 69 74 | 68 65 72 20 20 62 65 20 |can eit|her be |
|00002f50| 20 61 6e 20 6f 75 74 70 | 75 74 20 66 69 6c 65 0a | an outp|ut file.|
|00002f60| 20 20 20 20 20 20 70 6f | 69 6e 74 65 72 20 6f 72 | po|inter or|
|00002f70| 20 61 20 73 74 72 65 61 | 6d 2e 0a 0c 0a 0a 0a 20 | a strea|m...... |
|00002f80| 20 20 20 20 20 58 4c 49 | 53 50 3a 20 41 6e 20 45 | XLI|SP: An E|
|00002f90| 78 70 65 72 69 6d 65 6e | 74 61 6c 20 4f 62 6a 65 |xperimen|tal Obje|
|00002fa0| 63 74 20 4f 72 69 65 6e | 74 65 64 20 4c 61 6e 67 |ct Orien|ted Lang|
|00002fb0| 75 61 67 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |uage | |
|00002fc0| 20 20 20 20 20 50 61 67 | 65 20 38 0a 20 20 20 20 | Pag|e 8. |
|00002fd0| 20 20 54 48 45 20 45 56 | 41 4c 55 41 54 4f 52 0a | THE EV|ALUATOR.|
|00002fe0| 0a 0a 20 20 20 20 20 20 | 36 2e 30 20 20 54 48 45 |.. |6.0 THE|
|00002ff0| 20 45 56 41 4c 55 41 54 | 4f 52 0a 0a 20 20 20 20 | EVALUAT|OR.. |
|00003000| 20 20 54 68 65 20 70 72 | 6f 63 65 73 73 20 6f 66 | The pr|ocess of|
|00003010| 20 65 76 61 6c 75 61 74 | 69 6f 6e 20 69 6e 20 58 | evaluat|ion in X|
|00003020| 4c 49 53 50 3a 0a 0a 20 | 20 20 20 20 20 20 20 20 |LISP:.. | |
|00003030| 20 20 20 6f 20 20 49 6e | 74 65 67 65 72 73 2c 20 | o In|tegers, |
|00003040| 20 73 74 72 69 6e 67 73 | 2c 20 20 6f 62 6a 65 63 | strings|, objec|
|00003050| 74 73 2c 20 20 66 69 6c | 65 20 20 70 6f 69 6e 74 |ts, fil|e point|
|00003060| 65 72 73 2c 20 20 61 6e | 64 0a 20 20 20 20 20 20 |ers, an|d. |
|00003070| 20 20 20 20 20 20 20 20 | 20 73 75 62 72 73 20 65 | | subrs e|
|00003080| 76 61 6c 75 61 74 65 20 | 74 6f 20 74 68 65 6d 73 |valuate |to thems|
|00003090| 65 6c 76 65 73 0a 0a 20 | 20 20 20 20 20 20 20 20 |elves.. | |
|000030a0| 20 20 20 6f 20 20 53 79 | 6d 62 6f 6c 73 20 65 76 | o Sy|mbols ev|
|000030b0| 61 6c 75 61 74 65 20 74 | 6f 20 74 68 65 20 76 61 |aluate t|o the va|
|000030c0| 6c 75 65 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |lue asso|ciated w|
|000030d0| 69 74 68 20 74 68 65 69 | 72 0a 20 20 20 20 20 20 |ith thei|r. |
|000030e0| 20 20 20 20 20 20 20 20 | 20 63 75 72 72 65 6e 74 | | current|
|000030f0| 20 62 69 6e 64 69 6e 67 | 0a 0a 20 20 20 20 20 20 | binding|.. |
|00003100| 20 20 20 20 20 20 6f 20 | 20 4c 69 73 74 73 20 61 | o | Lists a|
|00003110| 72 65 20 65 76 61 6c 75 | 61 74 65 64 20 62 79 20 |re evalu|ated by |
|00003120| 65 76 61 6c 75 61 74 69 | 6e 67 20 74 68 65 20 66 |evaluati|ng the f|
|00003130| 69 72 73 74 20 65 6c 65 | 6d 65 6e 74 0a 20 20 20 |irst ele|ment. |
|00003140| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 66 20 74 | | of t|
|00003150| 68 65 20 6c 69 73 74 0a | 0a 20 20 20 20 20 20 20 |he list.|. |
|00003160| 20 20 20 20 20 20 20 20 | 20 6f 20 20 49 66 20 69 | | o If i|
|00003170| 74 20 65 76 61 6c 75 61 | 74 65 73 20 74 6f 20 61 |t evalua|tes to a|
|00003180| 20 73 75 62 72 2c 20 74 | 68 65 20 20 72 65 6d 61 | subr, t|he rema|
|00003190| 69 6e 69 6e 67 20 20 6c | 69 73 74 0a 20 20 20 20 |ining l|ist. |
|000031a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 | | e|
|000031b0| 6c 65 6d 65 6e 74 73 20 | 20 61 72 65 20 20 65 76 |lements | are ev|
|000031c0| 61 6c 75 61 74 65 64 20 | 61 6e 64 20 74 68 65 20 |aluated |and the |
|000031d0| 73 75 62 72 20 69 73 20 | 63 61 6c 6c 65 64 0a 20 |subr is |called. |
|000031e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000031f0| 20 20 77 69 74 68 20 74 | 68 65 73 65 20 65 76 61 | with t|hese eva|
|00003200| 6c 75 61 74 65 64 20 65 | 78 70 72 65 73 73 69 6f |luated e|xpressio|
|00003210| 6e 73 20 61 73 20 61 72 | 67 75 6d 65 6e 74 73 2e |ns as ar|guments.|
|00003220| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00003230| 20 20 6f 20 20 49 66 20 | 69 74 20 65 76 61 6c 75 | o If |it evalu|
|00003240| 61 74 65 73 20 20 74 6f | 20 20 61 6e 20 20 66 73 |ates to| an fs|
|00003250| 75 62 72 2c 20 20 74 68 | 65 20 20 66 73 75 62 72 |ubr, th|e fsubr|
|00003260| 20 20 69 73 0a 20 20 20 | 20 20 20 20 20 20 20 20 | is. | |
|00003270| 20 20 20 20 20 20 20 20 | 63 61 6c 6c 65 64 20 20 | |called |
|00003280| 75 73 69 6e 67 20 20 74 | 68 65 20 20 72 65 6d 61 |using t|he rema|
|00003290| 69 6e 69 6e 67 20 20 6c | 69 73 74 20 65 6c 65 6d |ining l|ist elem|
|000032a0| 65 6e 74 73 20 61 73 0a | 20 20 20 20 20 20 20 20 |ents as.| |
|000032b0| 20 20 20 20 20 20 20 20 | 20 20 20 61 72 67 75 6d | | argum|
|000032c0| 65 6e 74 73 20 20 28 74 | 68 65 79 20 20 61 72 65 |ents (t|hey are|
|000032d0| 20 20 65 76 61 6c 75 61 | 74 65 64 20 20 62 79 20 | evalua|ted by |
|000032e0| 20 74 68 65 20 20 73 75 | 62 72 0a 20 20 20 20 20 | the su|br. |
|000032f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 74 | | it|
|00003300| 73 65 6c 66 20 69 66 20 | 6e 65 63 65 73 73 61 72 |self if |necessar|
|00003310| 79 29 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |y).. | |
|00003320| 20 20 20 20 6f 20 20 49 | 66 20 69 74 20 65 76 61 | o I|f it eva|
|00003330| 6c 75 61 74 65 73 20 74 | 6f 20 61 20 6c 69 73 74 |luates t|o a list|
|00003340| 20 61 6e 64 20 74 68 65 | 20 20 63 61 72 20 20 6f | and the| car o|
|00003350| 66 20 20 74 68 65 0a 20 | 20 20 20 20 20 20 20 20 |f the. | |
|00003360| 20 20 20 20 20 20 20 20 | 20 20 6c 69 73 74 20 20 | | list |
|00003370| 69 73 20 20 27 6c 61 6d | 62 64 61 27 2c 20 74 68 |is 'lam|bda', th|
|00003380| 65 20 72 65 6d 61 69 6e | 69 6e 67 20 6c 69 73 74 |e remain|ing list|
|00003390| 20 65 6c 65 6d 65 6e 74 | 73 0a 20 20 20 20 20 20 | element|s. |
|000033a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 61 72 65 | | are|
|000033b0| 20 65 76 61 6c 75 61 74 | 65 64 20 61 6e 64 20 74 | evaluat|ed and t|
|000033c0| 68 65 20 72 65 73 75 6c | 74 69 6e 67 20 65 78 70 |he resul|ting exp|
|000033d0| 72 65 73 73 69 6f 6e 73 | 20 61 72 65 0a 20 20 20 |ressions| are. |
|000033e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033f0| 62 6f 75 6e 64 20 20 74 | 6f 20 20 74 68 65 20 20 |bound t|o the |
|00003400| 66 6f 72 6d 61 6c 20 20 | 61 72 67 75 6d 65 6e 74 |formal |argument|
|00003410| 73 20 6f 66 20 74 68 65 | 20 6c 61 6d 62 64 61 0a |s of the| lambda.|
|00003420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003430| 20 20 20 65 78 70 72 65 | 73 73 69 6f 6e 2e 20 20 | expre|ssion. |
|00003440| 20 54 68 65 20 20 62 6f | 64 79 20 20 6f 66 20 20 | The bo|dy of |
|00003450| 74 68 65 20 20 66 75 6e | 63 74 69 6f 6e 20 20 20 |the fun|ction |
|00003460| 69 73 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |is. | |
|00003470| 20 20 20 20 20 20 65 78 | 65 63 75 74 65 64 20 77 | ex|ecuted w|
|00003480| 69 74 68 69 6e 20 74 68 | 69 73 20 6e 65 77 20 62 |ithin th|is new b|
|00003490| 69 6e 64 69 6e 67 20 65 | 6e 76 69 72 6f 6e 6d 65 |inding e|nvironme|
|000034a0| 6e 74 2e 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |nt... | |
|000034b0| 20 20 20 20 20 6f 20 20 | 49 66 20 69 74 20 65 76 | o |If it ev|
|000034c0| 61 6c 75 61 74 65 73 20 | 74 6f 20 61 20 6c 69 73 |aluates |to a lis|
|000034d0| 74 20 61 6e 64 20 74 68 | 65 20 20 63 61 72 20 20 |t and th|e car |
|000034e0| 6f 66 20 20 74 68 65 0a | 20 20 20 20 20 20 20 20 |of the.| |
|000034f0| 20 20 20 20 20 20 20 20 | 20 20 20 6c 69 73 74 20 | | list |
|00003500| 20 69 73 20 20 27 6d 61 | 63 72 6f 27 2c 20 20 74 | is 'ma|cro', t|
|00003510| 68 65 20 72 65 6d 61 69 | 6e 69 6e 67 20 6c 69 73 |he remai|ning lis|
|00003520| 74 20 65 6c 65 6d 65 6e | 74 73 0a 20 20 20 20 20 |t elemen|ts. |
|00003530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 72 | | ar|
|00003540| 65 20 62 6f 75 6e 64 20 | 74 6f 20 74 68 65 20 66 |e bound |to the f|
|00003550| 6f 72 6d 61 6c 20 61 72 | 67 75 6d 65 6e 74 73 20 |ormal ar|guments |
|00003560| 6f 66 20 74 68 65 20 20 | 6d 61 63 72 6f 0a 20 20 |of the |macro. |
|00003570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003580| 20 65 78 70 72 65 73 73 | 69 6f 6e 2e 20 20 20 20 | express|ion. |
|00003590| 54 68 65 20 20 62 6f 64 | 79 20 20 6f 66 20 20 74 |The bod|y of t|
|000035a0| 68 65 20 20 66 75 6e 63 | 74 69 6f 6e 20 20 69 73 |he func|tion is|
|000035b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000035c0| 20 20 20 20 65 78 65 63 | 75 74 65 64 20 77 69 74 | exec|uted wit|
|000035d0| 68 69 6e 20 74 68 69 73 | 20 6e 65 77 20 20 62 69 |hin this| new bi|
|000035e0| 6e 64 69 6e 67 20 20 65 | 6e 76 69 72 6f 6e 6d 65 |nding e|nvironme|
|000035f0| 6e 74 2e 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |nt.. | |
|00003600| 20 20 20 20 20 20 20 54 | 68 65 20 72 65 73 75 6c | T|he resul|
|00003610| 74 20 6f 66 20 74 68 69 | 73 20 65 76 61 6c 75 61 |t of thi|s evalua|
|00003620| 74 69 6f 6e 20 69 73 20 | 63 6f 6e 73 69 64 65 72 |tion is |consider|
|00003630| 65 64 20 74 68 65 0a 20 | 20 20 20 20 20 20 20 20 |ed the. | |
|00003640| 20 20 20 20 20 20 20 20 | 20 20 6d 61 63 72 6f 20 | | macro |
|00003650| 65 78 70 61 6e 73 69 6f | 6e 2e 20 20 54 68 69 73 |expansio|n. This|
|00003660| 20 72 65 73 75 6c 74 20 | 69 73 20 74 68 65 6e 20 | result |is then |
|00003670| 65 76 61 6c 75 61 74 65 | 64 0a 20 20 20 20 20 20 |evaluate|d. |
|00003680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 6e 20 | | in |
|00003690| 70 6c 61 63 65 20 6f 66 | 20 74 68 65 20 6f 72 69 |place of| the ori|
|000036a0| 67 69 6e 61 6c 20 65 78 | 70 72 65 73 73 69 6f 6e |ginal ex|pression|
|000036b0| 2e 0a 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|000036c0| 20 20 20 6f 20 20 49 66 | 20 69 74 20 65 76 61 6c | o If| it eval|
|000036d0| 75 61 74 65 73 20 74 6f | 20 61 6e 20 6f 62 6a 65 |uates to| an obje|
|000036e0| 63 74 2c 20 74 68 65 20 | 20 73 65 63 6f 6e 64 20 |ct, the | second |
|000036f0| 20 6c 69 73 74 0a 20 20 | 20 20 20 20 20 20 20 20 | list. | |
|00003700| 20 20 20 20 20 20 20 20 | 20 65 6c 65 6d 65 6e 74 | | element|
|00003710| 20 20 69 73 20 20 65 76 | 61 6c 75 61 74 65 64 20 | is ev|aluated |
|00003720| 20 61 6e 64 20 20 75 73 | 65 64 20 20 61 73 20 61 | and us|ed as a|
|00003730| 20 6d 65 73 73 61 67 65 | 0a 20 20 20 20 20 20 20 | message|. |
|00003740| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 65 6c 65 | | sele|
|00003750| 63 74 6f 72 2e 20 20 54 | 68 65 20 6d 65 73 73 61 |ctor. T|he messa|
|00003760| 67 65 20 66 6f 72 6d 65 | 64 20 62 79 20 63 6f 6d |ge forme|d by com|
|00003770| 62 69 6e 69 6e 67 20 20 | 74 68 65 0a 20 20 20 20 |bining |the. |
|00003780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 | | s|
|00003790| 65 6c 65 63 74 6f 72 20 | 20 77 69 74 68 20 74 68 |elector | with th|
|000037a0| 65 20 76 61 6c 75 65 73 | 20 6f 66 20 74 68 65 20 |e values| of the |
|000037b0| 72 65 6d 61 69 6e 69 6e | 67 20 6c 69 73 74 0a 20 |remainin|g list. |
|000037c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000037d0| 20 20 65 6c 65 6d 65 6e | 74 73 20 69 73 20 73 65 | elemen|ts is se|
|000037e0| 6e 74 20 74 6f 20 74 68 | 65 20 6f 62 6a 65 63 74 |nt to th|e object|
|000037f0| 2e 0a 0a 0a 0c 0a 0a 0a | 20 20 20 20 20 20 58 4c |........| XL|
|00003800| 49 53 50 3a 20 41 6e 20 | 45 78 70 65 72 69 6d 65 |ISP: An |Experime|
|00003810| 6e 74 61 6c 20 4f 62 6a | 65 63 74 20 4f 72 69 65 |ntal Obj|ect Orie|
|00003820| 6e 74 65 64 20 4c 61 6e | 67 75 61 67 65 20 20 20 |nted Lan|guage |
|00003830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 61 | | Pa|
|00003840| 67 65 20 39 0a 20 20 20 | 20 20 20 4c 45 58 49 43 |ge 9. | LEXIC|
|00003850| 41 4c 20 43 4f 4e 56 45 | 4e 54 49 4f 4e 53 0a 0a |AL CONVE|NTIONS..|
|00003860| 0a 20 20 20 20 20 20 37 | 2e 30 20 20 4c 45 58 49 |. 7|.0 LEXI|
|00003870| 43 41 4c 20 43 4f 4e 56 | 45 4e 54 49 4f 4e 53 0a |CAL CONV|ENTIONS.|
|00003880| 0a 20 20 20 20 20 20 54 | 68 65 20 66 6f 6c 6c 6f |. T|he follo|
|00003890| 77 69 6e 67 20 63 6f 6e | 76 65 6e 74 69 6f 6e 73 |wing con|ventions|
|000038a0| 20 61 72 65 20 66 6f 6c | 6c 6f 77 65 64 20 77 68 | are fol|lowed wh|
|000038b0| 65 6e 20 20 65 6e 74 65 | 72 69 6e 67 20 20 58 4c |en ente|ring XL|
|000038c0| 49 53 50 0a 20 20 20 20 | 20 20 70 72 6f 67 72 61 |ISP. | progra|
|000038d0| 6d 73 3a 0a 0a 20 20 20 | 20 20 20 43 6f 6d 6d 65 |ms:.. | Comme|
|000038e0| 6e 74 73 20 69 6e 20 58 | 4c 49 53 50 20 63 6f 64 |nts in X|LISP cod|
|000038f0| 65 20 62 65 67 69 6e 20 | 77 69 74 68 20 61 20 73 |e begin |with a s|
|00003900| 65 6d 69 2d 63 6f 6c 6f | 6e 20 63 68 61 72 61 63 |emi-colo|n charac|
|00003910| 74 65 72 20 61 6e 64 0a | 20 20 20 20 20 20 63 6f |ter and.| co|
|00003920| 6e 74 69 6e 75 65 20 74 | 6f 20 74 68 65 20 65 6e |ntinue t|o the en|
|00003930| 64 20 6f 66 20 74 68 65 | 20 6c 69 6e 65 2e 0a 0a |d of the| line...|
|00003940| 20 20 20 20 20 20 53 79 | 6d 62 6f 6c 20 6e 61 6d | Sy|mbol nam|
|00003950| 65 73 20 20 69 6e 20 20 | 58 4c 49 53 50 20 20 63 |es in |XLISP c|
|00003960| 61 6e 20 20 63 6f 6e 73 | 69 73 74 20 20 6f 66 20 |an cons|ist of |
|00003970| 20 61 6e 79 20 20 73 65 | 71 75 65 6e 63 65 20 20 | any se|quence |
|00003980| 6f 66 0a 20 20 20 20 20 | 20 6e 6f 6e 2d 62 6c 61 |of. | non-bla|
|00003990| 6e 6b 20 70 72 69 6e 74 | 61 62 6c 65 20 63 68 61 |nk print|able cha|
|000039a0| 72 61 63 74 65 72 73 20 | 65 78 63 65 70 74 20 74 |racters |except t|
|000039b0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 3a 0a 0a 20 |he follo|wing:.. |
|000039c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 20 29 | | ( )|
|000039d0| 20 27 20 60 20 2c 20 22 | 20 3b 0a 0a 20 20 20 20 | ' ` , "| ;.. |
|000039e0| 20 20 55 70 70 65 72 20 | 61 6e 64 20 6c 6f 77 65 | Upper |and lowe|
|000039f0| 72 20 63 61 73 65 20 63 | 68 61 72 61 63 74 65 72 |r case c|haracter|
|00003a00| 73 20 61 72 65 20 64 69 | 73 74 69 6e 63 74 2e 20 |s are di|stinct. |
|00003a10| 20 20 54 68 65 20 20 73 | 79 6d 62 6f 6c 73 0a 20 | The s|ymbols. |
|00003a20| 20 20 20 20 20 27 43 41 | 52 27 20 61 6e 64 20 27 | 'CA|R' and '|
|00003a30| 63 61 72 27 20 61 72 65 | 20 6e 6f 74 20 74 68 65 |car' are| not the|
|00003a40| 20 73 61 6d 65 2e 20 20 | 54 68 65 20 6e 61 6d 65 | same. |The name|
|00003a50| 73 20 6f 66 20 61 6c 6c | 20 62 75 69 6c 74 2d 69 |s of all| built-i|
|00003a60| 6e 0a 20 20 20 20 20 20 | 66 75 6e 63 74 69 6f 6e |n. |function|
|00003a70| 73 20 61 72 65 20 69 6e | 20 6c 6f 77 65 72 20 63 |s are in| lower c|
|00003a80| 61 73 65 2e 20 20 20 54 | 68 65 20 20 6e 61 6d 65 |ase. T|he name|
|00003a90| 73 20 20 6f 66 20 20 61 | 6c 6c 20 20 62 75 69 6c |s of a|ll buil|
|00003aa0| 74 2d 69 6e 0a 20 20 20 | 20 20 20 6f 62 6a 65 63 |t-in. | objec|
|00003ab0| 74 73 20 20 61 72 65 20 | 20 6c 6f 77 65 72 20 20 |ts are | lower |
|00003ac0| 63 61 73 65 20 20 77 69 | 74 68 20 20 61 6e 20 69 |case wi|th an i|
|00003ad0| 6e 69 74 69 61 6c 20 63 | 61 70 69 74 61 6c 2e 20 |nitial c|apital. |
|00003ae0| 20 53 79 6d 62 6f 6c 0a | 20 20 20 20 20 20 6e 61 | Symbol.| na|
|00003af0| 6d 65 73 20 6d 75 73 74 | 20 6e 6f 74 20 62 65 67 |mes must| not beg|
|00003b00| 69 6e 20 77 69 74 68 20 | 61 20 64 69 67 69 74 2e |in with |a digit.|
|00003b10| 0a 0a 20 20 20 20 20 20 | 49 6e 74 65 67 65 72 20 |.. |Integer |
|00003b20| 6c 69 74 65 72 61 6c 73 | 20 63 6f 6e 73 69 73 74 |literals| consist|
|00003b30| 20 6f 66 20 61 20 73 65 | 71 75 65 6e 63 65 20 6f | of a se|quence o|
|00003b40| 66 20 64 69 67 69 74 73 | 20 20 6f 70 74 69 6f 6e |f digits| option|
|00003b50| 61 6c 6c 79 0a 20 20 20 | 20 20 20 62 65 67 69 6e |ally. | begin|
|00003b60| 6e 69 6e 67 20 77 69 74 | 68 20 61 20 27 2b 27 20 |ning wit|h a '+' |
|00003b70| 6f 72 20 27 2d 27 2e 20 | 20 54 68 65 20 72 61 6e |or '-'. | The ran|
|00003b80| 67 65 20 6f 66 20 76 61 | 6c 75 65 73 20 61 6e 20 |ge of va|lues an |
|00003b90| 69 6e 74 65 67 65 72 0a | 20 20 20 20 20 20 63 61 |integer.| ca|
|00003ba0| 6e 20 72 65 70 72 65 73 | 65 6e 74 20 69 73 20 6c |n repres|ent is l|
|00003bb0| 69 6d 69 74 65 64 20 62 | 79 20 74 68 65 20 73 69 |imited b|y the si|
|00003bc0| 7a 65 20 6f 66 20 61 20 | 20 43 20 20 27 69 6e 74 |ze of a | C 'int|
|00003bd0| 27 20 20 6f 6e 20 20 74 | 68 65 0a 20 20 20 20 20 |' on t|he. |
|00003be0| 20 6d 61 63 68 69 6e 65 | 20 74 68 61 74 20 58 4c | machine| that XL|
|00003bf0| 49 53 50 20 69 73 20 72 | 75 6e 6e 69 6e 67 20 6f |ISP is r|unning o|
|00003c00| 6e 2e 0a 0a 20 20 20 20 | 20 20 4c 69 74 65 72 61 |n... | Litera|
|00003c10| 6c 20 73 74 72 69 6e 67 | 73 20 61 72 65 20 73 65 |l string|s are se|
|00003c20| 71 75 65 6e 63 65 73 20 | 6f 66 20 20 63 68 61 72 |quences |of char|
|00003c30| 61 63 74 65 72 73 20 20 | 73 75 72 72 6f 75 6e 64 |acters |surround|
|00003c40| 65 64 20 20 62 79 0a 20 | 20 20 20 20 20 64 6f 75 |ed by. | dou|
|00003c50| 62 6c 65 20 20 71 75 6f | 74 65 73 2e 20 20 20 57 |ble quo|tes. W|
|00003c60| 69 74 68 69 6e 20 71 75 | 6f 74 65 64 20 73 74 72 |ithin qu|oted str|
|00003c70| 69 6e 67 73 20 74 68 65 | 20 27 5c 27 20 63 68 61 |ings the| '\' cha|
|00003c80| 72 61 63 74 65 72 20 69 | 73 0a 20 20 20 20 20 20 |racter i|s. |
|00003c90| 75 73 65 64 20 74 6f 20 | 61 6c 6c 6f 77 20 6e 6f |used to |allow no|
|00003ca0| 6e 2d 70 72 69 6e 74 61 | 62 6c 65 20 63 68 61 72 |n-printa|ble char|
|00003cb0| 61 63 74 65 72 73 20 74 | 6f 20 62 65 20 69 6e 63 |acters t|o be inc|
|00003cc0| 6c 75 64 65 64 2e 20 20 | 20 54 68 65 0a 20 20 20 |luded. | The. |
|00003cd0| 20 20 20 63 6f 64 65 73 | 20 72 65 63 6f 67 6e 69 | codes| recogni|
|00003ce0| 7a 65 64 20 61 72 65 3a | 0a 0a 20 20 20 20 20 20 |zed are:|.. |
|00003cf0| 20 20 20 20 20 20 20 20 | 5c 5c 20 20 20 20 20 20 | |\\ |
|00003d00| 6d 65 61 6e 73 20 74 68 | 65 20 63 68 61 72 61 63 |means th|e charac|
|00003d10| 74 65 72 20 27 5c 27 0a | 20 20 20 20 20 20 20 20 |ter '\'.| |
|00003d20| 20 20 20 20 20 20 5c 6e | 20 20 20 20 20 20 6d 65 | \n| me|
|00003d30| 61 6e 73 20 6e 65 77 6c | 69 6e 65 0a 20 20 20 20 |ans newl|ine. |
|00003d40| 20 20 20 20 20 20 20 20 | 20 20 5c 74 20 20 20 20 | | \t |
|00003d50| 20 20 6d 65 61 6e 73 20 | 74 61 62 0a 20 20 20 20 | means |tab. |
|00003d60| 20 20 20 20 20 20 20 20 | 20 20 5c 72 20 20 20 20 | | \r |
|00003d70| 20 20 6d 65 61 6e 73 20 | 72 65 74 75 72 6e 0a 20 | means |return. |
|00003d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 65 20 | | \e |
|00003d90| 20 20 20 20 20 6d 65 61 | 6e 73 20 65 73 63 61 70 | mea|ns escap|
|00003da0| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e. | |
|00003db0| 5c 6e 6e 6e 20 20 20 20 | 6d 65 61 6e 73 20 74 68 |\nnn |means th|
|00003dc0| 65 20 63 68 61 72 61 63 | 74 65 72 20 77 68 6f 73 |e charac|ter whos|
|00003dd0| 65 20 6f 63 74 61 6c 20 | 63 6f 64 65 20 69 73 20 |e octal |code is |
|00003de0| 6e 6e 6e 0a 0a 20 20 20 | 20 20 20 58 4c 49 53 50 |nnn.. | XLISP|
|00003df0| 20 64 65 66 69 6e 65 73 | 20 73 65 76 65 72 61 6c | defines| several|
|00003e00| 20 75 73 65 66 75 6c 20 | 72 65 61 64 20 6d 61 63 | useful |read mac|
|00003e10| 72 6f 73 3a 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |ros:.. | |
|00003e20| 20 20 20 20 27 3c 65 78 | 70 72 3e 20 20 3d 3d 20 | '<ex|pr> == |
|00003e30| 28 71 75 6f 74 65 20 3c | 65 78 70 72 3e 29 0a 20 |(quote <|expr>). |
|00003e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 27 3c | | #'<|
|00003e50| 65 78 70 72 3e 20 3d 3d | 20 28 66 75 6e 63 74 69 |expr> ==| (functi|
|00003e60| 6f 6e 20 3c 65 78 70 72 | 3e 29 0a 20 20 20 20 20 |on <expr|>). |
|00003e70| 20 20 20 20 20 20 20 20 | 20 60 3c 65 78 70 72 3e | | `<expr>|
|00003e80| 20 20 3d 3d 20 28 62 61 | 63 6b 71 75 6f 74 65 20 | == (ba|ckquote |
|00003e90| 3c 65 78 70 72 3e 29 0a | 20 20 20 20 20 20 20 20 |<expr>).| |
|00003ea0| 20 20 20 20 20 20 2c 3c | 65 78 70 72 3e 20 20 3d | ,<|expr> =|
|00003eb0| 3d 20 28 63 6f 6d 6d 61 | 20 3c 65 78 70 72 3e 29 |= (comma| <expr>)|
|00003ec0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2c |. | ,|
|00003ed0| 40 3c 65 78 70 72 3e 20 | 3d 3d 20 28 63 6f 6d 6d |@<expr> |== (comm|
|00003ee0| 61 2d 61 74 20 3c 65 78 | 70 72 3e 29 0a 0c 0a 0a |a-at <ex|pr>)....|
|00003ef0| 0a 20 20 20 20 20 20 58 | 4c 49 53 50 3a 20 41 6e |. X|LISP: An|
|00003f00| 20 45 78 70 65 72 69 6d | 65 6e 74 61 6c 20 4f 62 | Experim|ental Ob|
|00003f10| 6a 65 63 74 20 4f 72 69 | 65 6e 74 65 64 20 4c 61 |ject Ori|ented La|
|00003f20| 6e 67 75 61 67 65 20 20 | 20 20 20 20 20 20 20 20 |nguage | |
|00003f30| 20 20 20 20 20 20 50 61 | 67 65 20 31 30 0a 20 20 | Pa|ge 10. |
|00003f40| 20 20 20 20 4f 42 4a 45 | 43 54 53 0a 0a 0a 20 20 | OBJE|CTS... |
|00003f50| 20 20 20 20 38 2e 30 20 | 20 4f 42 4a 45 43 54 53 | 8.0 | OBJECTS|
|00003f60| 0a 0a 20 20 20 20 20 20 | 44 65 66 69 6e 69 74 69 |.. |Definiti|
|00003f70| 6f 6e 73 3a 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |ons:.. | |
|00003f80| 20 20 6f 20 20 73 65 6c | 65 63 74 6f 72 20 2d 20 | o sel|ector - |
|00003f90| 61 20 73 79 6d 62 6f 6c | 20 75 73 65 64 20 74 6f |a symbol| used to|
|00003fa0| 20 73 65 6c 65 63 74 20 | 20 61 6e 20 20 61 70 70 | select | an app|
|00003fb0| 72 6f 70 72 69 61 74 65 | 0a 20 20 20 20 20 20 20 |ropriate|. |
|00003fc0| 20 20 20 20 20 20 20 20 | 6d 65 74 68 6f 64 0a 0a | |method..|
|00003fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 20 20 6d | | o m|
|00003fe0| 65 73 73 61 67 65 20 2d | 20 61 20 73 65 6c 65 63 |essage -| a selec|
|00003ff0| 74 6f 72 20 61 6e 64 20 | 61 20 6c 69 73 74 20 6f |tor and |a list o|
|00004000| 66 20 61 63 74 75 61 6c | 20 61 72 67 75 6d 65 6e |f actual| argumen|
|00004010| 74 73 0a 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ts.. | |
|00004020| 6f 20 20 6d 65 74 68 6f | 64 20 2d 20 74 68 65 20 |o metho|d - the |
|00004030| 63 6f 64 65 20 74 68 61 | 74 20 69 6d 70 6c 65 6d |code tha|t implem|
|00004040| 65 6e 74 73 20 61 20 6d | 65 73 73 61 67 65 0a 0a |ents a m|essage..|
|00004050| 20 20 20 20 20 20 53 69 | 6e 63 65 20 58 4c 49 53 | Si|nce XLIS|
|00004060| 50 20 77 61 73 20 20 63 | 72 65 61 74 65 64 20 20 |P was c|reated |
|00004070| 74 6f 20 20 70 72 6f 76 | 69 64 65 20 20 61 20 20 |to prov|ide a |
|00004080| 73 69 6d 70 6c 65 20 20 | 62 61 73 69 73 20 20 66 |simple |basis f|
|00004090| 6f 72 0a 20 20 20 20 20 | 20 65 78 70 65 72 69 6d |or. | experim|
|000040a0| 65 6e 74 69 6e 67 20 20 | 77 69 74 68 20 20 6f 62 |enting |with ob|
|000040b0| 6a 65 63 74 20 6f 72 69 | 65 6e 74 65 64 20 70 72 |ject ori|ented pr|
|000040c0| 6f 67 72 61 6d 6d 69 6e | 67 2c 20 6f 6e 65 20 6f |ogrammin|g, one o|
|000040d0| 66 20 74 68 65 0a 20 20 | 20 20 20 20 70 72 69 6d |f the. | prim|
|000040e0| 69 74 69 76 65 20 64 61 | 74 61 20 74 79 70 65 73 |itive da|ta types|
|000040f0| 20 69 6e 63 6c 75 64 65 | 64 20 77 61 73 20 27 6f | include|d was 'o|
|00004100| 62 6a 65 63 74 27 2e 20 | 20 20 49 6e 20 20 58 4c |bject'. | In XL|
|00004110| 49 53 50 2c 20 20 61 6e | 0a 20 20 20 20 20 20 6f |ISP, an|. o|
|00004120| 62 6a 65 63 74 20 20 63 | 6f 6e 73 69 73 74 73 20 |bject c|onsists |
|00004130| 6f 66 20 61 20 64 61 74 | 61 20 73 74 72 75 63 74 |of a dat|a struct|
|00004140| 75 72 65 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 61 |ure cont|aining a|
|00004150| 20 70 6f 69 6e 74 65 72 | 20 74 6f 0a 20 20 20 20 | pointer| to. |
|00004160| 20 20 74 68 65 20 6f 62 | 6a 65 63 74 27 73 20 63 | the ob|ject's c|
|00004170| 6c 61 73 73 20 61 73 20 | 77 65 6c 6c 20 61 73 20 |lass as |well as |
|00004180| 61 20 6c 69 73 74 20 63 | 6f 6e 74 61 69 6e 69 6e |a list c|ontainin|
|00004190| 67 20 20 74 68 65 20 20 | 76 61 6c 75 65 73 0a 20 |g the |values. |
|000041a0| 20 20 20 20 20 6f 66 20 | 74 68 65 20 6f 62 6a 65 | of |the obje|
|000041b0| 63 74 27 73 20 69 6e 73 | 74 61 6e 63 65 20 76 61 |ct's ins|tance va|
|000041c0| 72 69 61 62 6c 65 73 2e | 0a 0a 20 20 20 20 20 20 |riables.|.. |
|000041d0| 4f 66 66 69 63 69 61 6c | 6c 79 2c 20 74 68 65 72 |Official|ly, ther|
|000041e0| 65 20 69 73 20 6e 6f 20 | 77 61 79 20 74 6f 20 73 |e is no |way to s|
|000041f0| 65 65 20 69 6e 73 69 64 | 65 20 61 6e 20 6f 62 6a |ee insid|e an obj|
|00004200| 65 63 74 20 28 6c 6f 6f | 6b 20 61 74 0a 20 20 20 |ect (loo|k at. |
|00004210| 20 20 20 74 68 65 20 20 | 76 61 6c 75 65 73 20 20 | the |values |
|00004220| 6f 66 20 20 69 74 73 20 | 20 69 6e 73 74 61 6e 63 |of its | instanc|
|00004230| 65 20 20 76 61 72 69 61 | 62 6c 65 73 29 2e 20 20 |e varia|bles). |
|00004240| 54 68 65 20 6f 6e 6c 79 | 20 77 61 79 20 74 6f 0a |The only| way to.|
|00004250| 20 20 20 20 20 20 63 6f | 6d 6d 75 6e 69 63 61 74 | co|mmunicat|
|00004260| 65 20 77 69 74 68 20 61 | 6e 20 6f 62 6a 65 63 74 |e with a|n object|
|00004270| 20 69 73 20 62 79 20 73 | 65 6e 64 69 6e 67 20 69 | is by s|ending i|
|00004280| 74 20 61 20 6d 65 73 73 | 61 67 65 2e 20 20 57 68 |t a mess|age. Wh|
|00004290| 65 6e 0a 20 20 20 20 20 | 20 74 68 65 20 20 58 4c |en. | the XL|
|000042a0| 49 53 50 20 20 65 76 61 | 6c 75 61 74 6f 72 20 20 |ISP eva|luator |
|000042b0| 65 76 61 6c 75 61 74 65 | 73 20 20 61 20 20 6c 69 |evaluate|s a li|
|000042c0| 73 74 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |st the v|alue of |
|000042d0| 77 68 6f 73 65 0a 20 20 | 20 20 20 20 66 69 72 73 |whose. | firs|
|000042e0| 74 20 65 6c 65 6d 65 6e | 74 20 69 73 20 61 6e 20 |t elemen|t is an |
|000042f0| 6f 62 6a 65 63 74 2c 20 | 69 74 20 69 6e 74 65 72 |object, |it inter|
|00004300| 70 72 65 74 73 20 74 68 | 65 20 76 61 6c 75 65 20 |prets th|e value |
|00004310| 20 6f 66 20 20 74 68 65 | 0a 20 20 20 20 20 20 73 | of the|. s|
|00004320| 65 63 6f 6e 64 20 20 65 | 6c 65 6d 65 6e 74 20 20 |econd e|lement |
|00004330| 6f 66 20 74 68 65 20 6c | 69 73 74 20 28 77 68 69 |of the l|ist (whi|
|00004340| 63 68 20 6d 75 73 74 20 | 62 65 20 61 20 73 79 6d |ch must |be a sym|
|00004350| 62 6f 6c 29 20 61 73 20 | 74 68 65 0a 20 20 20 20 |bol) as |the. |
|00004360| 20 20 6d 65 73 73 61 67 | 65 20 73 65 6c 65 63 74 | messag|e select|
|00004370| 6f 72 2e 20 20 54 68 65 | 20 65 76 61 6c 75 61 74 |or. The| evaluat|
|00004380| 6f 72 20 64 65 74 65 72 | 6d 69 6e 65 73 20 74 68 |or deter|mines th|
|00004390| 65 20 63 6c 61 73 73 20 | 6f 66 20 74 68 65 0a 20 |e class |of the. |
|000043a0| 20 20 20 20 20 72 65 63 | 65 69 76 69 6e 67 20 6f | rec|eiving o|
|000043b0| 62 6a 65 63 74 20 61 6e | 64 20 61 74 74 65 6d 70 |bject an|d attemp|
|000043c0| 74 73 20 74 6f 20 66 69 | 6e 64 20 61 20 6d 65 74 |ts to fi|nd a met|
|000043d0| 68 6f 64 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |hod corr|espondin|
|000043e0| 67 0a 20 20 20 20 20 20 | 74 6f 20 74 68 65 20 6d |g. |to the m|
|000043f0| 65 73 73 61 67 65 20 73 | 65 6c 65 63 74 6f 72 20 |essage s|elector |
|00004400| 69 6e 20 74 68 65 20 73 | 65 74 20 6f 66 20 6d 65 |in the s|et of me|
|00004410| 73 73 61 67 65 73 20 20 | 64 65 66 69 6e 65 64 20 |ssages |defined |
|00004420| 20 66 6f 72 0a 20 20 20 | 20 20 20 74 68 61 74 20 | for. | that |
|00004430| 20 63 6c 61 73 73 2e 20 | 20 20 49 66 20 20 74 68 | class. | If th|
|00004440| 65 20 20 6d 65 73 73 61 | 67 65 20 69 73 20 6e 6f |e messa|ge is no|
|00004450| 74 20 66 6f 75 6e 64 20 | 69 6e 20 74 68 65 20 6f |t found |in the o|
|00004460| 62 6a 65 63 74 27 73 0a | 20 20 20 20 20 20 63 6c |bject's.| cl|
|00004470| 61 73 73 20 61 6e 64 20 | 74 68 65 20 63 6c 61 73 |ass and |the clas|
|00004480| 73 20 68 61 73 20 61 20 | 73 75 70 65 72 2d 63 6c |s has a |super-cl|
|00004490| 61 73 73 2c 20 74 68 65 | 20 73 65 61 72 63 68 20 |ass, the| search |
|000044a0| 20 63 6f 6e 74 69 6e 75 | 65 73 0a 20 20 20 20 20 | continu|es. |
|000044b0| 20 62 79 20 20 6c 6f 6f | 6b 69 6e 67 20 20 61 74 | by loo|king at|
|000044c0| 20 20 74 68 65 20 20 6d | 65 73 73 61 67 65 73 20 | the m|essages |
|000044d0| 20 64 65 66 69 6e 65 64 | 20 66 6f 72 20 74 68 65 | defined| for the|
|000044e0| 20 73 75 70 65 72 2d 63 | 6c 61 73 73 2e 0a 20 20 | super-c|lass.. |
|000044f0| 20 20 20 20 54 68 69 73 | 20 70 72 6f 63 65 73 73 | This| process|
|00004500| 20 63 6f 6e 74 69 6e 75 | 65 73 20 66 72 6f 6d 20 | continu|es from |
|00004510| 20 6f 6e 65 20 20 73 75 | 70 65 72 2d 63 6c 61 73 | one su|per-clas|
|00004520| 73 20 20 74 6f 20 20 74 | 68 65 20 20 6e 65 78 74 |s to t|he next|
|00004530| 0a 20 20 20 20 20 20 75 | 6e 74 69 6c 20 20 61 20 |. u|ntil a |
|00004540| 20 6d 65 74 68 6f 64 20 | 20 66 6f 72 20 74 68 65 | method | for the|
|00004550| 20 6d 65 73 73 61 67 65 | 20 69 73 20 66 6f 75 6e | message| is foun|
|00004560| 64 2e 20 20 49 66 20 6e | 6f 20 6d 65 74 68 6f 64 |d. If n|o method|
|00004570| 20 69 73 0a 20 20 20 20 | 20 20 66 6f 75 6e 64 2c | is. | found,|
|00004580| 20 61 6e 20 65 72 72 6f | 72 20 6f 63 63 75 72 73 | an erro|r occurs|
|00004590| 2e 0a 0a 20 20 20 20 20 | 20 57 68 65 6e 20 61 20 |... | When a |
|000045a0| 6d 65 74 68 6f 64 20 69 | 73 20 66 6f 75 6e 64 2c |method i|s found,|
|000045b0| 20 74 68 65 20 65 76 61 | 6c 75 61 74 6f 72 20 20 | the eva|luator |
|000045c0| 62 69 6e 64 73 20 20 74 | 68 65 20 20 72 65 63 65 |binds t|he rece|
|000045d0| 69 76 69 6e 67 0a 20 20 | 20 20 20 20 6f 62 6a 65 |iving. | obje|
|000045e0| 63 74 20 20 74 6f 20 20 | 74 68 65 20 20 73 79 6d |ct to |the sym|
|000045f0| 62 6f 6c 20 27 73 65 6c | 66 27 2c 20 62 69 6e 64 |bol 'sel|f', bind|
|00004600| 73 20 74 68 65 20 63 6c | 61 73 73 20 69 6e 20 77 |s the cl|ass in w|
|00004610| 68 69 63 68 20 74 68 65 | 0a 20 20 20 20 20 20 6d |hich the|. m|
|00004620| 65 74 68 6f 64 20 77 61 | 73 20 66 6f 75 6e 64 20 |ethod wa|s found |
|00004630| 74 6f 20 74 68 65 20 73 | 79 6d 62 6f 6c 20 27 6d |to the s|ymbol 'm|
|00004640| 73 67 63 6c 61 73 73 27 | 2c 20 61 6e 64 20 65 76 |sgclass'|, and ev|
|00004650| 61 6c 75 61 74 65 73 20 | 74 68 65 0a 20 20 20 20 |aluates |the. |
|00004660| 20 20 6d 65 74 68 6f 64 | 20 20 75 73 69 6e 67 20 | method| using |
|00004670| 74 68 65 20 72 65 6d 61 | 69 6e 69 6e 67 20 65 6c |the rema|ining el|
|00004680| 65 6d 65 6e 74 73 20 6f | 66 20 74 68 65 20 6f 72 |ements o|f the or|
|00004690| 69 67 69 6e 61 6c 20 6c | 69 73 74 20 61 73 0a 20 |iginal l|ist as. |
|000046a0| 20 20 20 20 20 61 72 67 | 75 6d 65 6e 74 73 20 20 | arg|uments |
|000046b0| 74 6f 20 20 74 68 65 20 | 20 6d 65 74 68 6f 64 2e |to the | method.|
|000046c0| 20 20 20 54 68 65 73 65 | 20 20 61 72 67 75 6d 65 | These| argume|
|000046d0| 6e 74 73 20 20 61 72 65 | 20 20 20 61 6c 77 61 79 |nts are| alway|
|000046e0| 73 0a 20 20 20 20 20 20 | 65 76 61 6c 75 61 74 65 |s. |evaluate|
|000046f0| 64 20 70 72 69 6f 72 20 | 74 6f 20 62 65 69 6e 67 |d prior |to being|
|00004700| 20 62 6f 75 6e 64 20 74 | 6f 20 74 68 65 69 72 20 | bound t|o their |
|00004710| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 66 6f |correspo|nding fo|
|00004720| 72 6d 61 6c 0a 20 20 20 | 20 20 20 61 72 67 75 6d |rmal. | argum|
|00004730| 65 6e 74 73 2e 20 20 54 | 68 65 20 72 65 73 75 6c |ents. T|he resul|
|00004740| 74 20 6f 66 20 65 76 61 | 6c 75 61 74 69 6e 67 20 |t of eva|luating |
|00004750| 74 68 65 20 6d 65 74 68 | 6f 64 20 62 65 63 6f 6d |the meth|od becom|
|00004760| 65 73 20 20 74 68 65 0a | 20 20 20 20 20 20 72 65 |es the.| re|
|00004770| 73 75 6c 74 20 6f 66 20 | 74 68 65 20 65 78 70 72 |sult of |the expr|
|00004780| 65 73 73 69 6f 6e 2e 0a | 0c 0a 0a 0a 20 20 20 20 |ession..|.... |
|00004790| 20 20 58 4c 49 53 50 3a | 20 41 6e 20 45 78 70 65 | XLISP:| An Expe|
|000047a0| 72 69 6d 65 6e 74 61 6c | 20 4f 62 6a 65 63 74 20 |rimental| Object |
|000047b0| 4f 72 69 65 6e 74 65 64 | 20 4c 61 6e 67 75 61 67 |Oriented| Languag|
|000047c0| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|000047d0| 20 50 61 67 65 20 31 31 | 0a 20 20 20 20 20 20 4f | Page 11|. O|
|000047e0| 42 4a 45 43 54 53 0a 0a | 0a 20 20 20 20 20 20 43 |BJECTS..|. C|
|000047f0| 6c 61 73 73 65 73 3a 0a | 0a 20 20 20 20 20 20 4f |lasses:.|. O|
|00004800| 62 6a 65 63 74 20 20 54 | 48 45 20 54 4f 50 20 4f |bject T|HE TOP O|
|00004810| 46 20 54 48 45 20 43 4c | 41 53 53 20 48 45 49 52 |F THE CL|ASS HEIR|
|00004820| 41 52 43 48 59 0a 0a 20 | 20 20 20 20 20 20 20 20 |ARCHY.. | |
|00004830| 20 4d 65 73 73 61 67 65 | 73 3a 0a 0a 20 20 20 20 | Message|s:.. |
|00004840| 20 20 20 20 20 20 20 20 | 20 20 73 68 6f 77 20 20 | | show |
|00004850| 20 20 53 48 4f 57 20 41 | 4e 20 4f 42 4a 45 43 54 | SHOW A|N OBJECT|
|00004860| 27 53 20 49 4e 53 54 41 | 4e 43 45 20 56 41 52 49 |'S INSTA|NCE VARI|
|00004870| 41 42 4c 45 53 0a 20 20 | 20 20 20 20 20 20 20 20 |ABLES. | |
|00004880| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 73 20 | |returns |
|00004890| 20 20 20 20 74 68 65 20 | 6f 62 6a 65 63 74 0a 0a | the |object..|
|000048a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6c | | cl|
|000048b0| 61 73 73 20 20 20 52 45 | 54 55 52 4e 20 54 48 45 |ass RE|TURN THE|
|000048c0| 20 43 4c 41 53 53 20 4f | 46 20 41 4e 20 4f 42 4a | CLASS O|F AN OBJ|
|000048d0| 45 43 54 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ECT. | |
|000048e0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 73 20 20 20 | re|turns |
|000048f0| 20 20 74 68 65 20 63 6c | 61 73 73 20 6f 66 20 74 | the cl|ass of t|
|00004900| 68 65 20 6f 62 6a 65 63 | 74 0a 0a 20 20 20 20 20 |he objec|t.. |
|00004910| 20 20 20 20 20 20 20 20 | 20 69 73 6e 65 77 20 20 | | isnew |
|00004920| 20 54 48 45 20 44 45 46 | 41 55 4c 54 20 4f 42 4a | THE DEF|AULT OBJ|
|00004930| 45 43 54 20 49 4e 49 54 | 49 41 4c 49 5a 41 54 49 |ECT INIT|IALIZATI|
|00004940| 4f 4e 20 52 4f 55 54 49 | 4e 45 0a 20 20 20 20 20 |ON ROUTI|NE. |
|00004950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 74 | | ret|
|00004960| 75 72 6e 73 20 20 20 20 | 20 74 68 65 20 6f 62 6a |urns | the obj|
|00004970| 65 63 74 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ect.. | |
|00004980| 20 20 20 73 65 6e 64 73 | 75 70 65 72 20 3c 73 65 | sends|uper <se|
|00004990| 6c 3e 20 5b 3c 61 72 67 | 73 3e 2e 2e 2e 5d 20 53 |l> [<arg|s>...] S|
|000049a0| 45 4e 44 20 53 55 50 45 | 52 43 4c 41 53 53 20 41 |END SUPE|RCLASS A|
|000049b0| 20 4d 45 53 53 41 47 45 | 0a 20 20 20 20 20 20 20 | MESSAGE|. |
|000049c0| 20 20 20 20 20 20 20 20 | 20 20 20 3c 73 65 6c 3e | | <sel>|
|000049d0| 20 20 20 20 20 20 20 74 | 68 65 20 6d 65 73 73 61 | t|he messa|
|000049e0| 67 65 20 73 65 6c 65 63 | 74 6f 72 0a 20 20 20 20 |ge selec|tor. |
|000049f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3c 61 | | <a|
|00004a00| 72 67 73 3e 20 20 20 20 | 20 20 74 68 65 20 6d 65 |rgs> | the me|
|00004a10| 73 73 61 67 65 20 61 72 | 67 75 6d 65 6e 74 73 0a |ssage ar|guments.|
|00004a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a30| 20 20 72 65 74 75 72 6e | 73 20 20 20 20 20 74 68 | return|s th|
|00004a40| 65 20 72 65 73 75 6c 74 | 20 6f 66 20 73 65 6e 64 |e result| of send|
|00004a50| 69 6e 67 20 74 68 65 20 | 6d 65 73 73 61 67 65 0a |ing the |message.|
|00004a60| 0c 0a 0a 0a 20 20 20 20 | 20 20 58 4c 49 53 50 3a |.... | XLISP:|
|00004a70| 20 41 6e 20 45 78 70 65 | 72 69 6d 65 6e 74 61 6c | An Expe|rimental|
|00004a80| 20 4f 62 6a 65 63 74 20 | 4f 72 69 65 6e 74 65 64 | Object |Oriented|
|00004a90| 20 4c 61 6e 67 75 61 67 | 65 20 20 20 20 20 20 20 | Languag|e |
|00004aa0| 20 20 20 20 20 20 20 20 | 20 50 61 67 65 20 31 32 | | Page 12|
|00004ab0| 0a 20 20 20 20 20 20 4f | 42 4a 45 43 54 53 0a 0a |. O|BJECTS..|
|00004ac0| 0a 20 20 20 20 20 20 43 | 6c 61 73 73 20 20 20 54 |. C|lass T|
|00004ad0| 48 45 20 43 4c 41 53 53 | 20 4f 46 20 41 4c 4c 20 |HE CLASS| OF ALL |
|00004ae0| 4f 42 4a 45 43 54 20 43 | 4c 41 53 53 45 53 20 28 |OBJECT C|LASSES (|
|00004af0| 69 6e 63 6c 75 64 69 6e | 67 20 69 74 73 65 6c 66 |includin|g itself|
|00004b00| 29 0a 0a 20 20 20 20 20 | 20 20 20 20 20 4d 65 73 |).. | Mes|
|00004b10| 73 61 67 65 73 3a 0a 0a | 20 20 20 20 20 20 20 20 |sages:..| |
|00004b20| 20 20 20 20 20 20 6e 65 | 77 20 20 20 20 20 43 52 | ne|w CR|
|00004b30| 45 41 54 45 20 41 20 4e | 45 57 20 49 4e 53 54 41 |EATE A N|EW INSTA|
|00004b40| 4e 43 45 20 4f 46 20 41 | 20 43 4c 41 53 53 0a 20 |NCE OF A| CLASS. |
|00004b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b60| 20 72 65 74 75 72 6e 73 | 20 20 20 20 20 74 68 65 | returns| the|
|00004b70| 20 6e 65 77 20 63 6c 61 | 73 73 20 6f 62 6a 65 63 | new cla|ss objec|
|00004b80| 74 0a 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t.. | |
|00004b90| 20 69 73 6e 65 77 20 5b | 3c 73 63 6c 73 3e 5d 20 | isnew [|<scls>] |
|00004ba0| 20 49 4e 49 54 49 41 4c | 49 5a 45 20 41 20 4e 45 | INITIAL|IZE A NE|
|00004bb0| 57 20 43 4c 41 53 53 0a | 20 20 20 20 20 20 20 20 |W CLASS.| |
|00004bc0| 20 20 20 20 20 20 20 20 | 20 20 3c 73 63 6c 73 3e | | <scls>|
|00004bd0| 20 20 20 20 20 20 74 68 | 65 20 73 75 70 65 72 63 | th|e superc|
|00004be0| 6c 61 73 73 0a 20 20 20 | 20 20 20 20 20 20 20 20 |lass. | |
|00004bf0| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 73 20 20 | r|eturns |
|00004c00| 20 20 20 74 68 65 20 6e | 65 77 20 63 6c 61 73 73 | the n|ew class|
|00004c10| 20 6f 62 6a 65 63 74 0a | 0a 20 20 20 20 20 20 20 | object.|. |
|00004c20| 20 20 20 20 20 20 20 61 | 6e 73 77 65 72 20 3c 6d | a|nswer <m|
|00004c30| 73 67 3e 20 3c 66 61 72 | 67 73 3e 20 3c 63 6f 64 |sg> <far|gs> <cod|
|00004c40| 65 3e 20 20 20 20 20 41 | 44 44 20 41 20 4d 45 53 |e> A|DD A MES|
|00004c50| 53 41 47 45 20 54 4f 20 | 41 20 43 4c 41 53 53 0a |SAGE TO |A CLASS.|
|00004c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c70| 20 20 3c 6d 73 67 3e 20 | 20 20 20 20 20 20 74 68 | <msg> | th|
|00004c80| 65 20 6d 65 73 73 61 67 | 65 20 73 79 6d 62 6f 6c |e messag|e symbol|
|00004c90| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004ca0| 20 20 20 3c 66 61 72 67 | 73 3e 20 20 20 20 20 74 | <farg|s> t|
|00004cb0| 68 65 20 66 6f 72 6d 61 | 6c 20 61 72 67 75 6d 65 |he forma|l argume|
|00004cc0| 6e 74 20 6c 69 73 74 0a | 20 20 20 20 20 20 20 20 |nt list.| |
|00004cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ce0| 20 20 20 20 20 20 20 20 | 74 68 69 73 20 6c 69 73 | |this lis|
|00004cf0| 74 20 69 73 20 6f 66 20 | 74 68 65 20 66 6f 72 6d |t is of |the form|
|00004d00| 3a 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:. | |
|00004d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d20| 20 20 20 20 28 3c 66 61 | 72 67 3e 2e 2e 2e 0a 20 | (<fa|rg>.... |
|00004d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d50| 20 20 5b 26 6f 70 74 69 | 6f 6e 61 6c 20 3c 6f 61 | [&opti|onal <oa|
|00004d60| 72 67 3e 2e 2e 2e 5d 0a | 20 20 20 20 20 20 20 20 |rg>...].| |
|00004d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d80| 20 20 20 20 20 20 20 20 | 20 20 20 5b 26 72 65 73 | | [&res|
|00004d90| 74 20 3c 72 61 72 67 3e | 5d 0a 20 20 20 20 20 20 |t <rarg>|]. |
|00004da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5b 26 61 | | [&a|
|00004dc0| 75 78 20 3c 61 75 78 3e | 2e 2e 2e 5d 29 0a 20 20 |ux <aux>|...]). |
|00004dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 77 68 | | wh|
|00004df0| 65 72 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ere. | |
|00004e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e10| 20 20 20 20 20 20 3c 66 | 61 72 67 3e 20 20 20 61 | <f|arg> a|
|00004e20| 20 66 6f 72 6d 61 6c 20 | 61 72 67 75 6d 65 6e 74 | formal |argument|
|00004e30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e50| 20 20 20 3c 6f 61 72 67 | 3e 20 20 20 61 6e 20 6f | <oarg|> an o|
|00004e60| 70 74 69 6f 6e 61 6c 20 | 61 72 67 75 6d 65 6e 74 |ptional |argument|
|00004e70| 20 28 64 65 66 61 75 6c | 74 20 69 73 20 6e 69 6c | (defaul|t is nil|
|00004e80| 29 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |). | |
|00004e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ea0| 20 20 20 20 3c 72 61 72 | 67 3e 20 20 20 62 6f 75 | <rar|g> bou|
|00004eb0| 6e 64 20 74 6f 20 74 68 | 65 20 72 65 73 74 20 6f |nd to th|e rest o|
|00004ec0| 66 20 74 68 65 20 61 72 | 67 75 6d 65 6e 74 73 0a |f the ar|guments.|
|00004ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ef0| 20 20 3c 61 75 78 3e 20 | 20 20 20 61 20 61 75 78 | <aux> | a aux|
|00004f00| 69 6c 69 61 72 79 20 76 | 61 72 69 61 62 6c 65 20 |iliary v|ariable |
|00004f10| 28 73 65 74 20 74 6f 20 | 6e 69 6c 29 0a 20 20 20 |(set to |nil). |
|00004f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3c | | <|
|00004f30| 63 6f 64 65 3e 20 20 20 | 20 20 20 61 20 6c 69 73 |code> | a lis|
|00004f40| 74 20 6f 66 20 65 78 65 | 63 75 74 61 62 6c 65 20 |t of exe|cutable |
|00004f50| 65 78 70 72 65 73 73 69 | 6f 6e 73 0a 20 20 20 20 |expressi|ons. |
|00004f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 | | re|
|00004f70| 74 75 72 6e 73 20 20 20 | 20 20 74 68 65 20 6f 62 |turns | the ob|
|00004f80| 6a 65 63 74 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |ject.. | |
|00004f90| 20 20 20 20 69 76 61 72 | 73 20 3c 76 61 72 73 3e | ivar|s <vars>|
|00004fa0| 20 20 20 20 44 45 46 49 | 4e 45 20 54 48 45 20 4c | DEFI|NE THE L|
|00004fb0| 49 53 54 20 4f 46 20 49 | 4e 53 54 41 4e 43 45 20 |IST OF I|NSTANCE |
|00004fc0| 56 41 52 49 41 42 4c 45 | 53 0a 20 20 20 20 20 20 |VARIABLE|S. |
|00004fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3c 76 61 72 | | <var|
|00004fe0| 73 3e 20 20 20 20 20 20 | 74 68 65 20 6c 69 73 74 |s> |the list|
|00004ff0| 20 6f 66 20 69 6e 73 74 | 61 6e 63 65 20 76 61 72 | of inst|ance var|
|00005000| 69 61 62 6c 65 20 73 79 | 6d 62 6f 6c 73 0a 20 20 |iable sy|mbols. |
|00005010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005020| 72 65 74 75 72 6e 73 20 | 20 20 20 20 74 68 65 20 |returns | the |
|00005030| 6f 62 6a 65 63 74 0a 0a | 20 20 20 20 20 20 20 20 |object..| |
|00005040| 20 20 20 20 20 20 63 76 | 61 72 73 20 3c 76 61 72 | cv|ars <var|
|00005050| 73 3e 20 20 20 20 44 45 | 46 49 4e 45 20 54 48 45 |s> DE|FINE THE|
|00005060| 20 4c 49 53 54 20 4f 46 | 20 43 4c 41 53 53 20 56 | LIST OF| CLASS V|
|00005070| 41 52 49 41 42 4c 45 53 | 0a 20 20 20 20 20 20 20 |ARIABLES|. |
|00005080| 20 20 20 20 20 20 20 20 | 20 20 20 3c 76 61 72 73 | | <vars|
|00005090| 3e 20 20 20 20 20 20 74 | 68 65 20 6c 69 73 74 20 |> t|he list |
|000050a0| 6f 66 20 63 6c 61 73 73 | 20 76 61 72 69 61 62 6c |of class| variabl|
|000050b0| 65 20 73 79 6d 62 6f 6c | 73 0a 20 20 20 20 20 20 |e symbol|s. |
|000050c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu|
|000050d0| 72 6e 73 20 20 20 20 20 | 74 68 65 20 6f 62 6a 65 |rns |the obje|
|000050e0| 63 74 0a 0a 0a 20 20 20 | 20 20 20 57 68 65 6e 20 |ct... | When |
|000050f0| 61 20 6e 65 77 20 69 6e | 73 74 61 6e 63 65 20 6f |a new in|stance o|
|00005100| 66 20 61 20 63 6c 61 73 | 73 20 69 73 20 20 63 72 |f a clas|s is cr|
|00005110| 65 61 74 65 64 20 20 62 | 79 20 20 73 65 6e 64 69 |eated b|y sendi|
|00005120| 6e 67 20 20 74 68 65 0a | 20 20 20 20 20 20 6d 65 |ng the.| me|
|00005130| 73 73 61 67 65 20 20 27 | 6e 65 77 27 20 20 74 6f |ssage '|new' to|
|00005140| 20 20 61 6e 20 20 65 78 | 69 73 74 69 6e 67 20 20 | an ex|isting |
|00005150| 63 6c 61 73 73 2c 20 74 | 68 65 20 6d 65 73 73 61 |class, t|he messa|
|00005160| 67 65 20 27 69 73 6e 65 | 77 27 0a 20 20 20 20 20 |ge 'isne|w'. |
|00005170| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 77 68 61 | followe|d by wha|
|00005180| 74 65 76 65 72 20 70 61 | 72 61 6d 65 74 65 72 73 |tever pa|rameters|
|00005190| 20 77 65 72 65 20 20 70 | 61 73 73 65 64 20 20 74 | were p|assed t|
|000051a0| 6f 20 20 74 68 65 20 20 | 27 6e 65 77 27 0a 20 20 |o the |'new'. |
|000051b0| 20 20 20 20 6d 65 73 73 | 61 67 65 20 69 73 20 73 | mess|age is s|
|000051c0| 65 6e 74 20 74 6f 20 74 | 68 65 20 6e 65 77 6c 79 |ent to t|he newly|
|000051d0| 20 63 72 65 61 74 65 64 | 20 6f 62 6a 65 63 74 2e | created| object.|
|000051e0| 0a 0a 20 20 20 20 20 20 | 57 68 65 6e 20 61 20 6e |.. |When a n|
|000051f0| 65 77 20 63 6c 61 73 73 | 20 69 73 20 63 72 65 61 |ew class| is crea|
|00005200| 74 65 64 20 62 79 20 73 | 65 6e 64 69 6e 67 20 74 |ted by s|ending t|
|00005210| 68 65 20 27 6e 65 77 27 | 20 6d 65 73 73 61 67 65 |he 'new'| message|
|00005220| 20 20 74 6f 0a 20 20 20 | 20 20 20 74 68 65 20 20 | to. | the |
|00005230| 6f 62 6a 65 63 74 20 20 | 27 43 6c 61 73 73 27 2c |object |'Class',|
|00005240| 20 61 6e 20 6f 70 74 69 | 6f 6e 61 6c 20 70 61 72 | an opti|onal par|
|00005250| 61 6d 65 74 65 72 20 6d | 61 79 20 62 65 20 73 70 |ameter m|ay be sp|
|00005260| 65 63 69 66 69 65 64 0a | 20 20 20 20 20 20 69 6e |ecified.| in|
|00005270| 64 69 63 61 74 69 6e 67 | 20 20 74 68 65 20 20 73 |dicating| the s|
|00005280| 75 70 65 72 63 6c 61 73 | 73 20 20 6f 66 20 20 74 |uperclas|s of t|
|00005290| 68 65 20 20 6e 65 77 20 | 20 63 6c 61 73 73 2e 20 |he new | class. |
|000052a0| 20 20 49 66 20 20 74 68 | 69 73 0a 20 20 20 20 20 | If th|is. |
|000052b0| 20 70 61 72 61 6d 65 74 | 65 72 20 20 69 73 20 20 | paramet|er is |
|000052c0| 6f 6d 69 74 74 65 64 2c | 20 20 74 68 65 20 6e 65 |omitted,| the ne|
|000052d0| 77 20 63 6c 61 73 73 20 | 77 69 6c 6c 20 62 65 20 |w class |will be |
|000052e0| 61 20 73 75 62 63 6c 61 | 73 73 20 6f 66 0a 20 20 |a subcla|ss of. |
|000052f0| 20 20 20 20 27 4f 62 6a | 65 63 74 27 2e 20 20 41 | 'Obj|ect'. A|
|00005300| 20 63 6c 61 73 73 20 69 | 6e 68 65 72 69 74 73 20 | class i|nherits |
|00005310| 61 6c 6c 20 20 69 6e 73 | 74 61 6e 63 65 20 20 76 |all ins|tance v|
|00005320| 61 72 69 61 62 6c 65 73 | 2c 20 20 63 6c 61 73 73 |ariables|, class|
|00005330| 0a 20 20 20 20 20 20 76 | 61 72 69 61 62 6c 65 73 |. v|ariables|
|00005340| 2c 20 61 6e 64 20 6d 65 | 74 68 6f 64 73 20 66 72 |, and me|thods fr|
|00005350| 6f 6d 20 69 74 73 20 73 | 75 70 65 72 2d 63 6c 61 |om its s|uper-cla|
|00005360| 73 73 2e 0a 0c 0a 0a 0a | 20 20 20 20 20 20 58 4c |ss......| XL|
|00005370| 49 53 50 3a 20 41 6e 20 | 45 78 70 65 72 69 6d 65 |ISP: An |Experime|
|00005380| 6e 74 61 6c 20 4f 62 6a | 65 63 74 20 4f 72 69 65 |ntal Obj|ect Orie|
|00005390| 6e 74 65 64 20 4c 61 6e | 67 75 61 67 65 20 20 20 |nted Lan|guage |
|000053a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 61 67 | | Pag|
|000053b0| 65 20 31 33 0a 20 20 20 | 20 20 20 53 59 4d 42 4f |e 13. | SYMBO|
|000053c0| 4c 53 0a 0a 0a 20 20 20 | 20 20 20 39 2e 30 20 20 |LS... | 9.0 |
|000053d0| 53 59 4d 42 4f 4c 53 0a | 0a 0a 20 20 20 20 20 20 |SYMBOLS.|.. |
|000053e0| 20 20 20 20 20 20 6f 20 | 20 73 65 6c 66 20 20 2d | o | self -|
|000053f0| 20 20 74 68 65 20 20 63 | 75 72 72 65 6e 74 20 20 | the c|urrent |
|00005400| 6f 62 6a 65 63 74 20 20 | 28 77 69 74 68 69 6e 20 |object |(within |
|00005410| 20 61 20 20 20 6d 65 73 | 73 61 67 65 0a 20 20 20 | a mes|sage. |
|00005420| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 6f 6e 74 | | cont|
|00005430| 65 78 74 29 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |ext).. | |
|00005440| 20 20 6f 20 20 6d 73 67 | 63 6c 61 73 73 20 2d 20 | o msg|class - |
|00005450| 74 68 65 20 63 6c 61 73 | 73 20 69 6e 20 77 68 69 |the clas|s in whi|
|00005460| 63 68 20 20 74 68 65 20 | 20 63 75 72 72 65 6e 74 |ch the | current|
|00005470| 20 20 6d 65 74 68 6f 64 | 0a 20 20 20 20 20 20 20 | method|. |
|00005480| 20 20 20 20 20 20 20 20 | 77 61 73 20 66 6f 75 6e | |was foun|
|00005490| 64 0a 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 6f |d.. | o|
|000054a0| 20 20 2a 6f 62 6c 69 73 | 74 2a 20 2d 20 74 68 65 | *oblis|t* - the|
|000054b0| 20 6f 62 6a 65 63 74 20 | 6c 69 73 74 0a 0a 20 20 | object |list.. |
|000054c0| 20 20 20 20 20 20 20 20 | 20 20 6f 20 20 2a 6b 65 | | o *ke|
|000054d0| 79 6c 69 73 74 2a 20 2d | 20 74 68 65 20 6b 65 79 |ylist* -| the key|
|000054e0| 77 6f 72 64 20 6c 69 73 | 74 0a 0a 20 20 20 20 20 |word lis|t.. |
|000054f0| 20 20 20 20 20 20 20 6f | 20 20 2a 73 74 61 6e 64 | o| *stand|
|00005500| 61 72 64 2d 69 6e 70 75 | 74 2a 20 2d 20 74 68 65 |ard-inpu|t* - the|
|00005510| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|00005520| 66 69 6c 65 0a 0a 20 20 | 20 20 20 20 20 20 20 20 |file.. | |
|00005530| 20 20 6f 20 20 2a 73 74 | 61 6e 64 61 72 64 2d 6f | o *st|andard-o|
|00005540| 75 74 70 75 74 2a 20 2d | 20 74 68 65 20 73 74 61 |utput* -| the sta|
|00005550| 6e 64 61 72 64 20 6f 75 | 74 70 75 74 20 66 69 6c |ndard ou|tput fil|
|00005560| 65 0a 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 6f |e.. | o|
|00005570| 20 20 2a 62 72 65 61 6b | 65 6e 61 62 6c 65 2a 20 | *break|enable* |
|00005580| 2d 20 66 6c 61 67 20 63 | 6f 6e 74 72 6f 6c 6c 69 |- flag c|ontrolli|
|00005590| 6e 67 20 65 6e 74 65 72 | 69 6e 67 20 74 68 65 20 |ng enter|ing the |
|000055a0| 62 72 65 61 6b 0a 20 20 | 20 20 20 20 20 20 20 20 |break. | |
|000055b0| 20 20 20 20 20 6c 6f 6f | 70 20 6f 6e 20 65 72 72 | loo|p on err|
|000055c0| 6f 72 73 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ors.. | |
|000055d0| 20 6f 20 20 2a 74 72 61 | 63 65 6e 61 62 6c 65 2a | o *tra|cenable*|
|000055e0| 20 2d 20 66 6c 61 67 20 | 63 6f 6e 74 72 6f 6c 6c | - flag |controll|
|000055f0| 69 6e 67 20 74 72 61 63 | 65 20 62 61 63 6b 20 70 |ing trac|e back p|
|00005600| 72 69 6e 74 6f 75 74 0a | 20 20 20 20 20 20 20 20 |rintout.| |
|00005610| 20 20 20 20 20 20 20 6f | 6e 20 65 72 72 6f 72 73 | o|n errors|
|00005620| 20 61 6e 64 20 62 72 65 | 61 6b 73 0a 0a 20 20 20 | and bre|aks.. |
|00005630| 20 20 20 20 20 20 20 20 | 20 6f 20 20 2a 74 72 61 | | o *tra|
|00005640| 63 65 6c 69 6d 69 74 2a | 20 2d 20 6d 61 78 69 6d |celimit*| - maxim|
|00005650| 75 6d 20 6e 75 6d 62 65 | 72 20 6f 66 20 20 6c 65 |um numbe|r of le|
|00005660| 76 65 6c 73 20 20 6f 66 | 20 20 74 72 61 63 65 0a |vels of| trace.|
|00005670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00005680| 61 63 6b 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ack info|rmation |
|00005690| 70 72 69 6e 74 65 64 20 | 6f 6e 20 65 72 72 6f 72 |printed |on error|
|000056a0| 73 20 61 6e 64 20 62 72 | 65 61 6b 73 0a 0a 20 20 |s and br|eaks.. |
|000056b0| 20 20 20 20 20 20 20 20 | 20 20 6f 20 20 2a 65 76 | | o *ev|
|000056c0| 61 6c 68 6f 6f 6b 2a 20 | 2d 20 20 75 73 65 72 20 |alhook* |- user |
|000056d0| 20 73 75 62 73 74 69 74 | 75 74 65 20 20 66 6f 72 | substit|ute for|
|000056e0| 20 20 74 68 65 20 20 65 | 76 61 6c 75 61 74 6f 72 | the e|valuator|
|000056f0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005700| 66 75 6e 63 74 69 6f 6e | 0a 0a 20 20 20 20 20 20 |function|.. |
|00005710| 20 20 20 20 20 20 6f 20 | 20 2a 61 70 70 6c 79 68 | o | *applyh|
|00005720| 6f 6f 6b 2a 20 2d 20 28 | 6e 6f 74 20 79 65 74 20 |ook* - (|not yet |
|00005730| 69 6d 70 6c 65 6d 65 6e | 74 65 64 29 0a 0a 20 20 |implemen|ted).. |
|00005740| 20 20 20 20 20 20 20 20 | 20 20 6f 20 20 2a 75 6e | | o *un|
|00005750| 62 6f 75 6e 64 2a 20 2d | 20 69 6e 64 69 63 61 74 |bound* -| indicat|
|00005760| 6f 72 20 66 6f 72 20 75 | 6e 62 6f 75 6e 64 20 73 |or for u|nbound s|
|00005770| 79 6d 62 6f 6c 73 0a 0a | 0c 0a 0a 0a 20 20 20 20 |ymbols..|.... |
|00005780| 20 20 58 4c 49 53 50 3a | 20 41 6e 20 45 78 70 65 | XLISP:| An Expe|
|00005790| 72 69 6d 65 6e 74 61 6c | 20 4f 62 6a 65 63 74 20 |rimental| Object |
|000057a0| 4f 72 69 65 6e 74 65 64 | 20 4c 61 6e 67 75 61 67 |Oriented| Languag|
|000057b0| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|000057c0| 20 50 61 67 65 20 31 34 | 0a 20 20 20 20 20 20 45 | Page 14|. E|
|000057d0| 56 41 4c 55 41 54 49 4f | 4e 20 46 55 4e 43 54 49 |VALUATIO|N FUNCTI|
|000057e0| 4f 4e 53 0a 0a 0a 20 20 | 20 20 20 20 31 30 2e 30 |ONS... | 10.0|
|000057f0| 20 20 45 56 41 4c 55 41 | 54 49 4f 4e 20 46 55 4e | EVALUA|TION FUN|
|00005800| 43 54 49 4f 4e 53 0a 0a | 20 20 20 20 20 20 28 65 |CTIONS..| (e|
|00005810| 76 61 6c 20 3c 65 78 70 | 72 3e 29 20 20 45 56 41 |val <exp|r>) EVA|
|00005820| 4c 55 41 54 45 20 41 4e | 20 58 4c 49 53 50 20 45 |LUATE AN| XLISP E|
|00005830| 58 50 52 45 53 53 49 4f | 4e 0a 20 20 20 20 20 20 |XPRESSIO|N. |
|00005840| 20 20 20 20 3c 65 78 70 | 72 3e 20 20 20 20 20 20 | <exp|r> |
|00005850| 74 68 65 20 65 78 70 72 | 65 73 73 69 6f 6e 20 74 |the expr|ession t|
|00005860| 6f 20 62 65 20 65 76 61 | 6c 75 61 74 65 64 0a 20 |o be eva|luated. |
|00005870| 20 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 73 | | returns|
|00005880| 20 20 20 20 20 74 68 65 | 20 72 65 73 75 6c 74 20 | the| result |
|00005890| 6f 66 20 65 76 61 6c 75 | 61 74 69 6e 67 20 74 68 |of evalu|ating th|
|000058a0| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 0a 0a 20 20 |e expres|sion.. |
|000058b0| 20 20 20 20 28 61 70 70 | 6c 79 20 3c 66 75 6e 3e | (app|ly <fun>|
|000058c0| 20 3c 61 72 67 73 3e 29 | 20 20 41 50 50 4c 59 20 | <args>)| APPLY |
|000058d0| 41 20 46 55 4e 43 54 49 | 4f 4e 20 54 4f 20 41 20 |A FUNCTI|ON TO A |
|000058e0| 4c 49 53 54 20 4f 46 20 | 41 52 47 55 4d 45 4e 54 |LIST OF |ARGUMENT|
|000058f0| 53 0a 20 20 20 20 20 20 | 20 20 20 20 3c 66 75 6e |S. | <fun|
|00005900| 3e 20 20 20 20 20 20 20 | 74 68 65 20 66 75 6e 63 |> |the func|
|00005910| 74 69 6f 6e 20 74 6f 20 | 61 70 70 6c 79 20 28 6f |tion to |apply (o|
|00005920| 72 20 66 75 6e 63 74 69 | 6f 6e 20 73 79 6d 62 6f |r functi|on symbo|
|00005930| 6c 29 0a 20 20 20 20 20 | 20 20 20 20 20 3c 61 72 |l). | <ar|
|00005940| 67 73 3e 20 20 20 20 20 | 20 74 68 65 20 61 72 67 |gs> | the arg|
|00005950| 75 6d 65 6e 74 20 6c 69 | 73 74 0a 20 20 20 20 20 |ument li|st. |
|00005960| 20 20 20 20 20 72 65 74 | 75 72 6e 73 20 20 20 20 | ret|urns |
|00005970| 20 74 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 61 | the res|ult of a|
|00005980| 70 70 6c 79 69 6e 67 20 | 74 68 65 20 66 75 6e 63 |pplying |the func|
|00005990| 74 69 6f 6e 20 74 6f 20 | 74 68 65 20 61 72 67 75 |tion to |the argu|
|000059a0| 6d 65 6e 74 20 6c 69 73 | 74 0a 0a 20 20 20 20 20 |ment lis|t.. |
|000059b0| 20 28 66 75 6e 63 61 6c | 6c 20 3c 66 75 6e 3e 20 | (funcal|l <fun> |
|000059c0| 3c 61 72 67 3e 2e 2e 2e | 29 20 20 43 41 4c 4c 20 |<arg>...|) CALL |
|000059d0| 41 20 46 55 4e 43 54 49 | 4f 4e 20 57 49 54 48 20 |A FUNCTI|ON WITH |
|000059e0| 41 52 47 55 4d 45 4e 54 | 53 0a 20 20 20 20 20 20 |ARGUMENT|S. |
|000059f0| 20 20 20 20 3c 66 75 6e | 3e 20 20 20 20 20 20 20 | <fun|> |
|00005a00| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |the func|tion to |
|00005a10| 63 61 6c 6c 20 28 6f 72 | 20 66 75 6e 63 74 69 6f |call (or| functio|
|00005a20| 6e 20 73 79 6d 62 6f 6c | 29 0a 20 20 20 20 20 20 |n symbol|). |
|00005a30| 20 20 20 20 3c 61 72 67 | 3e 20 20 20 20 20 20 20 | <arg|> |
|00005a40| 61 72 67 75 6d 65 6e 74 | 73 20 74 6f 20 70 61 73 |argument|s to pas|
|00005a50| 73 20 74 6f 20 74 68 65 | 20 66 75 6e 63 74 69 6f |s to the| functio|
|00005a60| 6e 0a 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 |n. | retu|
|00005a70| 72 6e 73 20 20 20 20 20 | 74 68 65 20 72 65 73 75 |rns |the resu|
|00005a80| 6c 74 20 6f 66 20 63 61 | 6c 6c 69 6e 67 20 74 68 |lt of ca|lling th|
|00005a90| 65 20 66 75 6e 63 74 69 | 6f 6e 20 77 69 74 68 20 |e functi|on with |
|00005aa0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 73 0a 0a 20 |the argu|ments.. |
|00005ab0| 20 20 20 20 20 28 71 75 | 6f 74 65 20 3c 65 78 70 | (qu|ote <exp|
|00005ac0| 72 3e 29 20 20 52 45 54 | 55 52 4e 20 41 4e 20 45 |r>) RET|URN AN E|
|00005ad0| 58 50 52 45 53 53 49 4f | 4e 20 55 4e 45 56 41 4c |XPRESSIO|N UNEVAL|
|00005ae0| 55 41 54 45 44 0a 20 20 | 20 20 20 20 20 20 20 20 |UATED. | |
|00005af0| 3c 65 78 70 72 3e 20 20 | 20 20 20 20 74 68 65 20 |<expr> | the |
|00005b00| 65 78 70 72 65 73 73 69 | 6f 6e 20 74 6f 20 62 65 |expressi|on to be|
|00005b10| 20 71 75 6f 74 65 64 20 | 28 71 75 6f 74 65 64 29 | quoted |(quoted)|
|00005b20| 0a 20 20 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |. | retur|
|00005b30| 6e 73 20 20 20 20 20 3c | 65 78 70 72 3e 20 75 6e |ns <|expr> un|
|00005b40| 65 76 61 6c 75 61 74 65 | 64 0a 0a 20 20 20 20 20 |evaluate|d.. |
|00005b50| 20 28 66 75 6e 63 74 69 | 6f 6e 20 3c 65 78 70 72 | (functi|on <expr|
|00005b60| 3e 29 20 20 51 55 4f 54 | 45 20 41 20 46 55 4e 43 |>) QUOT|E A FUNC|
|00005b70| 54 49 4f 4e 20 28 54 48 | 49 53 20 49 53 20 54 48 |TION (TH|IS IS TH|
|00005b80| 45 20 53 41 4d 45 20 41 | 53 20 51 55 4f 54 45 29 |E SAME A|S QUOTE)|
|00005b90| 0a 20 20 20 20 20 20 20 | 20 20 20 3c 65 78 70 72 |. | <expr|
|00005ba0| 3e 20 20 20 20 20 20 74 | 68 65 20 66 75 6e 63 74 |> t|he funct|
|00005bb0| 69 6f 6e 20 74 6f 20 62 | 65 20 71 75 6f 74 65 64 |ion to b|e quoted|
|00005bc0| 20 28 71 75 6f 74 65 64 | 29 0a 20 20 20 20 20 20 | (quoted|). |
|00005bd0| 20 20 20 20 72 65 74 75 | 72 6e 73 20 20 20 20 20 | retu|rns |
|00005be0| 3c 65 78 70 72 3e 20 75 | 6e 65 76 61 6c 75 61 74 |<expr> u|nevaluat|
|00005bf0| 65 64 0a 0a 20 20 20 20 | 20 20 28 62 61 63 6b 71 |ed.. | (backq|
|00005c00| 75 6f 74 65 20 3c 65 78 | 70 72 3e 29 20 20 46 49 |uote <ex|pr>) FI|
|00005c10| 4c 4c 20 49 4e 20 41 20 | 54 45 4d 50 4c 41 54 45 |LL IN A |TEMPLATE|
|00005c20| 0a 20 20 20 20 20 20 20 | 20 20 20 3c 65 78 70 72 |. | <expr|
|00005c30| 3e 20 20 20 20 20 20 74 | 68 65 20 74 65 6d 70 6c |> t|he templ|
|00005c40| 61 74 65 0a 20 20 20 20 | 20 20 20 20 20 20 72 65 |ate. | re|
|00005c50| 74 75 72 6e 73 20 20 20 | 20 20 61 20 63 6f 70 79 |turns | a copy|
|00005c60| 20 6f 66 20 74 68 65 20 | 74 65 6d 70 6c 61 74 65 | of the |template|
|00005c70| 20 77 69 74 68 20 63 6f | 6d 6d 61 20 61 6e 64 20 | with co|mma and |
|00005c80| 63 6f 6d 6d 61 2d 61 74 | 20 65 78 70 72 65 73 73 |comma-at| express|
|00005c90| 69 6f 6e 73 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ions. | |
|00005ca0| 20 20 20 20 20 20 20 20 | 20 20 20 65 78 70 61 6e | | expan|
|00005cb0| 64 65 64 20 28 73 65 65 | 20 74 68 65 20 43 6f 6d |ded (see| the Com|
|00005cc0| 6d 6f 6e 20 4c 69 73 70 | 20 72 65 66 65 72 65 6e |mon Lisp| referen|
|00005cd0| 63 65 20 6d 61 6e 75 61 | 6c 29 0a 0c 0a 0a 0a 20 |ce manua|l)..... |
|00005ce0| 20 20 20 20 20 58 4c 49 | 53 50 3a 20 41 6e 20 45 | XLI|SP: An E|
|00005cf0| 78 70 65 72 69 6d 65 6e | 74 61 6c 20 4f 62 6a 65 |xperimen|tal Obje|
|00005d00| 63 74 20 4f 72 69 65 6e | 74 65 64 20 4c 61 6e 67 |ct Orien|ted Lang|
|00005d10| 75 61 67 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |uage | |
|00005d20| 20 20 20 20 50 61 67 65 | 20 31 35 0a 20 20 20 20 | Page| 15. |
|00005d30| 20 20 53 59 4d 42 4f 4c | 20 46 55 4e 43 54 49 4f | SYMBOL| FUNCTIO|
|00005d40| 4e 53 0a 0a 0a 20 20 20 | 20 20 20 31 31 2e 30 20 |NS... | 11.0 |
|00005d50| 20 53 59 4d 42 4f 4c 20 | 46 55 4e 43 54 49 4f 4e | SYMBOL |FUNCTION|
|00005d60| 53 0a 0a 20 20 20 20 20 | 20 28 73 65 74 20 3c 73 |S.. | (set <s|
|00005d70| 79 6d 3e 20 3c 65 78 70 | 72 3e 29 20 20 53 45 54 |ym> <exp|r>) SET|
|00005d80| 20 54 48 45 20 56 41 4c | 55 45 20 4f 46 20 41 20 | THE VAL|UE OF A |
|00005d90| 53 59 4d 42 4f 4c 0a 20 | 20 20 20 20 20 20 20 20 |SYMBOL. | |
|00005da0| 20 3c 73 79 6d 3e 20 20 | 20 20 20 20 20 74 68 65 | <sym> | the|
|00005db0| 20 73 79 6d 62 6f 6c 20 | 62 65 69 6e 67 20 73 65 | symbol |being se|
|00005dc0| 74 0a 20 20 20 20 20 20 | 20 20 20 20 3c 65 78 70 |t. | <exp|
|00005dd0| 72 3e 20 20 20 20 20 20 | 74 68 65 20 6e 65 77 20 |r> |the new |
|00005de0| 76 61 6c 75 65 0a 20 20 | 20 20 20 20 20 20 20 20 |value. | |
|00005df0| 72 65 74 75 72 6e 73 20 | 20 20 20 20 74 68 65 20 |returns | the |
|00005e00| 6e 65 77 20 76 61 6c 75 | 65 0a 0a 20 20 20 20 20 |new valu|e.. |
|00005e10| 20 28 73 65 74 71 20 5b | 3c 73 79 6d 3e 20 3c 65 | (setq [|<sym> <e|
|00005e20| 78 70 72 3e 5d 2e 2e 2e | 29 20 20 53 45 54 20 54 |xpr>]...|) SET T|
|00005e30| 48 45 20 56 41 4c 55 45 | 20 4f 46 20 41 20 53 59 |HE VALUE| OF A SY|
|00005e40| 4d 42 4f 4c 0a 20 20 20 | 20 20 20 20 20 20 20 3c |MBOL. | <|
|00005e50| 73 79 6d 3e 20 20 20 20 | 20 20 20 74 68 65 20 73 |sym> | the s|
|00005e60| 79 6d 62 6f 6c 20 62 65 | 69 6e 67 20 73 65 74 20 |ymbol be|ing set |
|00005e70| 28 71 75 6f 74 65 64 29 | 0a 20 20 20 20 20 20 20 |(quoted)|. |
|00005e80| 20 20 20 3c 65 78 70 72 | 3e 20 20 20 20 20 20 74 | <expr|> t|
|00005e90| 68 65 20 6e 65 77 20 76 | 61 6c 75 65 0a 20 20 20 |he new v|alue. |
|00005ea0| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 73 20 20 | r|eturns |
|00005eb0| 20 20 20 74 68 65 20 6e | 65 77 20 76 61 6c 75 65 | the n|ew value|
|00005ec0| 0a 0a 20 20 20 20 20 20 | 28 73 65 74 66 20 5b 3c |.. |(setf [<|
|00005ed0| 70 6c 61 63 65 3e 20 3c | 65 78 70 72 3e 5d 2e 2e |place> <|expr>]..|
|00005ee0| 2e 29 20 20 53 45 54 20 | 54 48 45 20 56 41 4c 55 |.) SET |THE VALU|
|00005ef0| 45 20 4f 46 20 41 20 46 | 49 45 4c 44 0a 20 20 20 |E OF A F|IELD. |
|00005f00| 20 20 20 20 20 20 20 3c | 70 6c 61 63 65 3e 20 20 | <|place> |
|00005f10| 20 20 20 74 68 65 20 66 | 69 65 6c 64 20 73 70 65 | the f|ield spe|
|00005f20| 63 69 66 69 65 72 20 28 | 71 75 6f 74 65 64 29 3a |cifier (|quoted):|
|00005f30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005f40| 20 20 20 20 20 20 20 20 | 20 20 20 3c 73 79 6d 3e | | <sym>|
|00005f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f60| 73 65 74 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |set the |value of|
|00005f70| 20 61 20 73 79 6d 62 6f | 6c 0a 20 20 20 20 20 20 | a symbo|l. |
|00005f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f90| 20 20 20 20 28 63 61 72 | 20 3c 65 78 70 72 3e 29 | (car| <expr>)|
|00005fa0| 20 20 20 20 20 20 20 20 | 20 73 65 74 20 74 68 65 | | set the|
|00005fb0| 20 63 61 72 20 6f 66 20 | 61 20 6c 69 73 74 20 6e | car of |a list n|
|00005fc0| 6f 64 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ode. | |
|00005fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 63 | | (c|
|00005fe0| 64 72 20 3c 65 78 70 72 | 3e 29 20 20 20 20 20 20 |dr <expr|>) |
|00005ff0| 20 20 20 73 65 74 20 74 | 68 65 20 63 64 72 20 6f | set t|he cdr o|
|00006000| 66 20 61 20 6c 69 73 74 | 20 6e 6f 64 65 0a 20 20 |f a list| node. |
|00006010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006020| 20 20 20 20 20 20 20 20 | 28 67 65 74 20 3c 73 79 | |(get <sy|
|00006030| 6d 3e 20 3c 70 72 6f 70 | 3e 29 20 20 20 73 65 74 |m> <prop|>) set|
|00006040| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 61 20 | the val|ue of a |
|00006050| 70 72 6f 70 65 72 74 79 | 0a 20 20 20 20 20 20 20 |property|. |
|00006060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006070| 20 20 20 28 73 79 6d 62 | 6f 6c 2d 76 61 6c 75 65 | (symb|ol-value|
|00006080| 20 3c 73 79 6d 3e 29 20 | 73 65 74 20 74 68 65 20 | <sym>) |set the |
|00006090| 76 61 6c 75 65 20 6f 66 | 20 61 20 73 79 6d 62 6f |value of| a symbo|
|000060a0| 6c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |l. | |
|000060b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 73 79 6d | | (sym|
|000060c0| 62 6f 6c 2d 70 6c 69 73 | 74 20 3c 73 79 6d 3e 29 |bol-plis|t <sym>)|
|000060d0| 20 73 65 74 20 74 68 65 | 20 70 72 6f 70 65 72 74 | set the| propert|
|000060e0| 79 20 6c 69 73 74 20 6f | 66 20 61 20 73 79 6d 62 |y list o|f a symb|
|000060f0| 6f 6c 0a 20 20 20 20 20 | 20 20 20 20 20 3c 76 61 |ol. | <va|
|00006100| 6c 75 65 3e 20 20 20 20 | 20 74 68 65 20 6e 65 77 |lue> | the new|
|00006110| 20 76 61 6c 75 65 0a 20 | 20 20 20 20 20 20 20 20 | value. | |
|00006120| 20 72 65 74 75 72 6e 73 | 20 20 20 20 20 74 68 65 | returns| the|
|00006130| 20 6e 65 77 20 76 61 6c | 75 65 0a 0a 20 20 20 20 | new val|ue.. |
|00006140| 20 20 28 64 65 66 75 6e | 20 3c 73 79 6d 3e 20 3c | (defun| <sym> <|
|00006150| 66 61 72 67 73 3e 20 3c | 65 78 70 72 3e 2e 2e 2e |fargs> <|expr>...|
|00006160| 29 20 20 44 45 46 49 4e | 45 20 41 20 46 55 4e 43 |) DEFIN|E A FUNC|
|00006170| 54 49 4f 4e 0a 20 20 20 | 20 20 20 28 64 65 66 6d |TION. | (defm|
|00006180| 61 63 72 6f 20 3c 73 79 | 6d 3e 20 3c 66 61 72 67 |acro <sy|m> <farg|
|00006190| 73 3e 20 3c 65 78 70 72 | 3e 2e 2e 2e 29 20 20 44 |s> <expr|>...) D|
|000061a0| 45 46 49 4e 45 20 41 20 | 4d 41 43 52 4f 0a 20 20 |EFINE A |MACRO. |
|000061b0| 20 20 20 20 20 20 20 20 | 3c 73 79 6d 3e 20 20 20 | |<sym> |
|000061c0| 20 20 20 20 73 79 6d 62 | 6f 6c 20 62 65 69 6e 67 | symb|ol being|
|000061d0| 20 64 65 66 69 6e 65 64 | 20 28 71 75 6f 74 65 64 | defined| (quoted|
|000061e0| 29 0a 20 20 20 20 20 20 | 20 20 20 20 3c 66 61 72 |). | <far|
|000061f0| 67 73 3e 20 20 20 20 20 | 6c 69 73 74 20 6f 66 20 |gs> |list of |
|00006200| 66 6f 72 6d 61 6c 20 61 | 72 67 75 6d 65 6e 74 73 |formal a|rguments|
|00006210| 20 28 71 75 6f 74 65 64 | 29 0a 20 20 20 20 20 20 | (quoted|). |
|00006220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006230| 20 20 74 68 69 73 20 6c | 69 73 74 20 69 73 20 6f | this l|ist is o|
|00006240| 66 20 74 68 65 20 66 6f | 72 6d 3a 0a 20 20 20 20 |f the fo|rm:. |
|00006250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006260| 20 20 20 20 20 20 28 3c | 66 61 72 67 3e 2e 2e 2e | (<|farg>...|
|00006270| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00006280| 20 20 20 20 20 20 20 20 | 20 20 20 20 5b 26 6f 70 | | [&op|
|00006290| 74 69 6f 6e 61 6c 20 3c | 6f 61 72 67 3e 2e 2e 2e |tional <|oarg>...|
|000062a0| 5d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |]. | |
|000062b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5b 26 72 | | [&r|
|000062c0| 65 73 74 20 3c 72 61 72 | 67 3e 5d 0a 20 20 20 20 |est <rar|g>]. |
|000062d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062e0| 20 20 20 20 20 20 20 5b | 26 61 75 78 20 3c 61 75 | [|&aux <au|
|000062f0| 78 3e 2e 2e 2e 5d 29 0a | 20 20 20 20 20 20 20 20 |x>...]).| |
|00006300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006310| 77 68 65 72 65 0a 20 20 | 20 20 20 20 20 20 20 20 |where. | |
|00006320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006330| 3c 66 61 72 67 3e 20 20 | 20 20 20 20 69 73 20 61 |<farg> | is a|
|00006340| 20 66 6f 72 6d 61 6c 20 | 61 72 67 75 6d 65 6e 74 | formal |argument|
|00006350| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00006360| 20 20 20 20 20 20 20 20 | 20 20 20 3c 6f 61 72 67 | | <oarg|
|00006370| 3e 20 20 20 20 20 20 69 | 73 20 61 6e 20 6f 70 74 |> i|s an opt|
|00006380| 69 6f 6e 61 6c 20 61 72 | 67 75 6d 65 6e 74 20 28 |ional ar|gument (|
|00006390| 64 65 66 61 75 6c 74 20 | 69 73 20 6e 69 6c 29 0a |default |is nil).|
|000063a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063b0| 20 20 20 20 20 20 20 20 | 20 20 3c 72 61 72 67 3e | | <rarg>|
|000063c0| 20 20 20 20 20 20 62 6f | 75 6e 64 20 74 6f 20 74 | bo|und to t|
|000063d0| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 61 |he rest |of the a|
|000063e0| 72 67 75 6d 65 6e 74 73 | 0a 20 20 20 20 20 20 20 |rguments|. |
|000063f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.