home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e070 / 6.ddi / EXPLORER / SLIDES / SYMBOL-V.TF < prev    next >
Unknown  |  1984-10-20  |  8.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Follin Player Module (music/follinPlayer) ext Supported
100% file data default
100% gt2 Kopftext: 'FASL FILE default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 41 53 4c 20 46 49 4c | 45 0d 0a 43 6f 70 79 72 |FASL FIL|E..Copyr|
|00000010| 69 67 68 74 20 28 63 29 | 20 31 39 38 34 20 53 61 |ight (c)| 1984 Sa|
|00000020| 6e 20 4d 61 72 63 6f 20 | 41 73 73 6f 63 69 61 74 |n Marco |Associat|
|00000030| 65 73 0d 0a 09 41 6c 6c | 20 72 69 67 68 74 73 20 |es...All| rights |
|00000040| 72 65 73 65 72 76 65 64 | 2e 0d 0a 1a ff 07 04 55 |reserved|.......U|
|00000050| 53 45 52 0e 0d 00 00 00 | 00 07 04 4c 49 53 50 0e |SER.....|...LISP.|
|00000060| 0b 01 04 53 45 54 46 07 | 0a 47 45 54 2d 4c 45 53 |...SETF.|.GET-LES|
|00000070| 53 4f 4e 0b 01 05 51 55 | 4f 54 45 07 0d 53 59 4d |SON...QU|OTE..SYM|
|00000080| 42 4f 4c 2d 56 41 4c 55 | 45 53 04 10 02 04 10 02 |BOL-VALU|ES......|
|00000090| 0b 01 05 51 55 4f 54 45 | 07 06 4c 45 53 53 4f 4e |...QUOTE|..LESSON|
|000000a0| 07 0d 53 59 4d 42 4f 4c | 2d 56 41 4c 55 45 53 0b |..SYMBOL|-VALUES.|
|000000b0| 01 04 4e 41 4d 45 07 0d | 53 59 4d 42 4f 4c 2d 56 |..NAME..|SYMBOL-V|
|000000c0| 41 4c 55 45 53 04 10 01 | 07 08 50 52 45 56 49 4f |ALUES...|..PREVIO|
|000000d0| 55 53 07 0b 4c 49 53 54 | 2d 56 41 4c 55 45 53 0b |US..LIST|-VALUES.|
|000000e0| 01 06 56 41 4c 55 45 53 | 04 10 02 04 10 01 07 04 |..VALUES|........|
|000000f0| 4e 45 58 54 07 08 54 4f | 2d 51 55 4f 54 45 04 10 |NEXT..TO|-QUOTE..|
|00000100| 01 07 0b 4c 45 53 53 4f | 4e 2d 4e 41 4d 45 26 14 |...LESSO|N-NAME&.|
|00000110| 53 79 6d 62 6f 6c 73 20 | 43 61 6e 20 42 65 20 46 |Symbols |Can Be F|
|00000120| 6f 72 6d 73 04 10 01 04 | 10 08 07 05 53 4c 49 44 |orms....|....SLID|
|00000130| 45 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 23 01 00 |E..EXPOS|ITION#..|
|00000140| 00 00 04 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 25 |.....EXP|OSITION%|
|00000150| 31 02 00 00 0a 52 65 63 | 61 6c 6c 20 74 68 61 74 |1....Rec|all that|
|00000160| 20 66 6f 72 6d 73 20 61 | 72 65 20 65 78 70 72 65 | forms a|re expre|
|00000170| 73 73 69 6f 6e 73 20 74 | 68 61 74 20 70 72 6f 64 |ssions t|hat prod|
|00000180| 75 63 65 20 76 61 6c 75 | 65 73 2e 00 02 53 69 6e |uce valu|es...Sin|
|00000190| 63 65 20 62 6f 74 68 0a | 73 79 6d 62 6f 6c 73 20 |ce both.|symbols |
|000001a0| 61 6e 64 20 6c 69 73 74 | 73 20 61 72 65 20 65 78 |and list|s are ex|
|000001b0| 70 72 65 73 73 69 6f 6e | 73 2c 20 62 6f 74 68 20 |pression|s, both |
|000001c0| 73 79 6d 62 6f 6c 73 20 | 61 6e 64 20 6c 69 73 74 |symbols |and list|
|000001d0| 73 20 63 61 6e 20 62 65 | 0a 76 61 6c 75 65 2d 70 |s can be|.value-p|
|000001e0| 72 6f 64 75 63 69 6e 67 | 20 66 6f 72 6d 73 2e 0a |roducing| forms..|
|000001f0| 0a 53 6f 6d 65 20 73 79 | 6d 62 6f 6c 73 20 63 6f |.Some sy|mbols co|
|00000200| 6d 65 20 77 69 74 68 20 | 62 75 69 6c 74 2d 69 6e |me with |built-in|
|00000210| 20 76 61 6c 75 65 73 2e | 00 02 46 6f 72 20 65 78 | values.|..For ex|
|00000220| 61 6d 70 6c 65 2c 20 69 | 6e 20 74 68 65 0a 62 69 |ample, i|n the.bi|
|00000230| 67 67 65 72 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |gger ver|sions of|
|00000240| 20 43 6f 6d 6d 6f 6e 20 | 4c 49 53 50 2c 20 74 68 | Common |LISP, th|
|00000250| 65 20 62 75 69 6c 74 2d | 69 6e 20 76 61 6c 75 65 |e built-|in value|
|00000260| 20 6f 66 20 74 68 65 20 | 73 79 6d 62 6f 6c 0a 50 | of the |symbol.P|
|00000270| 49 20 69 73 20 61 6e 20 | 69 6d 70 6c 65 6d 65 6e |I is an |implemen|
|00000280| 74 61 74 69 6f 6e 2d 64 | 65 70 65 6e 64 65 6e 74 |tation-d|ependent|
|00000290| 20 61 70 70 72 6f 78 69 | 6d 61 74 69 6f 6e 20 74 | approxi|mation t|
|000002a0| 6f 20 74 68 65 20 72 61 | 74 69 6f 20 6f 66 0a 65 |o the ra|tio of.e|
|000002b0| 76 65 72 79 20 63 69 72 | 63 6c 65 27 73 20 63 69 |very cir|cle's ci|
|000002c0| 72 63 75 6d 66 65 72 65 | 6e 63 65 20 74 6f 20 69 |rcumfere|nce to i|
|000002d0| 74 73 20 64 69 61 6d 65 | 74 65 72 2e 0a 0a 54 6f |ts diame|ter...To|
|000002e0| 20 6b 65 65 70 20 74 68 | 65 20 65 78 61 6d 70 6c | keep th|e exampl|
|000002f0| 65 73 20 73 69 6d 70 6c | 65 2c 20 61 73 73 75 6d |es simpl|e, assum|
|00000300| 65 20 74 68 61 74 20 50 | 49 27 73 20 76 61 6c 75 |e that P|I's valu|
|00000310| 65 20 69 73 20 33 2e 31 | 34 2e 0a 43 6f 6e 73 65 |e is 3.1|4..Conse|
|00000320| 71 75 65 6e 74 6c 79 2c | 20 69 66 20 79 6f 75 20 |quently,| if you |
|00000330| 74 79 70 65 20 50 49 2c | 20 4c 49 53 50 20 65 76 |type PI,| LISP ev|
|00000340| 61 6c 75 61 74 65 73 20 | 74 68 65 20 73 79 6d 62 |aluates |the symb|
|00000350| 6f 6c 20 50 49 2c 0a 72 | 65 74 75 72 6e 69 6e 67 |ol PI,.r|eturning|
|00000360| 20 33 2e 31 34 20 61 73 | 20 74 68 65 20 76 61 6c | 3.14 as| the val|
|00000370| 75 65 20 6f 66 20 50 49 | 3a 0a 0a 2a 20 50 49 0a |ue of PI|:..* PI.|
|00000380| 33 2e 31 34 0a 23 11 00 | 00 00 10 01 04 27 03 00 |3.14.#..|.....'..|
|00000390| 00 00 2e 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|000003a0| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 23 02 00 00 |..EXPOSI|TION#...|
|000003b0| 00 04 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 26 c6 |....EXPO|SITION&.|
|000003c0| 0a 4e 6f 77 2c 20 66 6f | 72 20 61 6e 6f 74 68 65 |.Now, fo|r anothe|
|000003d0| 72 20 65 78 61 6d 70 6c | 65 2c 20 73 75 70 70 6f |r exampl|e, suppo|
|000003e0| 73 65 20 77 65 20 68 61 | 76 65 20 61 20 63 69 72 |se we ha|ve a cir|
|000003f0| 63 6c 65 20 77 69 74 68 | 20 61 20 72 61 64 69 75 |cle with| a radiu|
|00000400| 73 0a 6f 66 20 33 2e 00 | 02 54 68 65 6e 20 69 74 |s.of 3..|.Then it|
|00000410| 73 20 63 69 72 63 75 6d | 66 65 72 65 6e 63 65 20 |s circum|ference |
|00000420| 69 73 20 32 20 78 20 50 | 49 20 78 20 33 2e 00 02 |is 2 x P|I x 3...|
|00000430| 54 6f 20 67 65 74 20 74 | 68 65 20 72 65 73 75 6c |To get t|he resul|
|00000440| 74 0a 75 73 69 6e 67 20 | 4c 49 53 50 2c 20 74 79 |t.using |LISP, ty|
|00000450| 70 65 20 74 68 69 73 3a | 20 0a 0a 2a 20 28 2a 20 |pe this:| ..* (* |
|00000460| 32 20 50 49 20 33 29 0a | 31 38 2e 38 34 00 0e 3b |2 PI 3).|18.84..;|
|00000470| 32 20 78 20 33 2e 31 34 | 20 78 20 33 20 3d 20 31 |2 x 3.14| x 3 = 1|
|00000480| 38 2e 38 34 2e 0a 23 08 | 00 00 00 10 01 04 27 03 |8.84..#.|......'.|
|00000490| 00 00 00 2e 27 05 00 00 | 00 2e 07 05 53 4c 49 44 |....'...|....SLID|
|000004a0| 45 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 23 03 00 |E..EXPOS|ITION#..|
|000004b0| 00 00 04 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 25 |.....EXP|OSITION%|
|000004c0| 51 01 00 00 0a 54 68 65 | 20 77 61 79 20 77 65 20 |Q....The| way we |
|000004d0| 61 73 73 69 67 6e 20 61 | 20 76 61 6c 75 65 20 74 |assign a| value t|
|000004e0| 6f 20 61 20 73 79 6d 62 | 6f 6c 20 69 73 20 74 6f |o a symb|ol is to|
|000004f0| 20 75 73 65 20 74 68 65 | 20 62 75 69 6c 74 2d 69 | use the| built-i|
|00000500| 6e 0a 70 72 6f 63 65 64 | 75 72 65 20 53 45 54 46 |n.proced|ure SETF|
|00000510| 2c 20 77 68 69 63 68 20 | 69 73 20 73 68 6f 72 74 |, which |is short|
|00000520| 20 66 6f 72 20 53 45 54 | 20 46 69 65 6c 64 2e 00 | for SET| Field..|
|00000530| 02 0a 0a 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |...For e|xample, |
|00000540| 73 75 70 70 6f 73 65 20 | 77 65 20 77 61 6e 74 20 |suppose |we want |
|00000550| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 45 20 74 |the valu|e of E t|
|00000560| 6f 20 62 65 20 32 2e 37 | 32 2e 00 02 57 65 0a 63 |o be 2.7|2...We.c|
|00000570| 61 6e 20 64 6f 20 74 68 | 69 73 20 61 73 20 66 6f |an do th|is as fo|
|00000580| 6c 6c 6f 77 73 3a 0a 0a | 2a 20 28 53 45 54 46 20 |llows:..|* (SETF |
|00000590| 45 20 32 2e 37 32 29 0a | 32 2e 37 32 0a 0a 4e 6f |E 2.72).|2.72..No|
|000005a0| 74 65 20 74 68 61 74 20 | 74 68 65 20 76 61 6c 75 |te that |the valu|
|000005b0| 65 20 6f 66 20 74 68 65 | 20 53 45 54 46 20 66 6f |e of the| SETF fo|
|000005c0| 72 6d 20 69 73 20 74 68 | 65 20 76 61 6c 75 65 20 |rm is th|e value |
|000005d0| 6f 66 20 74 68 65 20 73 | 65 63 6f 6e 64 0a 61 72 |of the s|econd.ar|
|000005e0| 67 75 6d 65 6e 74 2e 00 | 02 4e 6f 74 65 20 61 6c |gument..|.Note al|
|000005f0| 73 6f 20 74 68 61 74 20 | 45 20 6e 6f 77 20 68 61 |so that |E now ha|
|00000600| 73 20 61 20 76 61 6c 75 | 65 3a 0a 0a 2a 20 45 0a |s a valu|e:..* E.|
|00000610| 32 2e 37 32 0a 23 10 00 | 00 00 10 01 04 27 03 00 |2.72.#..|.....'..|
|00000620| 00 00 2e 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|00000630| 07 08 45 58 41 4d 50 4c | 45 53 23 04 00 00 00 04 |..EXAMPL|ES#.....|
|00000640| 07 0d 45 58 41 4d 50 4c | 45 2d 47 52 4f 55 50 26 |..EXAMPL|E-GROUP&|
|00000650| 0b 0a 54 72 79 20 74 68 | 65 73 65 2e 23 02 00 00 |..Try th|ese.#...|
|00000660| 00 10 01 26 0c 2a 20 28 | 53 45 54 46 20 52 20 31 |...&.* (|SETF R 1|
|00000670| 29 23 01 00 00 00 10 01 | 26 01 31 23 01 00 00 00 |)#......|&.1#....|
|00000680| 10 01 27 04 00 00 00 2e | 07 0d 45 58 41 4d 50 4c |..'.....|..EXAMPL|
|00000690| 45 2d 47 52 4f 55 50 04 | 26 10 2a 20 28 2a 20 50 |E-GROUP.|&.* (* P|
|000006a0| 49 20 28 2a 20 32 20 52 | 29 29 23 01 00 00 00 10 |I (* 2 R|))#.....|
|000006b0| 01 26 04 36 2e 32 38 23 | 01 00 00 00 10 01 27 04 |.&.6.28#|......'.|
|000006c0| 00 00 00 2e 07 0d 45 58 | 41 4d 50 4c 45 2d 47 52 |......EX|AMPLE-GR|
|000006d0| 4f 55 50 04 26 10 2a 20 | 28 2a 20 50 49 20 28 2a |OUP.&.* |(* PI (*|
|000006e0| 20 52 20 52 29 29 23 01 | 00 00 00 10 01 26 05 33 | R R))#.|.....&.3|
|000006f0| 2e 31 34 0a 23 02 00 00 | 00 10 01 27 04 00 00 00 |.14.#...|...'....|
|00000700| 2e 04 10 03 27 05 00 00 | 00 2e 07 05 53 4c 49 44 |....'...|....SLID|
|00000710| 45 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 23 05 00 |E..EXPOS|ITION#..|
|00000720| 00 00 04 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 25 |.....EXP|OSITION%|
|00000730| ea 01 00 00 0a 54 68 65 | 20 76 61 6c 75 65 20 6f |.....The| value o|
|00000740| 66 20 61 20 73 79 6d 62 | 6f 6c 20 6e 65 65 64 20 |f a symb|ol need |
|00000750| 6e 6f 74 20 62 65 20 61 | 20 6e 75 6d 62 65 72 3b |not be a| number;|
|00000760| 20 61 20 73 79 6d 62 6f | 6c 27 73 20 76 61 6c 75 | a symbo|l's valu|
|00000770| 65 20 63 61 6e 0a 62 65 | 20 61 6e 6f 74 68 65 72 |e can.be| another|
|00000780| 20 73 79 6d 62 6f 6c 20 | 6f 72 20 65 76 65 6e 20 | symbol |or even |
|00000790| 61 20 6c 69 73 74 2e 00 | 02 46 6f 72 20 65 78 61 |a list..|.For exa|
|000007a0| 6d 70 6c 65 2c 20 77 65 | 20 63 61 6e 20 6d 61 6b |mple, we| can mak|
|000007b0| 65 20 74 68 65 0a 76 61 | 6c 75 65 20 6f 66 20 74 |e the.va|lue of t|
|000007c0| 68 65 20 73 79 6d 62 6f | 6c 20 4c 20 62 65 20 74 |he symbo|l L be t|
|000007d0| 68 65 20 6c 69 73 74 20 | 28 54 48 49 53 20 49 53 |he list |(THIS IS|
|000007e0| 20 41 20 4c 49 53 54 29 | 2e 00 02 53 79 6d 62 6f | A LIST)|...Symbo|
|000007f0| 6c 73 20 61 6e 64 0a 6c | 69 73 74 73 20 61 72 65 |ls and.l|ists are|
|00000800| 20 61 74 74 61 63 68 65 | 64 20 75 73 69 6e 67 20 | attache|d using |
|00000810| 53 45 54 46 20 6a 75 73 | 74 20 61 73 20 6e 75 6d |SETF jus|t as num|
|00000820| 62 65 72 73 20 61 72 65 | 3a 0a 0a 2a 20 28 53 45 |bers are|:..* (SE|
|00000830| 54 46 20 4c 20 27 28 54 | 48 49 53 20 49 53 20 41 |TF L '(T|HIS IS A|
|00000840| 20 4c 49 53 54 29 29 0a | 28 54 48 49 53 20 49 53 | LIST)).|(THIS IS|
|00000850| 20 41 20 4c 49 53 54 29 | 0a 0a 4f 6e 63 65 20 53 | A LIST)|..Once S|
|00000860| 45 54 46 20 68 61 73 20 | 61 74 74 61 63 68 65 64 |ETF has |attached|
|00000870| 20 61 20 76 61 6c 75 65 | 2c 20 69 74 20 63 61 6e | a value|, it can|
|00000880| 20 62 65 20 72 65 74 72 | 69 65 76 65 64 3a 0a 0a | be retr|ieved:..|
|00000890| 2a 20 4c 0a 28 54 48 49 | 53 20 49 53 20 41 20 4c |* L.(THI|S IS A L|
|000008a0| 49 53 54 29 0a 0a 42 75 | 74 20 6e 6f 74 65 20 74 |IST)..Bu|t note t|
|000008b0| 68 61 74 20 61 20 73 74 | 72 61 6e 67 65 20 71 75 |hat a st|range qu|
|000008c0| 6f 74 65 20 6d 61 72 6b | 2c 20 27 2c 20 61 70 70 |ote mark|, ', app|
|000008d0| 65 61 72 65 64 20 77 68 | 65 6e 20 53 45 54 46 20 |eared wh|en SETF |
|000008e0| 77 61 73 0a 75 73 65 64 | 20 74 6f 20 73 65 74 20 |was.used| to set |
|000008f0| 4c 27 73 20 76 61 6c 75 | 65 2e 00 02 59 6f 75 20 |L's valu|e...You |
|00000900| 6c 65 61 72 6e 20 77 68 | 79 20 69 6e 20 74 68 65 |learn wh|y in the|
|00000910| 20 6e 65 78 74 20 6c 65 | 73 73 6f 6e 2e 0a 23 11 | next le|sson..#.|
|00000920| 00 00 00 10 01 04 27 03 | 00 00 00 2e 27 05 00 00 |......'.|....'...|
|00000930| 00 2e 07 05 53 4c 49 44 | 45 07 0a 45 58 50 4f 53 |....SLID|E..EXPOS|
|00000940| 49 54 49 4f 4e 23 06 00 | 00 00 04 07 0a 45 58 50 |ITION#..|.....EXP|
|00000950| 4f 53 49 54 49 4f 4e 26 | 72 0a 52 65 6d 65 6d 62 |OSITION&|r.Rememb|
|00000960| 65 72 20 2e 2e 2e 0a 0a | 6f 00 04 50 52 49 4d 49 |er .....|o..PRIMI|
|00000970| 54 49 56 45 53 20 61 72 | 65 20 62 75 69 6c 74 2d |TIVES ar|e built-|
|00000980| 69 6e 20 70 72 6f 63 65 | 64 75 72 65 73 2e 0a 0a |in proce|dures...|
|00000990| 6f 00 04 53 45 54 46 20 | 69 73 20 74 68 65 20 70 |o..SETF |is the p|
|000009a0| 72 69 6d 69 74 69 76 65 | 20 75 73 65 64 20 74 6f |rimitive| used to|
|000009b0| 20 61 74 74 61 63 68 20 | 76 61 6c 75 65 73 20 74 | attach |values t|
|000009c0| 6f 20 73 79 6d 62 6f 6c | 73 2e 0a 23 07 00 00 00 |o symbol|s..#....|
|000009d0| 10 01 04 27 03 00 00 00 | 2e 27 05 00 00 00 2e 27 |...'....|.'.....'|
|000009e0| 06 00 00 00 04 27 05 00 | 00 00 2e 04 10 02 04 10 |.....'..|........|
|000009f0| 03 36 0b 01 04 53 45 54 | 46 07 0a 47 45 54 2d 4c |.6...SET|F..GET-L|
|00000a00| 45 53 53 4f 4e 0b 01 05 | 51 55 4f 54 45 07 08 54 |ESSON...|QUOTE..T|
|00000a10| 4f 2d 51 55 4f 54 45 04 | 10 02 04 10 02 0b 01 05 |O-QUOTE.|........|
|00000a20| 51 55 4f 54 45 07 06 4c | 45 53 53 4f 4e 07 08 54 |QUOTE..L|ESSON..T|
|00000a30| 4f 2d 51 55 4f 54 45 0b | 01 04 4e 41 4d 45 07 08 |O-QUOTE.|..NAME..|
|00000a40| 54 4f 2d 51 55 4f 54 45 | 04 10 01 07 04 4e 45 58 |TO-QUOTE|.....NEX|
|00000a50| 54 07 09 54 4f 2d 41 43 | 43 45 53 53 04 10 01 07 |T..TO-AC|CESS....|
|00000a60| 08 50 52 45 56 49 4f 55 | 53 07 0d 53 59 4d 42 4f |.PREVIOU|S..SYMBO|
|00000a70| 4c 2d 56 41 4c 55 45 53 | 04 10 01 07 0b 4c 45 53 |L-VALUES|.....LES|
|00000a80| 53 4f 4e 2d 4e 41 4d 45 | 26 13 53 74 6f 70 70 69 |SON-NAME|&.Stoppi|
|00000a90| 6e 67 20 45 76 61 6c 75 | 61 74 69 6f 6e 04 10 01 |ng Evalu|ation...|
|00000aa0| 04 10 08 07 05 53 4c 49 | 44 45 07 0a 45 58 50 4f |.....SLI|DE..EXPO|
|00000ab0| 53 49 54 49 4f 4e 23 01 | 00 00 00 04 07 0a 45 58 |SITION#.|......EX|
|00000ac0| 50 4f 53 49 54 49 4f 4e | 25 7e 01 00 00 0a 49 6e |POSITION|%~....In|
|00000ad0| 20 6f 72 64 69 6e 61 72 | 79 20 45 6e 67 6c 69 73 | ordinar|y Englis|
|00000ae0| 68 20 63 6f 6e 76 65 72 | 73 61 74 69 6f 6e 2c 20 |h conver|sation, |
|00000af0| 77 65 20 64 69 73 74 69 | 6e 67 75 69 73 68 20 62 |we disti|nguish b|
|00000b00| 65 74 77 65 65 6e 20 6e | 61 6d 65 73 0a 75 73 65 |etween n|ames.use|
|00000b10| 64 20 74 6f 20 69 64 65 | 6e 74 69 66 79 20 74 68 |d to ide|ntify th|
|00000b20| 69 6e 67 73 20 61 6e 64 | 20 74 68 65 20 6e 61 6d |ings and| the nam|
|00000b30| 65 73 20 74 68 65 6d 73 | 65 6c 76 65 73 2e 00 02 |es thems|elves...|
|00000b40| 48 65 72 65 20 69 73 20 | 61 6e 0a 65 78 61 6d 70 |Here is |an.examp|
|00000b50| 6c 65 20 6f 66 20 61 20 | 6e 61 6d 65 20 75 73 65 |le of a |name use|
|00000b60| 64 20 74 6f 20 69 64 65 | 6e 74 69 66 79 20 61 20 |d to ide|ntify a |
|00000b70| 70 65 72 73 6f 6e 3a 0a | 0a 22 4b 61 72 65 6e 20 |person:.|."Karen |
|00000b80| 69 73 20 6e 69 63 65 2e | 22 0a 0a 41 6e 64 20 68 |is nice.|"..And h|
|00000b90| 65 72 65 20 69 73 20 61 | 6e 20 65 78 61 6d 70 6c |ere is a|n exampl|
|00000ba0| 65 20 6f 66 20 61 20 6e | 61 6d 65 20 75 73 65 64 |e of a n|ame used|
|00000bb0| 20 61 73 20 61 20 77 6f | 72 64 2c 20 74 68 61 74 | as a wo|rd, that|
|00000bc0| 20 69 73 2c 20 61 73 20 | 61 0a 74 68 69 6e 67 20 | is, as |a.thing |
|00000bd0| 69 74 73 65 6c 66 3a 0a | 0a 22 4b 61 72 65 6e 20 |itself:.|."Karen |
|00000be0| 69 73 20 61 20 6e 69 63 | 65 20 6e 61 6d 65 2e 22 |is a nic|e name."|
|00000bf0| 0a 20 c4 c4 c4 c4 c4 0a | 0a 49 6e 20 45 6e 67 6c |. ......|.In Engl|
|00000c00| 69 73 68 2c 20 74 68 65 | 20 63 6f 6e 76 65 6e 74 |ish, the| convent|
|00000c10| 69 6f 6e 20 69 73 20 74 | 6f 20 75 6e 64 65 72 6c |ion is t|o underl|
|00000c20| 69 6e 65 20 6f 72 20 69 | 74 61 6c 69 63 69 7a 65 |ine or i|talicize|
|00000c30| 20 6e 61 6d 65 73 0a 77 | 68 65 6e 20 75 73 65 64 | names.w|hen used|
|00000c40| 20 74 68 69 73 20 77 61 | 79 2e 0a 23 10 00 00 00 | this wa|y..#....|
|00000c50| 10 01 04 27 03 00 00 00 | 2e 27 05 00 00 00 2e 07 |...'....|.'......|
|00000c60| 05 53 4c 49 44 45 07 0a | 45 58 50 4f 53 49 54 49 |.SLIDE..|EXPOSITI|
|00000c70| 4f 4e 23 02 00 00 00 04 | 07 0a 45 58 50 4f 53 49 |ON#.....|..EXPOSI|
|00000c80| 54 49 4f 4e 25 98 01 00 | 00 0a 49 6e 20 4c 49 53 |TION%...|..In LIS|
|00000c90| 50 2c 20 61 73 20 69 6e | 20 45 6e 67 6c 69 73 68 |P, as in| English|
|00000ca0| 2c 20 74 68 65 72 65 20 | 69 73 20 61 20 64 69 73 |, there |is a dis|
|00000cb0| 74 69 6e 63 74 69 6f 6e | 20 62 65 74 77 65 65 6e |tinction| between|
|00000cc0| 20 74 68 65 20 74 68 69 | 6e 67 20 0a 61 20 73 79 | the thi|ng .a sy|
|00000cd0| 6d 62 6f 6c 20 73 74 61 | 6e 64 73 20 66 6f 72 20 |mbol sta|nds for |
|00000ce0| 61 6e 64 20 74 68 65 20 | 73 79 6d 62 6f 6c 20 69 |and the |symbol i|
|00000cf0| 74 73 65 6c 66 2e 00 02 | 53 75 70 70 6f 73 65 20 |tself...|Suppose |
|00000d00| 74 68 61 74 20 74 68 65 | 0a 73 79 6d 62 6f 6c 20 |that the|.symbol |
|00000d10| 4c 20 68 61 73 20 74 68 | 65 20 6c 69 73 74 20 28 |L has th|e list (|
|00000d20| 54 48 49 53 20 49 53 20 | 41 20 4c 49 53 54 29 20 |THIS IS |A LIST) |
|00000d30| 61 73 20 69 74 73 20 76 | 61 6c 75 65 2e 0a 0a 54 |as its v|alue...T|
|00000d40| 68 65 6e 20 74 68 69 6e | 6b 69 6e 67 20 6f 66 20 |hen thin|king of |
|00000d50| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|00000d60| 20 73 79 6d 62 6f 6c 20 | 4c 2c 20 69 74 20 6d 61 | symbol |L, it ma|
|00000d70| 6b 65 73 20 73 65 6e 73 | 65 20 74 6f 0a 73 61 79 |kes sens|e to.say|
|00000d80| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 3a 0a | the fol|lowing:.|
|00000d90| 0a 22 54 68 65 20 76 61 | 6c 75 65 20 6f 66 20 4c |."The va|lue of L|
|00000da0| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 66 20 66 6f | is a li|st of fo|
|00000db0| 75 72 20 65 6c 65 6d 65 | 6e 74 73 2e 22 0a 0a 54 |ur eleme|nts."..T|
|00000dc0| 68 69 6e 6b 69 6e 67 20 | 6f 66 20 74 68 65 20 73 |hinking |of the s|
|00000dd0| 79 6d 62 6f 6c 20 4c 20 | 69 74 73 65 6c 66 2c 20 |ymbol L |itself, |
|00000de0| 69 74 20 6d 61 6b 65 73 | 20 73 65 6e 73 65 20 74 |it makes| sense t|
|00000df0| 6f 20 73 61 79 3a 0a 0a | 22 54 68 65 20 73 79 6d |o say:..|"The sym|
|00000e00| 62 6f 6c 20 4c 20 69 73 | 20 6e 6f 74 20 61 20 6c |bol L is| not a l|
|00000e10| 69 73 74 20 61 74 20 61 | 6c 6c 2e 22 0a 00 0c 2d |ist at a|ll."...-|
|00000e20| 0a 23 0f 00 00 00 10 01 | 04 27 03 00 00 00 2e 27 |.#......|.'.....'|
|00000e30| 05 00 00 00 2e 07 05 53 | 4c 49 44 45 07 0a 45 58 |.......S|LIDE..EX|
|00000e40| 50 4f 53 49 54 49 4f 4e | 23 03 00 00 00 04 07 0a |POSITION|#.......|
|00000e50| 45 58 50 4f 53 49 54 49 | 4f 4e 25 26 02 00 00 0a |EXPOSITI|ON%&....|
|00000e60| 4c 49 53 50 20 6e 65 65 | 64 73 20 68 65 6c 70 20 |LISP nee|ds help |
|00000e70| 74 6f 20 64 65 63 69 64 | 65 20 77 68 65 74 68 65 |to decid|e whethe|
|00000e80| 72 20 61 20 70 72 6f 67 | 72 61 6d 6d 65 72 20 69 |r a prog|rammer i|
|00000e90| 73 20 74 68 69 6e 6b 69 | 6e 67 20 61 62 6f 75 74 |s thinki|ng about|
|00000ea0| 0a 61 20 73 79 6d 62 6f | 6c 27 73 20 76 61 6c 75 |.a symbo|l's valu|
|00000eb0| 65 20 6f 72 20 74 68 65 | 20 73 79 6d 62 6f 6c 20 |e or the| symbol |
|00000ec0| 69 74 73 65 6c 66 2e 00 | 02 59 6f 75 20 73 75 70 |itself..|.You sup|
|00000ed0| 70 6c 79 20 74 68 61 74 | 20 68 65 6c 70 20 62 79 |ply that| help by|
|00000ee0| 0a 73 70 65 63 69 61 6c | 6c 79 20 6d 61 72 6b 69 |.special|ly marki|
|00000ef0| 6e 67 20 73 79 6d 62 6f | 6c 73 20 74 68 61 74 20 |ng symbo|ls that |
|00000f00| 79 6f 75 20 77 61 6e 74 | 20 4c 49 53 50 20 74 6f |you want| LISP to|
|00000f10| 20 74 61 6b 65 20 61 73 | 20 74 68 65 79 20 61 72 | take as| they ar|
|00000f20| 65 2c 0a 77 69 74 68 6f | 75 74 20 67 6f 69 6e 67 |e,.witho|ut going|
|00000f30| 20 66 6f 72 20 74 68 65 | 20 76 61 6c 75 65 2e 0a | for the| value..|
|00000f40| 0a 59 6f 75 20 64 6f 20 | 6e 6f 74 20 75 73 65 20 |.You do |not use |
|00000f50| 75 6e 64 65 72 6c 69 6e | 69 6e 67 20 6f 72 20 69 |underlin|ing or i|
|00000f60| 74 61 6c 69 63 73 20 69 | 6e 20 4c 49 53 50 2c 20 |talics i|n LISP, |
|00000f70| 68 6f 77 65 76 65 72 2e | 00 02 49 6e 73 74 65 61 |however.|..Instea|
|00000f80| 64 2c 0a 6d 61 72 6b 69 | 6e 67 20 69 73 20 64 6f |d,.marki|ng is do|
|00000f90| 6e 65 20 62 79 20 70 75 | 74 74 69 6e 67 20 61 20 |ne by pu|tting a |
|00000fa0| 71 75 6f 74 65 20 6d 61 | 72 6b 2c 20 27 2c 20 69 |quote ma|rk, ', i|
|00000fb0| 6e 20 66 72 6f 6e 74 2e | 0a 0a 54 68 75 73 20 27 |n front.|..Thus '|
|00000fc0| 4c 20 72 65 66 65 72 73 | 20 74 6f 20 74 68 65 20 |L refers| to the |
|00000fd0| 73 79 6d 62 6f 6c 20 4c | 2c 20 6e 6f 74 20 69 74 |symbol L|, not it|
|00000fe0| 73 20 76 61 6c 75 65 2c | 20 77 68 69 6c 65 20 4c |s value,| while L|
|00000ff0| 20 72 65 66 65 72 73 20 | 74 6f 0a 74 68 65 20 76 | refers |to.the v|
|00001000| 61 6c 75 65 20 6f 66 20 | 4c 2e 0a 0a 57 68 65 6e |alue of |L...When|
|00001010| 20 4c 49 53 50 20 73 65 | 65 73 20 27 4c 2c 20 69 | LISP se|es 'L, i|
|00001020| 74 00 02 72 65 74 75 72 | 6e 73 20 4c 3b 20 77 68 |t..retur|ns L; wh|
|00001030| 65 6e 20 4c 49 53 50 20 | 73 65 65 73 20 4c 2c 20 |en LISP |sees L, |
|00001040| 69 74 20 72 65 74 75 72 | 6e 73 0a 74 68 65 20 76 |it retur|ns.the v|
|00001050| 61 6c 75 65 20 6f 66 20 | 4c 2c 20 77 68 69 63 68 |alue of |L, which|
|00001060| 20 69 6e 20 6f 75 72 20 | 65 78 61 6d 70 6c 65 20 | in our |example |
|00001070| 69 73 20 28 54 48 49 53 | 20 49 53 20 41 20 4c 49 |is (THIS| IS A LI|
|00001080| 53 54 29 2e 0a 23 0f 00 | 00 00 10 01 04 27 03 00 |ST)..#..|.....'..|
|00001090| 00 00 2e 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|000010a0| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 23 04 00 00 |..EXPOSI|TION#...|
|000010b0| 00 04 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 26 eb |....EXPO|SITION&.|
|000010c0| 0a 54 68 65 20 71 75 6f | 74 65 20 6d 61 72 6b 20 |.The quo|te mark |
|000010d0| 69 73 20 75 73 65 66 75 | 6c 20 66 6f 72 20 6c 69 |is usefu|l for li|
|000010e0| 73 74 73 20 61 73 20 77 | 65 6c 6c 20 61 73 20 66 |sts as w|ell as f|
|000010f0| 6f 72 20 73 79 6d 62 6f | 6c 73 2e 00 02 41 73 0a |or symbo|ls...As.|
|00001100| 77 69 74 68 20 71 75 6f | 74 65 64 20 73 79 6d 62 |with quo|ted symb|
|00001110| 6f 6c 73 2c 20 71 75 6f | 74 65 64 20 6c 69 73 74 |ols, quo|ted list|
|00001120| 73 20 61 72 65 20 6e 6f | 74 20 65 76 61 6c 75 61 |s are no|t evalua|
|00001130| 74 65 64 2e 00 02 54 68 | 75 73 20 74 68 65 0a 76 |ted...Th|us the.v|
|00001140| 61 6c 75 65 20 6f 66 20 | 28 2b 20 31 20 32 29 20 |alue of |(+ 1 2) |
|00001150| 69 73 20 33 2c 20 62 75 | 74 20 27 28 2b 20 31 20 |is 3, bu|t '(+ 1 |
|00001160| 32 29 20 72 65 66 65 72 | 73 20 74 6f 20 74 68 65 |2) refer|s to the|
|00001170| 20 6c 69 73 74 20 28 2b | 20 31 20 32 29 2e 20 0a | list (+| 1 2). .|
|00001180| 45 76 61 6c 75 61 74 69 | 6f 6e 20 69 73 20 69 6e |Evaluati|on is in|
|00001190| 68 69 62 69 74 65 64 20 | 62 79 20 74 68 65 20 71 |hibited |by the q|
|000011a0| 75 6f 74 65 20 6d 61 72 | 6b 2e 0a 23 06 00 00 00 |uote mar|k..#....|
|000011b0| 10 01 04 27 03 00 00 00 | 2e 27 05 00 00 00 2e 07 |...'....|.'......|
|000011c0| 05 53 4c 49 44 45 07 0a | 45 58 50 4f 53 49 54 49 |.SLIDE..|EXPOSITI|
|000011d0| 4f 4e 23 05 00 00 00 04 | 07 0a 45 58 50 4f 53 49 |ON#.....|..EXPOSI|
|000011e0| 54 49 4f 4e 25 b6 01 00 | 00 0a 4e 6f 72 6d 61 6c |TION%...|..Normal|
|000011f0| 6c 79 2c 20 4c 49 53 50 | 20 65 76 61 6c 75 61 74 |ly, LISP| evaluat|
|00001200| 65 73 20 61 6c 6c 20 74 | 68 65 20 61 72 67 75 6d |es all t|he argum|
|00001210| 65 6e 74 73 20 69 6e 20 | 61 6c 6c 20 66 6f 72 6d |ents in |all form|
|00001220| 73 2c 20 66 72 6f 6d 0a | 6c 65 66 74 20 74 6f 20 |s, from.|left to |
|00001230| 72 69 67 68 74 2c 20 62 | 65 66 6f 72 65 20 75 73 |right, b|efore us|
|00001240| 69 6e 67 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |ing the |specifie|
|00001250| 64 20 70 72 6f 63 65 64 | 75 72 65 2e 00 02 46 6f |d proced|ure...Fo|
|00001260| 72 0a 65 78 61 6d 70 6c | 65 2c 20 69 6e 20 74 68 |r.exampl|e, in th|
|00001270| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 20 28 2b 20 |e expres|sion (+ |
|00001280| 28 2a 20 35 20 32 29 20 | 28 2f 20 31 30 20 32 29 |(* 5 2) |(/ 10 2)|
|00001290| 29 2c 20 74 68 65 20 74 | 77 6f 0a 61 72 67 75 6d |), the t|wo.argum|
|000012a0| 65 6e 74 73 2c 20 28 2a | 20 35 20 32 29 20 61 6e |ents, (*| 5 2) an|
|000012b0| 64 20 28 2f 20 31 30 20 | 32 29 20 61 72 65 20 62 |d (/ 10 |2) are b|
|000012c0| 6f 74 68 20 65 76 61 6c | 75 61 74 65 64 2c 20 6c |oth eval|uated, l|
|000012d0| 65 66 74 20 74 6f 0a 72 | 69 67 68 74 2c 20 77 68 |eft to.r|ight, wh|
|000012e0| 65 72 65 75 70 6f 6e 20 | 2b 20 64 6f 65 73 20 69 |ereupon |+ does i|
|000012f0| 74 73 20 6a 6f 62 2e 0a | 0a 53 45 54 46 20 69 73 |ts job..|.SETF is|
|00001300| 20 6f 6e 65 20 69 6d 70 | 6f 72 74 61 6e 74 20 65 | one imp|ortant e|
|00001310| 78 63 65 70 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |xception| to the |
|00001320| 72 75 6c 65 2e 00 02 54 | 68 65 20 66 69 72 73 74 |rule...T|he first|
|00001330| 20 61 72 67 75 6d 65 6e | 74 0a 69 73 20 6e 6f 74 | argumen|t.is not|
|00001340| 20 65 76 61 6c 75 61 74 | 65 64 2e 00 02 54 68 65 | evaluat|ed...The|
|00001350| 20 73 65 63 6f 6e 64 20 | 61 72 67 75 6d 65 6e 74 | second |argument|
|00001360| 2c 20 74 68 65 20 6f 6e | 65 20 74 68 61 74 20 73 |, the on|e that s|
|00001370| 75 70 70 6c 69 65 73 20 | 74 68 65 0a 76 61 6c 75 |upplies |the.valu|
|00001380| 65 20 6f 66 20 74 68 65 | 20 73 79 6d 62 6f 6c 2c |e of the| symbol,|
|00001390| 20 69 73 20 65 76 61 6c | 75 61 74 65 64 2e 0a 23 | is eval|uated..#|
|000013a0| 0b 00 00 00 10 01 04 27 | 03 00 00 00 2e 27 05 00 |.......'|.....'..|
|000013b0| 00 00 2e 07 05 53 4c 49 | 44 45 07 0a 45 58 50 4f |.....SLI|DE..EXPO|
|000013c0| 53 49 54 49 4f 4e 23 06 | 00 00 00 04 07 0a 45 58 |SITION#.|......EX|
|000013d0| 50 4f 53 49 54 49 4f 4e | 25 e3 01 00 00 0a 4e 6f |POSITION|%.....No|
|000013e0| 77 20 79 6f 75 20 63 61 | 6e 20 73 65 65 20 74 68 |w you ca|n see th|
|000013f0| 61 74 20 74 68 65 20 77 | 61 79 20 28 54 48 49 53 |at the w|ay (THIS|
|00001400| 20 49 53 20 41 20 4c 49 | 53 54 29 20 62 65 63 6f | IS A LI|ST) beco|
|00001410| 6d 65 73 20 74 68 65 20 | 76 61 6c 75 65 0a 6f 66 |mes the |value.of|
|00001420| 20 4c 20 69 73 20 61 73 | 20 66 6f 6c 6c 6f 77 73 | L is as| follows|
|00001430| 3a 0a 0a 2a 20 28 53 45 | 54 46 20 4c 20 27 28 54 |:..* (SE|TF L '(T|
|00001440| 48 49 53 20 49 53 20 41 | 20 4c 49 53 54 29 29 0a |HIS IS A| LIST)).|
|00001450| 28 54 48 49 53 20 49 53 | 20 41 20 4c 49 53 54 29 |(THIS IS| A LIST)|
|00001460| 0a 0a 54 68 65 72 65 20 | 69 73 20 6e 6f 20 71 75 |..There |is no qu|
|00001470| 6f 74 65 20 6d 61 72 6b | 20 6f 6e 20 4c 20 62 65 |ote mark| on L be|
|00001480| 63 61 75 73 65 20 74 68 | 65 20 66 69 72 73 74 20 |cause th|e first |
|00001490| 61 72 67 75 6d 65 6e 74 | 20 74 6f 20 53 45 54 46 |argument| to SETF|
|000014a0| 2c 0a 62 79 20 73 70 65 | 63 69 61 6c 20 64 69 73 |,.by spe|cial dis|
|000014b0| 70 65 6e 73 61 74 69 6f | 6e 2c 20 69 73 20 6e 65 |pensatio|n, is ne|
|000014c0| 76 65 72 20 65 76 61 6c | 75 61 74 65 64 2e 00 02 |ver eval|uated...|
|000014d0| 54 68 65 72 65 20 69 73 | 20 61 20 71 75 6f 74 65 |There is| a quote|
|000014e0| 0a 6d 61 72 6b 20 62 65 | 66 6f 72 65 20 28 54 48 |.mark be|fore (TH|
|000014f0| 49 53 20 49 53 20 41 20 | 4c 49 53 54 29 20 c4 c4 |IS IS A |LIST) ..|
|00001500| c4 20 6f 74 68 65 72 77 | 69 73 65 2c 20 69 6e 20 |. otherw|ise, in |
|00001510| 61 74 74 65 6d 70 74 69 | 6e 67 20 74 6f 0a 65 76 |attempti|ng to.ev|
|00001520| 61 6c 75 61 74 65 20 28 | 54 48 49 53 20 49 53 20 |aluate (|THIS IS |
|00001530| 41 20 4c 49 53 54 29 2c | 20 4c 49 53 50 20 77 6f |A LIST),| LISP wo|
|00001540| 75 6c 64 20 66 69 6e 64 | 20 74 68 65 20 73 79 6d |uld find| the sym|
|00001550| 62 6f 6c 20 54 48 49 53 | 20 69 6e 20 74 68 65 0a |bol THIS| in the.|
|00001560| 70 72 6f 63 65 64 75 72 | 65 20 70 6f 73 69 74 69 |procedur|e positi|
|00001570| 6f 6e 2e 00 02 42 65 63 | 61 75 73 65 20 54 48 49 |on...Bec|ause THI|
|00001580| 53 20 69 73 20 6e 6f 74 | 20 61 20 76 61 6c 69 64 |S is not| a valid|
|00001590| 20 70 72 6f 63 65 64 75 | 72 65 20 6e 61 6d 65 2c | procedu|re name,|
|000015a0| 0a 4c 49 53 50 20 77 6f | 75 6c 64 20 63 6f 6d 70 |.LISP wo|uld comp|
|000015b0| 6c 61 69 6e 2c 20 62 69 | 74 74 65 72 6c 79 2e 0a |lain, bi|tterly..|
|000015c0| 23 0e 00 00 00 10 01 04 | 27 03 00 00 00 2e 27 05 |#.......|'.....'.|
|000015d0| 00 00 00 2e 07 05 53 4c | 49 44 45 07 0a 45 58 50 |......SL|IDE..EXP|
|000015e0| 4f 53 49 54 49 4f 4e 23 | 07 00 00 00 04 07 0a 45 |OSITION#|.......E|
|000015f0| 58 50 4f 53 49 54 49 4f | 4e 25 72 01 00 00 0a 4e |XPOSITIO|N%r....N|
|00001600| 6f 74 65 20 74 68 61 74 | 20 4c 49 53 50 20 63 61 |ote that| LISP ca|
|00001610| 6e 6e 6f 74 20 65 76 61 | 6c 75 61 74 65 20 74 68 |nnot eva|luate th|
|00001620| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 65 78 70 72 |e follow|ing expr|
|00001630| 65 73 73 69 6f 6e 20 77 | 69 74 68 6f 75 74 0a 61 |ession w|ithout.a|
|00001640| 20 71 75 6f 74 65 20 6d | 61 72 6b 3a 0a 0a 2a 20 | quote m|ark:..* |
|00001650| 28 53 45 54 46 20 4c 20 | 28 50 48 57 20 4b 41 50 |(SETF L |(PHW KAP|
|00001660| 20 44 43 42 29 29 0a 45 | 72 72 6f 72 0a 0a 41 67 | DCB)).E|rror..Ag|
|00001670| 61 69 6e 2c 20 74 68 65 | 20 70 72 6f 62 6c 65 6d |ain, the| problem|
|00001680| 20 69 73 20 74 68 61 74 | 20 50 48 57 20 69 73 20 | is that| PHW is |
|00001690| 6e 6f 74 20 61 20 70 72 | 6f 63 65 64 75 72 65 20 |not a pr|ocedure |
|000016a0| 6e 61 6d 65 2c 20 79 65 | 74 20 50 48 57 0a 69 73 |name, ye|t PHW.is|
|000016b0| 20 74 68 65 20 73 79 6d | 62 6f 6c 20 69 6e 20 74 | the sym|bol in t|
|000016c0| 68 65 20 66 69 72 73 74 | 2c 20 70 72 6f 63 65 64 |he first|, proced|
|000016d0| 75 72 65 2d 6e 61 6d 65 | 20 70 6f 73 69 74 69 6f |ure-name| positio|
|000016e0| 6e 20 69 6e 20 74 68 65 | 20 66 6f 72 6d 0a 74 6f |n in the| form.to|
|000016f0| 20 62 65 20 65 76 61 6c | 75 61 74 65 64 2e 0a 0a | be eval|uated...|
|00001700| 54 68 69 73 20 69 73 20 | 66 69 6e 65 2c 20 68 6f |This is |fine, ho|
|00001710| 77 65 76 65 72 3a 0a 0a | 2a 20 28 53 45 54 46 20 |wever:..|* (SETF |
|00001720| 4c 20 27 28 50 48 57 20 | 4b 41 50 20 44 43 42 29 |L '(PHW |KAP DCB)|
|00001730| 29 0a 28 50 48 57 20 4b | 41 50 20 44 43 42 29 0a |).(PHW K|AP DCB).|
|00001740| 0a 4e 6f 77 20 65 76 61 | 6c 75 61 74 69 6f 6e 20 |.Now eva|luation |
|00001750| 69 73 20 69 6e 68 69 62 | 69 74 65 64 20 62 79 20 |is inhib|ited by |
|00001760| 74 68 65 20 71 75 6f 74 | 65 20 6d 61 72 6b 2e 0a |the quot|e mark..|
|00001770| 23 12 00 00 00 10 01 04 | 27 03 00 00 00 2e 27 05 |#.......|'.....'.|
|00001780| 00 00 00 2e 07 05 53 4c | 49 44 45 07 0a 45 58 50 |......SL|IDE..EXP|
|00001790| 4f 53 49 54 49 4f 4e 23 | 08 00 00 00 04 07 0a 45 |OSITION#|.......E|
|000017a0| 58 50 4f 53 49 54 49 4f | 4e 26 67 0a 53 65 65 20 |XPOSITIO|N&g.See |
|000017b0| 74 68 65 20 64 65 74 61 | 69 6c 73 20 73 6c 69 64 |the deta|ils slid|
|000017c0| 65 20 62 65 6c 6f 77 20 | 66 6f 72 20 61 20 64 69 |e below |for a di|
|000017d0| 73 63 75 73 73 69 6f 6e | 20 6f 66 20 74 68 65 20 |scussion| of the |
|000017e0| 4c 49 53 50 0a 70 72 69 | 6d 69 74 69 76 65 20 51 |LISP.pri|mitive Q|
|000017f0| 55 4f 54 45 2c 20 77 68 | 69 63 68 20 68 61 73 20 |UOTE, wh|ich has |
|00001800| 61 6e 20 65 66 66 65 63 | 74 20 6c 69 6b 65 20 27 |an effec|t like '|
|00001810| 2e 0a 23 04 00 00 00 10 | 01 07 05 53 4c 49 44 45 |..#.....|...SLIDE|
|00001820| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 23 01 00 00 |..EXPOSI|TION#...|
|00001830| 00 04 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 25 48 |....EXPO|SITION%H|
|00001840| 01 00 00 0a 55 73 69 6e | 67 20 61 20 73 69 6e 67 |....Usin|g a sing|
|00001850| 6c 65 20 71 75 6f 74 65 | 20 6d 61 72 6b 2c 20 61 |le quote| mark, a|
|00001860| 73 20 69 6e 20 27 3c 65 | 78 70 72 65 73 73 69 6f |s in '<e|xpressio|
|00001870| 6e 3e 2c 20 69 73 20 72 | 65 61 6c 6c 79 20 6a 75 |n>, is r|eally ju|
|00001880| 73 74 20 61 0a 63 6f 6e | 76 65 6e 69 65 6e 74 20 |st a.con|venient |
|00001890| 73 68 6f 72 74 68 61 6e | 64 20 66 6f 72 20 75 73 |shorthan|d for us|
|000018a0| 69 6e 67 20 74 68 65 20 | 4c 49 53 50 20 70 72 69 |ing the |LISP pri|
|000018b0| 6d 69 74 69 76 65 20 51 | 55 4f 54 45 2c 20 61 73 |mitive Q|UOTE, as|
|000018c0| 20 69 6e 0a 28 51 55 4f | 54 45 20 3c 65 78 70 72 | in.(QUO|TE <expr|
|000018d0| 65 73 73 69 6f 6e 3e 29 | 2e 00 02 59 6f 75 20 77 |ession>)|...You w|
|000018e0| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 51 55 4f 54 |ill see |the QUOT|
|000018f0| 45 20 66 6f 72 6d 20 77 | 68 65 6e 65 76 65 72 20 |E form w|henever |
|00001900| 4c 49 53 50 0a 70 72 69 | 6e 74 73 20 6f 75 74 20 |LISP.pri|nts out |
|00001910| 61 20 71 75 6f 74 65 64 | 20 65 78 70 72 65 73 73 |a quoted| express|
|00001920| 69 6f 6e 2c 20 61 73 20 | 69 6e 20 74 68 65 20 66 |ion, as |in the f|
|00001930| 6f 6c 6c 6f 77 69 6e 67 | 20 65 78 61 6d 70 6c 65 |ollowing| example|
|00001940| 3a 0a 0a 2a 20 28 46 49 | 52 53 54 20 27 28 41 20 |:..* (FI|RST '(A |
|00001950| 42 20 43 29 29 0a 28 41 | 20 42 20 43 29 0a 0a 2a |B C)).(A| B C)..*|
|00001960| 20 27 28 46 49 52 53 54 | 20 27 28 41 20 42 20 43 | '(FIRST| '(A B C|
|00001970| 29 29 0a 28 46 49 52 53 | 54 20 28 51 55 4f 54 45 |)).(FIRS|T (QUOTE|
|00001980| 20 28 41 20 42 20 43 29 | 29 29 0a 23 0c 00 00 00 | (A B C)|)).#....|
|00001990| 10 01 04 27 03 00 00 00 | 2e 27 05 00 00 00 2e 27 |...'....|.'.....'|
|000019a0| 01 00 00 00 27 03 00 00 | 00 2e 27 05 00 00 00 2e |....'...|..'.....|
|000019b0| 07 05 53 4c 49 44 45 07 | 0a 45 58 50 4f 53 49 54 |..SLIDE.|.EXPOSIT|
|000019c0| 49 4f 4e 23 09 00 00 00 | 04 07 0a 45 58 50 4f 53 |ION#....|...EXPOS|
|000019d0| 49 54 49 4f 4e 26 83 0a | 4a 75 73 74 20 61 73 20 |ITION&..|Just as |
|000019e0| 74 68 65 72 65 20 69 73 | 20 61 20 77 61 79 20 74 |there is| a way t|
|000019f0| 6f 20 69 6e 68 69 62 69 | 74 20 65 76 61 6c 75 61 |o inhibi|t evalua|
|00001a00| 74 69 6f 6e 2c 20 74 68 | 65 72 65 20 69 73 20 61 |tion, th|ere is a|
|00001a10| 20 77 61 79 20 74 6f 0a | 69 6e 73 69 73 74 20 6f | way to.|insist o|
|00001a20| 6e 20 65 78 74 72 61 20 | 65 76 61 6c 75 61 74 69 |n extra |evaluati|
|00001a30| 6f 6e 2e 00 02 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |on...The| followi|
|00001a40| 6e 67 20 64 65 74 61 69 | 6c 20 73 6c 69 64 65 20 |ng detai|l slide |
|00001a50| 65 78 70 6c 61 69 6e 73 | 2e 0a 23 04 00 00 00 10 |explains|..#.....|
|00001a60| 01 07 05 53 4c 49 44 45 | 07 0a 45 58 50 4f 53 49 |...SLIDE|..EXPOSI|
|00001a70| 54 49 4f 4e 23 01 00 00 | 00 04 07 0a 45 58 50 4f |TION#...|....EXPO|
|00001a80| 53 49 54 49 4f 4e 25 33 | 01 00 00 0a 4f 63 63 61 |SITION%3|....Occa|
|00001a90| 73 69 6f 6e 61 6c 6c 79 | 2c 20 79 6f 75 20 6d 61 |sionally|, you ma|
|00001aa0| 79 20 77 61 6e 74 20 74 | 6f 20 65 76 61 6c 75 61 |y want t|o evalua|
|00001ab0| 74 65 20 73 6f 6d 65 74 | 68 69 6e 67 20 6d 6f 72 |te somet|hing mor|
|00001ac0| 65 20 74 68 61 6e 20 6f | 6e 63 65 2e 20 0a 43 6f |e than o|nce. .Co|
|00001ad0| 6e 73 69 64 65 72 20 74 | 68 65 73 65 3a 0a 0a 2a |nsider t|hese:..*|
|00001ae0| 20 28 53 45 54 46 20 41 | 20 27 42 29 0a 42 0a 0a | (SETF A| 'B).B..|
|00001af0| 2a 20 28 53 45 54 46 20 | 42 20 27 43 29 0a 43 0a |* (SETF |B 'C).C.|
|00001b00| 0a 4a 75 73 74 20 65 76 | 61 6c 75 61 74 69 6e 67 |.Just ev|aluating|
|00001b10| 20 41 20 79 69 65 6c 64 | 73 20 42 2e 00 02 54 6f | A yield|s B...To|
|00001b20| 20 67 65 74 20 65 78 74 | 72 61 20 65 76 61 6c 75 | get ext|ra evalu|
|00001b30| 61 74 69 6f 6e 2c 0a 45 | 56 41 4c 20 69 73 20 75 |ation,.E|VAL is u|
|00001b40| 73 65 64 3a 0a 0a 2a 20 | 28 45 56 41 4c 20 41 29 |sed:..* |(EVAL A)|
|00001b50| 0a 43 0a 0a 41 20 69 73 | 20 65 76 61 6c 75 61 74 |.C..A is| evaluat|
|00001b60| 65 64 20 74 77 69 63 65 | 3a 20 6f 6e 63 65 20 62 |ed twice|: once b|
|00001b70| 65 63 61 75 73 65 20 69 | 74 20 69 73 20 61 6e 20 |ecause i|t is an |
|00001b80| 61 72 67 75 6d 65 6e 74 | 20 6f 66 20 61 0a 70 72 |argument| of a.pr|
|00001b90| 6f 63 65 64 75 72 65 3b | 20 61 67 61 69 6e 20 62 |ocedure;| again b|
|00001ba0| 65 63 61 75 73 65 20 74 | 68 65 20 70 72 6f 63 65 |ecause t|he proce|
|00001bb0| 64 75 72 65 20 69 73 20 | 45 56 41 4c 2e 0a 23 13 |dure is |EVAL..#.|
|00001bc0| 00 00 00 10 01 04 27 03 | 00 00 00 2e 27 05 00 00 |......'.|....'...|
|00001bd0| 00 2e 27 01 00 00 00 27 | 03 00 00 00 2e 27 05 00 |..'....'|.....'..|
|00001be0| 00 00 2e 07 05 53 4c 49 | 44 45 07 08 45 58 41 4d |.....SLI|DE..EXAM|
|00001bf0| 50 4c 45 53 23 0a 00 00 | 00 04 07 0d 45 58 41 4d |PLES#...|....EXAM|
|00001c00| 50 4c 45 2d 47 52 4f 55 | 50 26 16 0a 45 76 61 6c |PLE-GROU|P&..Eval|
|00001c10| 75 61 74 65 20 74 68 65 | 73 65 20 66 6f 72 6d 73 |uate the|se forms|
|00001c20| 2e 23 02 00 00 00 10 01 | 26 28 2a 20 28 53 45 54 |.#......|&(* (SET|
|00001c30| 46 20 4c 20 27 28 54 48 | 49 53 20 49 53 20 54 48 |F L '(TH|IS IS TH|
|00001c40| 45 20 4e 45 57 20 56 41 | 4c 55 45 20 4f 46 20 4c |E NEW VA|LUE OF L|
|00001c50| 29 29 23 01 00 00 00 10 | 01 26 1c 28 54 48 49 53 |))#.....|.&.(THIS|
|00001c60| 20 49 53 20 54 48 45 20 | 4e 45 57 20 56 41 4c 55 | IS THE |NEW VALU|
|00001c70| 45 20 4f 46 20 4c 29 23 | 01 00 00 00 10 01 27 04 |E OF L)#|......'.|
|00001c80| 00 00 00 2e 07 0d 45 58 | 41 4d 50 4c 45 2d 47 52 |......EX|AMPLE-GR|
|00001c90| 4f 55 50 04 26 03 2a 20 | 4c 23 01 00 00 00 10 01 |OUP.&.* |L#......|
|00001ca0| 26 1c 28 54 48 49 53 20 | 49 53 20 54 48 45 20 4e |&.(THIS |IS THE N|
|00001cb0| 45 57 20 56 41 4c 55 45 | 20 4f 46 20 4c 29 23 01 |EW VALUE| OF L)#.|
|00001cc0| 00 00 00 10 01 27 04 00 | 00 00 2e 07 0d 45 58 41 |.....'..|.....EXA|
|00001cd0| 4d 50 4c 45 2d 47 52 4f | 55 50 04 26 0d 2a 20 28 |MPLE-GRO|UP.&.* (|
|00001ce0| 53 45 54 46 20 4d 20 27 | 4c 29 23 01 00 00 00 10 |SETF M '|L)#.....|
|00001cf0| 01 26 01 4c 23 01 00 00 | 00 10 01 27 04 00 00 00 |.&.L#...|...'....|
|00001d00| 2e 07 0d 45 58 41 4d 50 | 4c 45 2d 47 52 4f 55 50 |...EXAMP|LE-GROUP|
|00001d10| 04 26 03 2a 20 4d 23 01 | 00 00 00 10 01 26 3b 4c |.&.* M#.|.....&;L|
|00001d20| 00 06 3b 4d 27 73 20 76 | 61 6c 75 65 20 69 73 20 |..;M's v|alue is |
|00001d30| 4c 20 69 74 73 65 6c 66 | 20 62 65 63 61 75 73 65 |L itself| because|
|00001d40| 20 6f 66 20 74 68 65 20 | 71 75 6f 74 65 20 69 6e | of the |quote in|
|00001d50| 20 74 68 65 20 53 45 54 | 46 2e 23 01 00 00 00 10 | the SET|F.#.....|
|00001d60| 01 27 04 00 00 00 2e 07 | 0d 45 58 41 4d 50 4c 45 |.'......|.EXAMPLE|
|00001d70| 2d 47 52 4f 55 50 04 26 | 0c 2a 20 28 53 45 54 46 |-GROUP.&|.* (SETF|
|00001d80| 20 4e 20 4c 29 23 01 00 | 00 00 10 01 26 1c 28 54 | N L)#..|....&.(T|
|00001d90| 48 49 53 20 49 53 20 54 | 48 45 20 4e 45 57 20 56 |HIS IS T|HE NEW V|
|00001da0| 41 4c 55 45 20 4f 46 20 | 4c 29 23 01 00 00 00 10 |ALUE OF |L)#.....|
|00001db0| 01 27 04 00 00 00 2e 07 | 0d 45 58 41 4d 50 4c 45 |.'......|.EXAMPLE|
|00001dc0| 2d 47 52 4f 55 50 04 26 | 03 2a 20 4e 23 01 00 00 |-GROUP.&|.* N#...|
|00001dd0| 00 10 01 26 6a 28 54 48 | 49 53 20 49 53 20 54 48 |...&j(TH|IS IS TH|
|00001de0| 45 20 4e 45 57 20 56 41 | 4c 55 45 20 4f 46 20 4c |E NEW VA|LUE OF L|
|00001df0| 29 00 03 3b 4e 27 73 20 | 76 61 6c 75 65 20 69 73 |)..;N's |value is|
|00001e00| 20 74 68 65 20 56 41 4c | 55 45 20 6f 66 20 4c 20 | the VAL|UE of L |
|00001e10| 0a 00 1f 3b 62 65 63 61 | 75 73 65 20 74 68 65 72 |...;beca|use ther|
|00001e20| 65 20 77 61 73 20 6e 6f | 20 71 75 6f 74 65 0a 00 |e was no| quote..|
|00001e30| 1f 3b 69 6e 20 74 68 65 | 20 53 45 54 46 2e 0a 23 |.;in the| SETF..#|
|00001e40| 04 00 00 00 10 01 27 04 | 00 00 00 2e 04 10 06 27 |......'.|.......'|
|00001e50| 05 00 00 00 2e 07 05 53 | 4c 49 44 45 07 08 50 52 |.......S|LIDE..PR|
|00001e60| 41 43 54 49 43 45 23 0b | 00 00 00 07 05 46 4f 52 |ACTICE#.|.....FOR|
|00001e70| 4d 53 0b 01 01 54 04 10 | 02 26 80 0a 45 78 70 65 |MS...T..|.&..Expe|
|00001e80| 72 69 6d 65 6e 74 20 77 | 69 74 68 20 53 45 54 46 |riment w|ith SETF|
|00001e90| 2c 20 74 61 6b 69 6e 67 | 20 63 61 72 65 20 74 6f |, taking| care to|
|00001ea0| 20 75 73 65 20 74 68 65 | 20 71 75 6f 74 65 20 77 | use the| quote w|
|00001eb0| 68 65 6e 20 6e 65 65 64 | 65 64 2e 20 0a 54 72 79 |hen need|ed. .Try|
|00001ec0| 20 62 6f 74 68 20 28 53 | 45 54 46 20 4e 20 27 28 | both (S|ETF N '(|
|00001ed0| 2b 20 31 20 32 29 29 20 | 61 6e 64 20 28 53 45 54 |+ 1 2)) |and (SET|
|00001ee0| 46 20 4e 20 28 2b 20 31 | 20 32 29 29 2c 20 66 6f |F N (+ 1| 2)), fo|
|00001ef0| 72 20 65 78 61 6d 70 6c | 65 2e 0a 23 04 00 00 00 |r exampl|e..#....|
|00001f00| 10 01 27 05 00 00 00 2e | 07 05 53 4c 49 44 45 07 |..'.....|..SLIDE.|
|00001f10| 0a 45 58 50 4f 53 49 54 | 49 4f 4e 23 0c 00 00 00 |.EXPOSIT|ION#....|
|00001f20| 04 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 26 72 0a |...EXPOS|ITION&r.|
|00001f30| 52 65 6d 65 6d 62 65 72 | 20 2e 2e 2e 0a 0a 6f 00 |Remember| .....o.|
|00001f40| 04 51 55 4f 54 49 4e 47 | 20 69 6e 68 69 62 69 74 |.QUOTING| inhibit|
|00001f50| 73 20 65 76 61 6c 75 61 | 74 69 6f 6e 2e 0a 0a 6f |s evalua|tion...o|
|00001f60| 00 04 49 46 20 79 6f 75 | 20 77 61 6e 74 20 74 68 |..IF you| want th|
|00001f70| 65 20 74 68 69 6e 67 20 | 69 74 73 65 6c 66 2c 20 |e thing |itself, |
|00001f80| 4e 4f 54 20 69 74 73 20 | 76 61 6c 75 65 2c 0a 00 |NOT its |value,..|
|00001f90| 05 54 48 45 4e 20 71 75 | 6f 74 65 20 69 74 2e 0a |.THEN qu|ote it..|
|00001fa0| 0a 23 09 00 00 00 10 01 | 04 27 03 00 00 00 2e 27 |.#......|.'.....'|
|00001fb0| 05 00 00 00 2e 27 0c 00 | 00 00 04 27 05 00 00 00 |.....'..|...'....|
|00001fc0| 2e 04 10 02 04 10 03 36 | 0b 01 04 53 45 54 46 07 |.......6|...SETF.|
|00001fd0| 15 2a 4c 41 53 54 2d 4c | 4f 41 44 45 44 2d 4c 45 |.*LAST-L|OADED-LE|
|00001fe0| 53 53 4f 4e 53 2a 0b 01 | 05 51 55 4f 54 45 07 0d |SSONS*..|.QUOTE..|
|00001ff0| 53 59 4d 42 4f 4c 2d 56 | 41 4c 55 45 53 07 08 54 |SYMBOL-V|ALUES..T|
|00002000| 4f 2d 51 55 4f 54 45 04 | 10 02 04 10 02 04 10 03 |O-QUOTE.|........|
|00002010| 36 40 | |6@ | |
+--------+-------------------------+-------------------------+--------+--------+