home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e070 / 6.ddi / EXPLORER / SLIDES / TEMPLATE.TF < prev    next >
Unknown  |  1984-10-21  |  10.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 09 54 45 4d |SON...QU|OTE..TEM|
|00000080| 50 4c 41 54 45 53 04 10 | 02 04 10 02 0b 01 05 51 |PLATES..|.......Q|
|00000090| 55 4f 54 45 07 06 4c 45 | 53 53 4f 4e 07 09 54 45 |UOTE..LE|SSON..TE|
|000000a0| 4d 50 4c 41 54 45 53 0b | 01 04 4e 41 4d 45 07 09 |MPLATES.|..NAME..|
|000000b0| 54 45 4d 50 4c 41 54 45 | 53 04 10 01 07 04 4e 45 |TEMPLATE|S.....NE|
|000000c0| 58 54 07 0c 54 4f 2d 54 | 52 41 4e 53 4c 41 54 45 |XT..TO-T|RANSLATE|
|000000d0| 04 10 01 07 08 50 52 45 | 56 49 4f 55 53 07 05 42 |.....PRE|VIOUS..B|
|000000e0| 4f 58 45 53 04 10 01 07 | 0b 4c 45 53 53 4f 4e 2d |OXES....|.LESSON-|
|000000f0| 4e 41 4d 45 26 0f 55 73 | 69 6e 67 20 42 61 63 6b |NAME&.Us|ing Back|
|00000100| 71 75 6f 74 65 04 10 01 | 04 10 08 07 05 53 4c 49 |quote...|.....SLI|
|00000110| 44 45 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 23 01 |DE..EXPO|SITION#.|
|00000120| 00 00 00 04 07 0a 45 58 | 50 4f 53 49 54 49 4f 4e |......EX|POSITION|
|00000130| 25 a6 01 00 00 0a 4c 49 | 53 50 2c 20 6c 69 6b 65 |%.....LI|SP, like|
|00000140| 20 6c 69 66 65 2c 20 69 | 73 20 66 75 6c 6c 20 6f | life, i|s full o|
|00000150| 66 20 66 6f 72 6d 73 20 | 74 6f 20 63 6f 6d 70 6c |f forms |to compl|
|00000160| 65 74 65 2e 00 02 46 6f | 72 74 75 6e 61 74 65 6c |ete...Fo|rtunatel|
|00000170| 79 2c 20 4c 49 53 50 0a | 67 69 76 65 73 20 75 73 |y, LISP.|gives us|
|00000180| 20 63 6f 6e 73 69 64 65 | 72 61 62 6c 65 20 68 65 | conside|rable he|
|00000190| 6c 70 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 62 |lp throu|gh the b|
|000001a0| 61 63 6b 71 75 6f 74 65 | 20 6d 65 63 68 61 6e 69 |ackquote| mechani|
|000001b0| 73 6d 2c 20 77 68 69 63 | 68 0a 6d 61 6b 65 73 20 |sm, whic|h.makes |
|000001c0| 69 74 20 65 61 73 79 20 | 74 6f 20 63 72 65 61 74 |it easy |to creat|
|000001d0| 65 20 61 6e 64 20 74 6f | 20 63 6f 6d 70 6c 65 74 |e and to| complet|
|000001e0| 65 20 66 6f 72 6d 6c 69 | 6b 65 20 74 65 6d 70 6c |e formli|ke templ|
|000001f0| 61 74 65 73 2e 0a 0a 54 | 68 65 20 6e 6f 72 6d 61 |ates...T|he norma|
|00000200| 6c 20 71 75 6f 74 65 2c | 20 27 2c 20 69 73 6f 6c |l quote,| ', isol|
|00000210| 61 74 65 73 20 61 6e 20 | 65 6e 74 69 72 65 20 65 |ates an |entire e|
|00000220| 78 70 72 65 73 73 69 6f | 6e 20 66 72 6f 6d 0a 65 |xpressio|n from.e|
|00000230| 76 61 6c 75 61 74 69 6f | 6e 2e 00 02 42 61 63 6b |valuatio|n...Back|
|00000240| 71 75 6f 74 65 2c 20 60 | 2c 20 69 73 20 6e 6f 74 |quote, `|, is not|
|00000250| 20 73 6f 20 70 72 6f 63 | 72 75 73 74 65 61 6e 2e | so proc|rustean.|
|00000260| 00 02 57 68 65 6e 65 76 | 65 72 20 61 0a 63 6f 6d |..Whenev|er a.com|
|00000270| 6d 61 20 61 70 70 65 61 | 72 73 20 69 6e 73 69 64 |ma appea|rs insid|
|00000280| 65 20 61 20 62 61 63 6b | 71 75 6f 74 65 64 20 65 |e a back|quoted e|
|00000290| 78 70 72 65 73 73 69 6f | 6e 2c 20 74 68 65 20 73 |xpressio|n, the s|
|000002a0| 75 62 65 78 70 72 65 73 | 73 69 6f 6e 0a 69 6d 6d |ubexpres|sion.imm|
|000002b0| 65 64 69 61 74 65 6c 79 | 20 66 6f 6c 6c 6f 77 69 |ediately| followi|
|000002c0| 6e 67 20 74 68 65 20 63 | 6f 6d 6d 61 20 69 73 20 |ng the c|omma is |
|000002d0| 65 76 61 6c 75 61 74 65 | 64 2e 0a 23 0a 00 00 00 |evaluate|d..#....|
|000002e0| 10 01 04 27 03 00 00 00 | 2e 27 05 00 00 00 2e 07 |...'....|.'......|
|000002f0| 05 53 4c 49 44 45 07 0a | 45 58 50 4f 53 49 54 49 |.SLIDE..|EXPOSITI|
|00000300| 4f 4e 23 02 00 00 00 04 | 07 0a 45 58 50 4f 53 49 |ON#.....|..EXPOSI|
|00000310| 54 49 4f 4e 26 d9 0a 54 | 68 65 73 65 20 69 6c 6c |TION&..T|hese ill|
|00000320| 75 73 74 72 61 74 65 20 | 74 68 65 20 75 73 65 20 |ustrate |the use |
|00000330| 6f 66 20 62 61 63 6b 71 | 75 6f 74 65 2d 63 6f 6d |of backq|uote-com|
|00000340| 6d 61 20 63 6f 6d 62 69 | 6e 61 74 69 6f 6e 73 3a |ma combi|nations:|
|00000350| 0a 0a 2a 20 28 53 45 54 | 46 20 58 20 27 42 29 0a |..* (SET|F X 'B).|
|00000360| 42 0a 0a 2a 20 60 28 41 | 20 58 20 43 29 0a 28 41 |B..* `(A| X C).(A|
|00000370| 20 58 20 43 29 00 08 3b | 58 20 61 70 70 65 61 72 | X C)..;|X appear|
|00000380| 73 20 62 65 63 61 75 73 | 65 20 74 68 65 72 65 20 |s becaus|e there |
|00000390| 69 73 20 6e 6f 20 63 6f | 6d 6d 61 20 69 6e 20 66 |is no co|mma in f|
|000003a0| 72 6f 6e 74 2e 0a 0a 2a | 20 60 28 41 20 2c 58 20 |ront...*| `(A ,X |
|000003b0| 43 29 0a 28 41 20 42 20 | 43 29 00 08 3b 56 61 6c |C).(A B |C)..;Val|
|000003c0| 75 65 20 6f 66 20 58 20 | 61 70 70 65 61 72 73 20 |ue of X |appears |
|000003d0| 62 65 63 61 75 73 65 20 | 6f 66 20 74 68 65 20 63 |because |of the c|
|000003e0| 6f 6d 6d 61 20 69 6e 20 | 66 72 6f 6e 74 2e 0a 23 |omma in |front..#|
|000003f0| 0c 00 00 00 10 01 04 27 | 03 00 00 00 2e 27 05 00 |.......'|.....'..|
|00000400| 00 00 2e 07 05 53 4c 49 | 44 45 07 08 45 58 41 4d |.....SLI|DE..EXAM|
|00000410| 50 4c 45 53 23 03 00 00 | 00 04 07 0d 45 58 41 4d |PLES#...|....EXAM|
|00000420| 50 4c 45 2d 47 52 4f 55 | 50 26 3d 0a 41 73 73 75 |PLE-GROU|P&=.Assu|
|00000430| 6d 65 20 4d 41 52 4b 27 | 73 20 76 61 6c 75 65 20 |me MARK'|s value |
|00000440| 69 73 20 50 45 52 49 4f | 44 3b 20 61 73 73 75 6d |is PERIO|D; assum|
|00000450| 65 20 57 4f 52 44 27 73 | 20 76 61 6c 75 65 20 69 |e WORD's| value i|
|00000460| 73 20 4c 49 53 54 2e 0a | 23 03 00 00 00 10 01 26 |s LIST..|#......&|
|00000470| 17 2a 20 27 28 54 48 49 | 53 20 49 53 20 41 20 53 |.* '(THI|S IS A S|
|00000480| 45 4e 54 45 4e 43 45 29 | 23 01 00 00 00 10 01 26 |ENTENCE)|#......&|
|00000490| 14 28 54 48 49 53 20 49 | 53 20 41 20 53 45 4e 54 |.(THIS I|S A SENT|
|000004a0| 45 4e 43 45 29 23 01 00 | 00 00 10 01 27 04 00 00 |ENCE)#..|....'...|
|000004b0| 00 2e 07 0d 45 58 41 4d | 50 4c 45 2d 47 52 4f 55 |....EXAM|PLE-GROU|
|000004c0| 50 04 26 17 2a 20 60 28 | 54 48 49 53 20 49 53 20 |P.&.* `(|THIS IS |
|000004d0| 41 20 53 45 4e 54 45 4e | 43 45 29 23 01 00 00 00 |A SENTEN|CE)#....|
|000004e0| 10 01 26 14 28 54 48 49 | 53 20 49 53 20 41 20 53 |..&.(THI|S IS A S|
|000004f0| 45 4e 54 45 4e 43 45 29 | 23 01 00 00 00 10 01 27 |ENTENCE)|#......'|
|00000500| 04 00 00 00 2e 07 0d 45 | 58 41 4d 50 4c 45 2d 47 |.......E|XAMPLE-G|
|00000510| 52 4f 55 50 04 26 1c 2a | 20 60 28 54 48 49 53 20 |ROUP.&.*| `(THIS |
|00000520| 49 53 20 41 20 53 45 4e | 54 45 4e 43 45 20 4d 41 |IS A SEN|TENCE MA|
|00000530| 52 4b 29 23 01 00 00 00 | 10 01 26 19 28 54 48 49 |RK)#....|..&.(THI|
|00000540| 53 20 49 53 20 41 20 53 | 45 4e 54 45 4e 43 45 20 |S IS A S|ENTENCE |
|00000550| 4d 41 52 4b 29 23 01 00 | 00 00 10 01 27 04 00 00 |MARK)#..|....'...|
|00000560| 00 2e 07 0d 45 58 41 4d | 50 4c 45 2d 47 52 4f 55 |....EXAM|PLE-GROU|
|00000570| 50 04 26 1d 2a 20 60 28 | 54 48 49 53 20 49 53 20 |P.&.* `(|THIS IS |
|00000580| 41 20 53 45 4e 54 45 4e | 43 45 20 2c 4d 41 52 4b |A SENTEN|CE ,MARK|
|00000590| 29 23 01 00 00 00 10 01 | 26 1b 28 54 48 49 53 20 |)#......|&.(THIS |
|000005a0| 49 53 20 41 20 53 45 4e | 54 45 4e 43 45 20 50 45 |IS A SEN|TENCE PE|
|000005b0| 52 49 4f 44 29 23 01 00 | 00 00 10 01 27 04 00 00 |RIOD)#..|....'...|
|000005c0| 00 2e 07 0d 45 58 41 4d | 50 4c 45 2d 47 52 4f 55 |....EXAM|PLE-GROU|
|000005d0| 50 04 26 23 2a 20 60 28 | 54 48 49 53 20 2c 57 4f |P.&#* `(|THIS ,WO|
|000005e0| 52 44 20 49 53 20 41 20 | 53 45 4e 54 45 4e 43 45 |RD IS A |SENTENCE|
|000005f0| 20 2c 4d 41 52 4b 29 23 | 01 00 00 00 10 01 26 21 | ,MARK)#|......&!|
|00000600| 28 54 48 49 53 20 4c 49 | 53 54 20 49 53 20 41 20 |(THIS LI|ST IS A |
|00000610| 53 45 4e 54 45 4e 43 45 | 20 50 45 52 49 4f 44 29 |SENTENCE| PERIOD)|
|00000620| 0a 23 02 00 00 00 10 01 | 27 04 00 00 00 2e 04 10 |.#......|'.......|
|00000630| 05 27 05 00 00 00 2e 07 | 05 53 4c 49 44 45 07 0a |.'......|.SLIDE..|
|00000640| 45 58 50 4f 53 49 54 49 | 4f 4e 23 04 00 00 00 04 |EXPOSITI|ON#.....|
|00000650| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 25 47 01 00 |..EXPOSI|TION%G..|
|00000660| 00 0a 42 61 63 6b 71 75 | 6f 74 65 20 61 6c 73 6f |..Backqu|ote also|
|00000670| 20 61 6c 6c 6f 77 73 20 | 61 6e 6f 74 68 65 72 20 | allows |another |
|00000680| 66 6f 72 6d 20 6f 66 20 | 65 76 61 6c 75 61 74 69 |form of |evaluati|
|00000690| 6f 6e 20 73 69 67 6e 61 | 6c 65 64 20 62 79 20 61 |on signa|led by a|
|000006a0| 0a 63 6f 6d 6d 61 20 77 | 69 74 68 20 61 6e 20 61 |.comma w|ith an a|
|000006b0| 74 20 73 69 67 6e 2c 20 | 40 2c 20 72 61 74 68 65 |t sign, |@, rathe|
|000006c0| 72 20 74 68 61 6e 20 61 | 20 72 61 77 20 63 6f 6d |r than a| raw com|
|000006d0| 6d 61 2e 00 02 48 65 72 | 65 20 61 72 65 20 74 68 |ma...Her|e are th|
|000006e0| 65 0a 64 69 66 66 65 72 | 65 6e 63 65 73 3a 0a 0a |e.differ|ences:..|
|000006f0| 31 2e 20 54 68 65 20 2c | 40 20 65 78 70 72 65 73 |1. The ,|@ expres|
|00000700| 73 69 6f 6e 20 6d 75 73 | 74 20 62 65 20 61 6e 20 |sion mus|t be an |
|00000710| 65 6c 65 6d 65 6e 74 20 | 6f 66 20 61 20 6c 69 73 |element |of a lis|
|00000720| 74 2e 0a 0a 32 2e 20 54 | 68 65 20 76 61 6c 75 65 |t...2. T|he value|
|00000730| 20 6f 66 20 61 20 2c 40 | 20 65 78 70 72 65 73 73 | of a ,@| express|
|00000740| 69 6f 6e 20 6d 75 73 74 | 20 62 65 20 61 20 6c 69 |ion must| be a li|
|00000750| 73 74 2e 0a 0a 33 2e 20 | 54 68 65 20 2c 40 20 76 |st...3. |The ,@ v|
|00000760| 61 6c 75 65 20 6c 69 73 | 74 20 69 73 20 73 70 6c |alue lis|t is spl|
|00000770| 69 63 65 64 20 69 6e 74 | 6f 20 74 68 65 20 6c 69 |iced int|o the li|
|00000780| 73 74 20 74 68 61 74 20 | 74 68 65 0a 00 03 2c 40 |st that |the...,@|
|00000790| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 61 70 70 65 | express|ion appe|
|000007a0| 61 72 73 20 69 6e 2e 0a | 23 0c 00 00 00 10 01 04 |ars in..|#.......|
|000007b0| 27 03 00 00 00 2e 27 05 | 00 00 00 2e 07 05 53 4c |'.....'.|......SL|
|000007c0| 49 44 45 07 08 45 58 41 | 4d 50 4c 45 53 23 05 00 |IDE..EXA|MPLES#..|
|000007d0| 00 00 04 07 0d 45 58 41 | 4d 50 4c 45 2d 47 52 4f |.....EXA|MPLE-GRO|
|000007e0| 55 50 26 4c 41 73 73 75 | 6d 65 20 4d 41 52 4b 27 |UP&LAssu|me MARK'|
|000007f0| 73 20 76 61 6c 75 65 20 | 69 73 20 50 45 52 49 4f |s value |is PERIO|
|00000800| 44 3b 0a 61 73 73 75 6d | 65 20 57 4f 52 44 2d 4c |D;.assum|e WORD-L|
|00000810| 49 53 54 27 73 20 76 61 | 6c 75 65 20 69 73 20 28 |IST's va|lue is (|
|00000820| 47 52 4f 55 50 20 4f 46 | 20 57 4f 52 44 53 29 2e |GROUP OF| WORDS).|
|00000830| 23 02 00 00 00 10 01 26 | 28 2a 20 60 28 54 48 49 |#......&|(* `(THI|
|00000840| 53 20 2c 57 4f 52 44 2d | 4c 49 53 54 20 49 53 20 |S ,WORD-|LIST IS |
|00000850| 41 20 53 45 4e 54 45 4e | 43 45 20 2c 4d 41 52 4b |A SENTEN|CE ,MARK|
|00000860| 29 23 01 00 00 00 10 01 | 26 2c 28 54 48 49 53 20 |)#......|&,(THIS |
|00000870| 28 47 52 4f 55 50 20 4f | 46 20 57 4f 52 44 53 29 |(GROUP O|F WORDS)|
|00000880| 20 49 53 20 41 20 53 45 | 4e 54 45 4e 43 45 20 50 | IS A SE|NTENCE P|
|00000890| 45 52 49 4f 44 29 23 01 | 00 00 00 10 01 27 04 00 |ERIOD)#.|.....'..|
|000008a0| 00 00 2e 07 0d 45 58 41 | 4d 50 4c 45 2d 47 52 4f |.....EXA|MPLE-GRO|
|000008b0| 55 50 04 26 29 2a 20 60 | 28 54 48 49 53 20 2c 40 |UP.&)* `|(THIS ,@|
|000008c0| 57 4f 52 44 2d 4c 49 53 | 54 20 49 53 20 41 20 53 |WORD-LIS|T IS A S|
|000008d0| 45 4e 54 45 4e 43 45 20 | 2c 4d 41 52 4b 29 23 01 |ENTENCE |,MARK)#.|
|000008e0| 00 00 00 10 01 26 2b 28 | 54 48 49 53 20 47 52 4f |.....&+(|THIS GRO|
|000008f0| 55 50 20 4f 46 20 57 4f | 52 44 53 20 49 53 20 41 |UP OF WO|RDS IS A|
|00000900| 20 53 45 4e 54 45 4e 43 | 45 20 50 45 52 49 4f 44 | SENTENC|E PERIOD|
|00000910| 29 0a 23 02 00 00 00 10 | 01 27 04 00 00 00 2e 04 |).#.....|.'......|
|00000920| 10 02 27 05 00 00 00 2e | 07 05 53 4c 49 44 45 07 |..'.....|..SLIDE.|
|00000930| 0a 45 58 50 4f 53 49 54 | 49 4f 4e 23 06 00 00 00 |.EXPOSIT|ION#....|
|00000940| 04 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 25 b3 01 |...EXPOS|ITION%..|
|00000950| 00 00 0a 41 6d 6f 6e 67 | 20 6f 74 68 65 72 20 74 |...Among| other t|
|00000960| 68 69 6e 67 73 2c 20 62 | 61 63 6b 71 75 6f 74 65 |hings, b|ackquote|
|00000970| 20 74 65 6d 70 6c 61 74 | 65 73 20 6d 61 6b 65 20 | templat|es make |
|00000980| 69 74 20 65 61 73 69 65 | 72 20 74 6f 20 70 72 65 |it easie|r to pre|
|00000990| 70 61 72 65 0a 6d 61 74 | 65 72 69 61 6c 20 66 6f |pare.mat|erial fo|
|000009a0| 72 20 70 72 69 6e 74 69 | 6e 67 2e 00 02 4e 6f 74 |r printi|ng...Not|
|000009b0| 65 20 74 68 61 74 20 74 | 68 65 20 66 6f 6c 6c 6f |e that t|he follo|
|000009c0| 77 69 6e 67 20 50 52 49 | 4e 54 73 20 70 72 69 6e |wing PRI|NTs prin|
|000009d0| 74 20 74 68 65 0a 73 61 | 6d 65 20 74 68 69 6e 67 |t the.sa|me thing|
|000009e0| 3a 0a 0a 2a 20 28 50 52 | 49 4e 54 20 60 28 2c 57 |:..* (PR|INT `(,W|
|000009f0| 48 45 4e 20 49 20 53 45 | 45 20 54 48 41 54 20 2c |HEN I SE|E THAT ,|
|00000a00| 42 4c 4f 43 4b 20 49 53 | 20 2c 40 43 4f 4c 4f 52 |BLOCK IS| ,@COLOR|
|00000a10| 53 29 29 0a 0a 2a 20 28 | 50 52 49 4e 54 20 28 43 |S))..* (|PRINT (C|
|00000a20| 4f 4e 53 20 57 48 45 4e | 0a 00 0f 28 41 50 50 45 |ONS WHEN|...(APPE|
|00000a30| 4e 44 20 27 28 49 20 53 | 45 45 20 54 48 41 54 29 |ND '(I S|EE THAT)|
|00000a40| 20 0a 00 17 28 43 4f 4e | 53 20 42 4c 4f 43 4b 20 | ...(CON|S BLOCK |
|00000a50| 0a 00 1d 28 43 4f 4e 53 | 20 27 49 53 20 43 4f 4c |...(CONS| 'IS COL|
|00000a60| 4f 52 53 29 29 29 29 29 | 0a 0a 4f 6e 65 20 50 52 |ORS)))))|..One PR|
|00000a70| 49 4e 54 20 77 6f 72 6b | 73 20 77 69 74 68 20 61 |INT work|s with a|
|00000a80| 20 6e 69 63 65 20 62 61 | 63 6b 71 75 6f 74 65 20 | nice ba|ckquote |
|00000a90| 74 65 6d 70 6c 61 74 65 | 2e 00 02 54 68 65 20 6f |template|...The o|
|00000aa0| 74 68 65 72 0a 69 6e 76 | 6f 6c 76 65 73 20 61 20 |ther.inv|olves a |
|00000ab0| 73 74 72 75 67 67 6c 65 | 20 77 69 74 68 20 43 4f |struggle| with CO|
|00000ac0| 4e 53 20 61 6e 64 20 41 | 50 50 45 4e 44 2e 00 03 |NS and A|PPEND...|
|00000ad0| 54 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 20 69 |The diff|erence i|
|00000ae0| 73 0a 61 62 6f 75 74 20 | 61 20 79 65 61 72 27 73 |s.about |a year's|
|00000af0| 20 77 6f 72 74 68 20 6f | 66 20 64 65 62 75 67 67 | worth o|f debugg|
|00000b00| 69 6e 67 2e 0a 23 10 00 | 00 00 10 01 04 27 03 00 |ing..#..|.....'..|
|00000b10| 00 00 2e 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|00000b20| 07 08 45 58 41 4d 50 4c | 45 53 23 07 00 00 00 04 |..EXAMPL|ES#.....|
|00000b30| 07 0d 45 58 41 4d 50 4c | 45 2d 47 52 4f 55 50 26 |..EXAMPL|E-GROUP&|
|00000b40| 6b 41 73 73 75 6d 65 20 | 57 48 45 4e 27 73 20 76 |kAssume |WHEN's v|
|00000b50| 61 6c 75 65 20 69 73 20 | 4e 4f 57 3b 0a 61 73 73 |alue is |NOW;.ass|
|00000b60| 75 6d 65 20 42 4c 4f 43 | 4b 27 73 20 76 61 6c 75 |ume BLOC|K's valu|
|00000b70| 65 20 69 73 20 42 4c 4f | 43 4b 2d 38 38 3b 0a 61 |e is BLO|CK-88;.a|
|00000b80| 73 73 75 6d 65 20 43 4f | 4c 4f 52 53 27 20 76 61 |ssume CO|LORS' va|
|00000b90| 6c 75 65 20 69 73 20 28 | 52 45 44 20 57 48 49 54 |lue is (|RED WHIT|
|00000ba0| 45 20 41 4e 44 20 42 4c | 55 45 29 2e 23 03 00 00 |E AND BL|UE).#...|
|00000bb0| 00 10 01 26 30 2a 20 28 | 50 52 49 4e 54 20 60 28 |...&0* (|PRINT `(|
|00000bc0| 2c 57 48 45 4e 20 49 20 | 53 45 45 20 54 48 41 54 |,WHEN I |SEE THAT|
|00000bd0| 20 2c 42 4c 4f 43 4b 20 | 49 53 20 2c 40 43 4f 4c | ,BLOCK |IS ,@COL|
|00000be0| 4f 52 53 29 29 23 01 00 | 00 00 10 01 26 84 28 4e |ORS))#..|....&.(N|
|00000bf0| 4f 57 20 49 20 53 45 45 | 20 54 48 41 54 20 42 4c |OW I SEE| THAT BL|
|00000c00| 4f 43 4b 2d 38 38 20 49 | 53 20 52 45 44 20 57 48 |OCK-88 I|S RED WH|
|00000c10| 49 54 45 20 41 4e 44 20 | 42 4c 55 45 29 00 02 3b |ITE AND |BLUE)..;|
|00000c20| 4f 6e 63 65 20 66 6f 72 | 20 50 52 49 4e 54 2e 0a |Once for| PRINT..|
|00000c30| 28 4e 4f 57 20 49 20 53 | 45 45 20 54 48 41 54 20 |(NOW I S|EE THAT |
|00000c40| 42 4c 4f 43 4b 2d 38 38 | 20 49 53 20 52 45 44 20 |BLOCK-88| IS RED |
|00000c50| 57 48 49 54 45 20 41 4e | 44 20 42 4c 55 45 29 00 |WHITE AN|D BLUE).|
|00000c60| 02 3b 4f 6e 63 65 20 66 | 6f 72 20 76 61 6c 75 65 |.;Once f|or value|
|00000c70| 2e 0a 23 03 00 00 00 10 | 01 27 04 00 00 00 2e 04 |..#.....|.'......|
|00000c80| 10 01 27 05 00 00 00 2e | 07 05 53 4c 49 44 45 07 |..'.....|..SLIDE.|
|00000c90| 08 50 52 41 43 54 49 43 | 45 23 08 00 00 00 07 05 |.PRACTIC|E#......|
|00000ca0| 46 4f 52 4d 53 0b 01 01 | 54 04 10 02 26 2e 0a 50 |FORMS...|T...&..P|
|00000cb0| 72 61 63 74 69 63 65 20 | 75 73 69 6e 67 20 62 61 |ractice |using ba|
|00000cc0| 63 6b 71 75 6f 74 65 20 | 77 69 74 68 20 62 6f 74 |ckquote |with bot|
|00000cd0| 68 20 2c 20 61 6e 64 20 | 2c 40 2e 0a 23 03 00 00 |h , and |,@..#...|
|00000ce0| 00 10 01 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|00000cf0| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 23 09 00 00 |..EXPOSI|TION#...|
|00000d00| 00 04 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 25 71 |....EXPO|SITION%q|
|00000d10| 01 00 00 0a 52 65 6d 65 | 6d 62 65 72 20 2e 2e 2e |....Reme|mber ...|
|00000d20| 0a 0a 6f 00 04 49 46 20 | 79 6f 75 20 68 61 76 65 |..o..IF |you have|
|00000d30| 20 61 20 66 61 6e 63 79 | 20 6c 69 73 74 20 73 74 | a fancy| list st|
|00000d40| 72 75 63 74 75 72 65 20 | 74 6f 20 62 75 69 6c 64 |ructure |to build|
|00000d50| 2c 0a 00 05 41 4e 44 20 | 6d 6f 73 74 20 6f 66 20 |,...AND |most of |
|00000d60| 74 68 65 20 6c 69 73 74 | 20 73 74 72 75 63 74 75 |the list| structu|
|00000d70| 72 65 20 69 73 20 63 6f | 6e 73 74 61 6e 74 2c 0a |re is co|nstant,.|
|00000d80| 00 05 54 48 45 4e 20 75 | 73 65 20 62 61 63 6b 71 |..THEN u|se backq|
|00000d90| 75 6f 74 65 2e 0a 0a 6f | 00 04 49 46 20 79 6f 75 |uote...o|..IF you|
|00000da0| 20 77 61 6e 74 20 74 6f | 20 69 6e 73 65 72 74 20 | want to| insert |
|00000db0| 61 6e 20 65 78 70 72 65 | 73 73 69 6f 6e 20 69 6e |an expre|ssion in|
|00000dc0| 74 6f 20 61 20 62 61 63 | 6b 71 75 6f 74 65 20 66 |to a bac|kquote f|
|00000dd0| 6f 72 6d 2c 0a 00 05 54 | 48 45 4e 20 75 73 65 20 |orm,...T|HEN use |
|00000de0| 61 20 63 6f 6d 6d 61 3a | 00 02 2c 3c 65 78 70 72 |a comma:|..,<expr|
|00000df0| 65 73 73 69 6f 6e 20 74 | 6f 20 62 65 20 69 6e 73 |ession t|o be ins|
|00000e00| 65 72 74 65 64 3e 0a 0a | 6f 00 04 49 46 20 79 6f |erted>..|o..IF yo|
|00000e10| 75 20 77 61 6e 74 20 74 | 6f 20 73 70 6c 69 63 65 |u want t|o splice|
|00000e20| 20 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 20 69 | an expr|ession i|
|00000e30| 6e 74 6f 20 61 20 62 61 | 63 6b 71 75 6f 74 65 20 |nto a ba|ckquote |
|00000e40| 66 6f 72 6d 2c 0a 00 05 | 54 48 45 4e 20 75 73 65 |form,...|THEN use|
|00000e50| 20 61 20 63 6f 6d 6d 61 | 20 61 6e 64 20 61 74 20 | a comma| and at |
|00000e60| 73 69 67 6e 3a 00 02 2c | 40 3c 65 78 70 72 65 73 |sign:..,|@<expres|
|00000e70| 73 69 6f 6e 20 74 6f 20 | 62 65 20 73 70 6c 69 63 |sion to |be splic|
|00000e80| 65 64 3e 0a 23 0d 00 00 | 00 10 01 04 27 03 00 00 |ed>.#...|....'...|
|00000e90| 00 2e 27 05 00 00 00 2e | 27 09 00 00 00 04 27 05 |..'.....|'.....'.|
|00000ea0| 00 00 00 2e 04 10 02 04 | 10 03 36 0b 01 04 53 45 |........|..6...SE|
|00000eb0| 54 46 07 0a 47 45 54 2d | 4c 45 53 53 4f 4e 0b 01 |TF..GET-|LESSON..|
|00000ec0| 05 51 55 4f 54 45 07 0c | 54 4f 2d 54 52 41 4e 53 |.QUOTE..|TO-TRANS|
|00000ed0| 4c 41 54 45 04 10 02 04 | 10 02 0b 01 05 51 55 4f |LATE....|.....QUO|
|00000ee0| 54 45 07 06 4c 45 53 53 | 4f 4e 07 0c 54 4f 2d 54 |TE..LESS|ON..TO-T|
|00000ef0| 52 41 4e 53 4c 41 54 45 | 0b 01 04 4e 41 4d 45 07 |RANSLATE|...NAME.|
|00000f00| 0c 54 4f 2d 54 52 41 4e | 53 4c 41 54 45 04 10 01 |.TO-TRAN|SLATE...|
|00000f10| 07 04 4e 45 58 54 07 08 | 4f 50 54 49 4f 4e 41 4c |..NEXT..|OPTIONAL|
|00000f20| 04 10 01 07 08 50 52 45 | 56 49 4f 55 53 07 09 54 |.....PRE|VIOUS..T|
|00000f30| 45 4d 50 4c 41 54 45 53 | 04 10 01 07 0b 4c 45 53 |EMPLATES|.....LES|
|00000f40| 53 4f 4e 2d 4e 41 4d 45 | 26 17 54 72 61 6e 73 6c |SON-NAME|&.Transl|
|00000f50| 61 74 69 6e 67 20 77 69 | 74 68 20 4d 61 63 72 6f |ating wi|th Macro|
|00000f60| 73 04 10 01 04 10 08 07 | 05 53 4c 49 44 45 07 0a |s.......|.SLIDE..|
|00000f70| 45 58 50 4f 53 49 54 49 | 4f 4e 23 01 00 00 00 04 |EXPOSITI|ON#.....|
|00000f80| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 25 8e 01 00 |..EXPOSI|TION%...|
|00000f90| 00 0a 4e 6f 77 20 69 74 | 20 69 73 20 74 69 6d 65 |..Now it| is time|
|00000fa0| 20 74 6f 20 64 65 76 65 | 6c 6f 70 20 61 64 76 61 | to deve|lop adva|
|00000fb0| 6e 63 65 64 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |nced def|inition |
|00000fc0| 73 6b 69 6c 6c 73 2e 00 | 02 53 6f 20 66 61 72 2c |skills..|.So far,|
|00000fd0| 0a 79 6f 75 20 68 61 76 | 65 20 75 73 65 64 20 44 |.you hav|e used D|
|00000fe0| 45 46 55 4e 20 74 6f 20 | 64 65 66 69 6e 65 20 6f |EFUN to |define o|
|00000ff0| 72 64 69 6e 61 72 79 20 | 70 72 6f 63 65 64 75 72 |rdinary |procedur|
|00001000| 65 73 2c 20 77 68 69 63 | 68 20 61 63 63 65 70 74 |es, whic|h accept|
|00001010| 0a 61 72 67 75 6d 65 6e | 74 73 20 61 6e 64 20 70 |.argumen|ts and p|
|00001020| 72 6f 64 75 63 65 20 61 | 20 76 61 6c 75 65 2e 00 |roduce a| value..|
|00001030| 02 4e 6f 77 20 79 6f 75 | 20 77 69 6c 6c 20 75 73 |.Now you| will us|
|00001040| 65 20 44 45 46 4d 41 43 | 52 4f 20 74 6f 0a 64 65 |e DEFMAC|RO to.de|
|00001050| 66 69 6e 65 20 70 72 6f | 63 65 64 75 72 65 73 20 |fine pro|cedures |
|00001060| 63 61 6c 6c 65 64 20 6d | 61 63 72 6f 73 2c 20 77 |called m|acros, w|
|00001070| 68 69 63 68 20 64 69 66 | 66 65 72 20 66 72 6f 6d |hich dif|fer from|
|00001080| 20 6f 72 64 69 6e 61 72 | 79 0a 70 72 6f 63 65 64 | ordinar|y.proced|
|00001090| 75 72 65 73 20 69 6e 20 | 74 68 65 73 65 20 77 61 |ures in |these wa|
|000010a0| 79 73 3a 0a 0a 31 2e 20 | 4d 61 63 72 6f 73 20 64 |ys:..1. |Macros d|
|000010b0| 6f 20 6e 6f 74 20 65 76 | 61 6c 75 61 74 65 20 74 |o not ev|aluate t|
|000010c0| 68 65 69 72 20 61 72 67 | 75 6d 65 6e 74 73 2e 0a |heir arg|uments..|
|000010d0| 0a 32 2e 20 4d 61 63 72 | 6f 73 20 75 73 65 20 74 |.2. Macr|os use t|
|000010e0| 68 65 69 72 20 61 72 67 | 75 6d 65 6e 74 73 20 74 |heir arg|uments t|
|000010f0| 6f 20 70 72 6f 64 75 63 | 65 20 61 20 66 6f 72 6d |o produc|e a form|
|00001100| 2e 0a 0a 33 2e 20 4c 49 | 53 50 20 65 76 61 6c 75 |...3. LI|SP evalu|
|00001110| 61 74 65 73 20 74 68 65 | 20 66 6f 72 6d 2e 0a 23 |ates the| form..#|
|00001120| 0d 00 00 00 10 01 04 27 | 03 00 00 00 2e 27 05 00 |.......'|.....'..|
|00001130| 00 00 2e 07 05 53 4c 49 | 44 45 07 0a 45 58 50 4f |.....SLI|DE..EXPO|
|00001140| 53 49 54 49 4f 4e 23 02 | 00 00 00 04 07 0a 45 58 |SITION#.|......EX|
|00001150| 50 4f 53 49 54 49 4f 4e | 25 24 01 00 00 0a 4d 61 |POSITION|%$....Ma|
|00001160| 63 72 6f 73 20 61 72 65 | 20 70 6f 70 75 6c 61 72 |cros are| popular|
|00001170| 2c 20 69 6e 20 70 61 72 | 74 2c 20 62 65 63 61 75 |, in par|t, becau|
|00001180| 73 65 20 74 68 65 79 20 | 6d 61 6b 65 20 69 74 20 |se they |make it |
|00001190| 70 6f 73 73 69 62 6c 65 | 20 74 6f 0a 68 61 76 65 |possible| to.have|
|000011a0| 20 61 20 74 72 61 6e 73 | 70 61 72 65 6e 74 20 73 | a trans|parent s|
|000011b0| 79 6e 74 61 78 20 6f 6e | 20 74 68 65 20 73 75 72 |yntax on| the sur|
|000011c0| 66 61 63 65 20 61 6e 64 | 20 61 20 6c 65 67 61 6c |face and| a legal|
|000011d0| 20 4c 49 53 50 20 66 6f | 72 6d 20 69 6e 0a 74 68 | LISP fo|rm in.th|
|000011e0| 65 20 62 61 63 6b 67 72 | 6f 75 6e 64 2e 00 02 54 |e backgr|ound...T|
|000011f0| 68 65 20 6a 6f 62 20 6f | 66 20 74 68 65 20 6d 61 |he job o|f the ma|
|00001200| 63 72 6f 20 69 73 20 74 | 6f 20 74 72 61 6e 73 6c |cro is t|o transl|
|00001210| 61 74 65 20 66 72 6f 6d | 20 6f 6e 65 20 74 6f 0a |ate from| one to.|
|00001220| 61 6e 6f 74 68 65 72 20 | 62 65 66 6f 72 65 20 73 |another |before s|
|00001230| 74 61 72 74 69 6e 67 20 | 65 76 61 6c 75 61 74 69 |tarting |evaluati|
|00001240| 6f 6e 3a 0a 0a 54 72 61 | 6e 73 70 61 72 65 6e 74 |on:..Tra|nsparent|
|00001250| 20 66 6f 72 6d 20 c4 c4 | c4 c4 c4 10 20 4c 49 53 | form ..|.... LIS|
|00001260| 50 20 66 6f 72 6d 20 c4 | c4 c4 c4 c4 10 20 56 61 |P form .|..... Va|
|00001270| 6c 75 65 20 6f 66 20 4c | 49 53 50 20 66 6f 72 6d |lue of L|ISP form|
|00001280| 0a 23 08 00 00 00 10 01 | 04 27 03 00 00 00 2e 27 |.#......|.'.....'|
|00001290| 05 00 00 00 2e 07 05 53 | 4c 49 44 45 07 0a 45 58 |.......S|LIDE..EX|
|000012a0| 50 4f 53 49 54 49 4f 4e | 23 03 00 00 00 04 07 0a |POSITION|#.......|
|000012b0| 45 58 50 4f 53 49 54 49 | 4f 4e 25 3e 02 00 00 0a |EXPOSITI|ON%>....|
|000012c0| 54 6f 20 69 6c 6c 75 73 | 74 72 61 74 65 2c 20 73 |To illus|trate, s|
|000012d0| 75 70 70 6f 73 65 20 79 | 6f 75 20 66 69 6e 64 20 |uppose y|ou find |
|000012e0| 55 4e 4c 45 53 53 20 63 | 6f 6e 66 75 73 69 6e 67 |UNLESS c|onfusing|
|000012f0| 2e 00 02 59 6f 75 20 63 | 61 6e 20 6e 65 76 65 72 |...You c|an never|
|00001300| 0a 67 65 74 20 73 74 72 | 61 69 67 68 74 20 77 68 |.get str|aight wh|
|00001310| 65 6e 20 74 68 65 20 73 | 65 63 6f 6e 64 20 61 72 |en the s|econd ar|
|00001320| 67 75 6d 65 6e 74 20 69 | 73 20 74 6f 20 62 65 20 |gument i|s to be |
|00001330| 65 76 61 6c 75 61 74 65 | 64 20 61 6e 64 20 74 68 |evaluate|d and th|
|00001340| 61 74 0a 76 61 6c 75 65 | 20 72 65 74 75 72 6e 65 |at.value| returne|
|00001350| 64 20 61 73 20 74 68 65 | 20 76 61 6c 75 65 20 6f |d as the| value o|
|00001360| 66 20 55 4e 4c 45 53 53 | 2e 0a 0a 59 6f 75 20 77 |f UNLESS|...You w|
|00001370| 69 73 68 20 74 68 61 74 | 20 74 68 65 20 64 65 73 |ish that| the des|
|00001380| 69 67 6e 65 72 73 20 6f | 66 20 43 6f 6d 6d 6f 6e |igners o|f Common|
|00001390| 20 4c 49 53 50 20 68 61 | 64 20 6e 61 6d 65 64 20 | LISP ha|d named |
|000013a0| 74 68 65 20 55 4e 4c 45 | 53 53 0a 70 72 69 6d 69 |the UNLE|SS.primi|
|000013b0| 74 69 76 65 20 57 48 45 | 4e 2d 4e 49 4c 20 69 6e |tive WHE|N-NIL in|
|000013c0| 73 74 65 61 64 2e 00 02 | 43 6f 6e 73 65 71 75 65 |stead...|Conseque|
|000013d0| 6e 74 6c 79 2c 20 79 6f | 75 20 64 65 63 69 64 65 |ntly, yo|u decide|
|000013e0| 20 74 6f 20 64 65 66 69 | 6e 65 0a 57 48 45 4e 2d | to defi|ne.WHEN-|
|000013f0| 4e 49 4c 20 79 6f 75 72 | 73 65 6c 66 2e 0a 0a 57 |NIL your|self...W|
|00001400| 48 45 4e 2d 4e 49 4c 20 | 69 73 20 74 6f 20 72 65 |HEN-NIL |is to re|
|00001410| 74 75 72 6e 20 74 68 65 | 20 76 61 6c 75 65 20 6f |turn the| value o|
|00001420| 66 20 69 74 73 20 73 65 | 63 6f 6e 64 20 61 72 67 |f its se|cond arg|
|00001430| 75 6d 65 6e 74 20 77 68 | 65 6e 20 69 74 73 0a 66 |ument wh|en its.f|
|00001440| 69 72 73 74 20 61 72 67 | 75 6d 65 6e 74 20 65 76 |irst arg|ument ev|
|00001450| 61 6c 75 61 74 65 73 20 | 74 6f 20 4e 49 4c 2e 00 |aluates |to NIL..|
|00001460| 02 53 61 69 64 20 61 6e | 6f 74 68 65 72 20 77 61 |.Said an|other wa|
|00001470| 79 2c 20 57 48 45 4e 2d | 4e 49 4c 0a 74 72 69 67 |y, WHEN-|NIL.trig|
|00001480| 67 65 72 73 20 6f 6e 20 | 73 65 65 69 6e 67 20 4e |gers on |seeing N|
|00001490| 49 4c 2c 20 69 6e 20 63 | 6f 6e 74 72 61 73 74 20 |IL, in c|ontrast |
|000014a0| 74 6f 20 57 48 45 4e 2c | 20 77 68 69 63 68 20 74 |to WHEN,| which t|
|000014b0| 72 69 67 67 65 72 73 20 | 6f 6e 0a 73 65 65 69 6e |riggers |on.seein|
|000014c0| 67 20 61 6e 74 68 69 6e | 67 20 65 6c 73 65 3a 0a |g anthin|g else:.|
|000014d0| 0a 28 57 48 45 4e 2d 4e | 49 4c 20 3c 74 72 69 67 |.(WHEN-N|IL <trig|
|000014e0| 67 65 72 3e 20 3c 76 61 | 6c 75 65 20 69 66 20 74 |ger> <va|lue if t|
|000014f0| 72 69 67 67 65 72 20 4e | 49 4c 3e 29 0a 23 10 00 |rigger N|IL>).#..|
|00001500| 00 00 10 01 04 27 03 00 | 00 00 2e 27 05 00 00 00 |.....'..|...'....|
|00001510| 2e 07 05 53 4c 49 44 45 | 07 0a 45 58 50 4f 53 49 |...SLIDE|..EXPOSI|
|00001520| 54 49 4f 4e 23 04 00 00 | 00 04 07 0a 45 58 50 4f |TION#...|....EXPO|
|00001530| 53 49 54 49 4f 4e 25 52 | 02 00 00 0a 49 6d 70 6f |SITION%R|....Impo|
|00001540| 72 74 61 6e 74 6c 79 2c | 20 74 68 65 20 73 65 63 |rtantly,| the sec|
|00001550| 6f 6e 64 20 61 72 67 75 | 6d 65 6e 74 20 74 6f 20 |ond argu|ment to |
|00001560| 57 48 45 4e 2d 4e 49 4c | 20 69 73 20 74 6f 20 62 |WHEN-NIL| is to b|
|00001570| 65 20 65 76 61 6c 75 61 | 74 65 64 0a 6f 6e 6c 79 |e evalua|ted.only|
|00001580| 20 69 66 20 69 74 20 69 | 73 20 74 6f 20 62 65 20 | if it i|s to be |
|00001590| 72 65 74 75 72 6e 65 64 | 2e 00 02 48 65 72 65 20 |returned|...Here |
|000015a0| 69 73 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 73 68 |is an ex|ample sh|
|000015b0| 6f 77 69 6e 67 20 77 68 | 79 3a 0a 0a 28 57 48 45 |owing wh|y:..(WHE|
|000015c0| 4e 2d 4e 49 4c 20 49 4e | 50 55 54 20 28 53 45 54 |N-NIL IN|PUT (SET|
|000015d0| 46 20 4f 55 54 50 55 54 | 20 27 46 41 4c 53 45 29 |F OUTPUT| 'FALSE)|
|000015e0| 29 0a 0a 59 6f 75 20 69 | 6e 74 65 6e 64 20 74 68 |)..You i|ntend th|
|000015f0| 61 74 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |at the v|alue of |
|00001600| 4f 55 54 50 55 54 20 62 | 65 63 6f 6d 65 73 20 46 |OUTPUT b|ecomes F|
|00001610| 41 4c 53 45 20 6f 6e 6c | 79 20 77 68 65 6e 20 74 |ALSE onl|y when t|
|00001620| 68 65 0a 76 61 6c 75 65 | 20 6f 66 20 49 4e 50 55 |he.value| of INPU|
|00001630| 54 20 69 73 20 4e 49 4c | 2e 00 02 42 75 74 20 73 |T is NIL|...But s|
|00001640| 75 70 70 6f 73 65 20 79 | 6f 75 20 64 65 66 69 6e |uppose y|ou defin|
|00001650| 65 64 20 57 48 45 4e 2d | 4e 49 4c 20 74 68 69 73 |ed WHEN-|NIL this|
|00001660| 0a 77 61 79 3a 0a 0a 28 | 44 45 46 55 4e 20 57 48 |.way:..(|DEFUN WH|
|00001670| 45 4e 2d 4e 49 4c 20 28 | 54 52 49 47 47 45 52 20 |EN-NIL (|TRIGGER |
|00001680| 52 45 53 55 4c 54 29 00 | 02 3b 42 75 67 21 0a 00 |RESULT).|.;Bug!..|
|00001690| 03 28 49 46 20 54 52 49 | 47 47 45 52 20 4e 49 4c |.(IF TRI|GGER NIL|
|000016a0| 20 52 45 53 55 4c 54 29 | 29 0a 0a 54 68 69 73 20 | RESULT)|)..This |
|000016b0| 62 75 67 67 65 64 20 76 | 65 72 73 69 6f 6e 20 6f |bugged v|ersion o|
|000016c0| 66 20 57 48 45 4e 2d 4e | 49 4c 20 65 76 61 6c 75 |f WHEN-N|IL evalu|
|000016d0| 61 74 65 73 20 62 6f 74 | 68 20 69 74 73 20 61 72 |ates bot|h its ar|
|000016e0| 67 75 6d 65 6e 74 73 2c | 0a 77 68 65 74 68 65 72 |guments,|.whether|
|000016f0| 20 6f 72 20 6e 6f 74 20 | 74 68 65 20 76 61 6c 75 | or not |the valu|
|00001700| 65 20 6f 66 20 74 68 65 | 20 66 69 72 73 74 20 61 |e of the| first a|
|00001710| 72 67 75 6d 65 6e 74 20 | 69 73 20 54 20 6f 72 20 |rgument |is T or |
|00001720| 4e 49 4c 2e 20 0a 43 6f | 6e 73 65 71 75 65 6e 74 |NIL. .Co|nsequent|
|00001730| 6c 79 2c 20 74 68 65 20 | 66 6f 72 6d 20 28 57 48 |ly, the |form (WH|
|00001740| 45 4e 2d 4e 49 4c 20 49 | 4e 50 55 54 20 28 53 45 |EN-NIL I|NPUT (SE|
|00001750| 54 46 20 4f 55 54 50 55 | 54 20 27 46 41 4c 53 45 |TF OUTPU|T 'FALSE|
|00001760| 29 29 0a 61 6c 77 61 79 | 73 20 73 65 74 73 20 74 |)).alway|s sets t|
|00001770| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 4f 55 54 50 |he value| of OUTP|
|00001780| 55 54 20 74 6f 20 46 41 | 4c 53 45 2e 0a 23 12 00 |UT to FA|LSE..#..|
|00001790| 00 00 10 01 04 27 03 00 | 00 00 2e 27 05 00 00 00 |.....'..|...'....|
|000017a0| 2e 07 05 53 4c 49 44 45 | 07 0a 45 58 50 4f 53 49 |...SLIDE|..EXPOSI|
|000017b0| 54 49 4f 4e 23 05 00 00 | 00 04 07 0a 45 58 50 4f |TION#...|....EXPO|
|000017c0| 53 49 54 49 4f 4e 26 bd | 0a 57 48 45 4e 2d 4e 49 |SITION&.|.WHEN-NI|
|000017d0| 4c 20 6d 75 73 74 20 62 | 65 20 61 20 6d 61 63 72 |L must b|e a macr|
|000017e0| 6f 2c 20 62 65 63 61 75 | 73 65 20 57 48 45 4e 2d |o, becau|se WHEN-|
|000017f0| 4e 49 4c 20 69 73 20 74 | 6f 20 65 76 61 6c 75 61 |NIL is t|o evalua|
|00001800| 74 65 20 69 74 73 0a 73 | 65 63 6f 6e 64 20 61 72 |te its.s|econd ar|
|00001810| 67 75 6d 65 6e 74 20 6f | 6e 6c 79 20 77 68 65 6e |gument o|nly when|
|00001820| 20 74 68 65 20 66 69 72 | 73 74 20 61 72 67 75 6d | the fir|st argum|
|00001830| 65 6e 74 20 65 76 61 6c | 75 61 74 65 73 20 74 6f |ent eval|uates to|
|00001840| 20 4e 49 4c 2c 0a 0a 54 | 72 61 6e 73 70 61 72 65 | NIL,..T|ranspare|
|00001850| 6e 74 20 57 48 45 4e 2d | 4e 49 4c 20 66 6f 72 6d |nt WHEN-|NIL form|
|00001860| 20 c4 c4 c4 10 20 49 46 | 20 66 6f 72 6d 20 c4 c4 | .... IF| form ..|
|00001870| c4 10 20 56 61 6c 75 65 | 20 6f 66 20 49 46 20 66 |.. Value| of IF f|
|00001880| 6f 72 6d 2e 0a 23 06 00 | 00 00 10 01 04 27 03 00 |orm..#..|.....'..|
|00001890| 00 00 2e 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|000018a0| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 23 06 00 00 |..EXPOSI|TION#...|
|000018b0| 00 04 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 25 9e |....EXPO|SITION%.|
|000018c0| 01 00 00 0a 48 65 72 65 | 20 69 73 20 77 68 61 74 |....Here| is what|
|000018d0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 68 61 70 | you wan|t to hap|
|000018e0| 70 65 6e 20 77 68 65 6e | 20 4c 49 53 50 20 65 6e |pen when| LISP en|
|000018f0| 63 6f 75 6e 74 65 72 73 | 20 74 68 65 20 6d 61 63 |counters| the mac|
|00001900| 72 6f 0a 66 6f 72 6d 20 | 28 57 48 45 4e 2d 4e 49 |ro.form |(WHEN-NI|
|00001910| 4c 20 49 4e 50 55 54 20 | 28 53 45 54 46 20 4f 55 |L INPUT |(SETF OU|
|00001920| 54 50 55 54 20 27 46 41 | 4c 53 45 29 29 2c 20 61 |TPUT 'FA|LSE)), a|
|00001930| 73 73 75 6d 69 6e 67 20 | 74 68 61 74 20 74 68 65 |ssuming |that the|
|00001940| 0a 76 61 6c 75 65 20 6f | 66 20 49 4e 50 55 54 20 |.value o|f INPUT |
|00001950| 69 73 20 4e 49 4c 3a 0a | 0a 28 57 48 45 4e 2d 4e |is NIL:.|.(WHEN-N|
|00001960| 49 4c 20 49 4e 50 55 54 | 20 28 53 45 54 46 20 4f |IL INPUT| (SETF O|
|00001970| 55 54 50 55 54 20 27 46 | 41 4c 53 45 29 29 0a 00 |UTPUT 'F|ALSE))..|
|00001980| 02 b3 0a 00 02 b3 00 14 | 4d 61 63 72 6f 20 74 72 |........|Macro tr|
|00001990| 61 6e 73 6c 61 74 65 73 | 20 6f 6c 64 20 66 72 6f |anslates| old fro|
|000019a0| 6d 20 74 6f 20 6e 65 77 | 20 66 6f 72 6d 2e 0a 00 |m to new| form...|
|000019b0| 02 1f 0a 28 49 46 20 49 | 4e 50 55 54 20 4e 49 4c |...(IF I|NPUT NIL|
|000019c0| 20 28 53 45 54 46 20 4f | 55 54 50 55 54 20 27 46 | (SETF O|UTPUT 'F|
|000019d0| 41 4c 53 45 29 29 0a 00 | 02 b3 0a 00 02 b3 00 14 |ALSE))..|........|
|000019e0| 4c 49 53 50 20 65 76 61 | 6c 75 61 74 65 73 20 6e |LISP eva|luates n|
|000019f0| 65 77 20 66 6f 72 6d 3b | 20 74 68 69 72 64 20 61 |ew form;| third a|
|00001a00| 72 67 75 6d 65 6e 74 20 | 69 73 0a 00 02 b3 00 14 |rgument |is......|
|00001a10| 65 76 61 6c 75 61 74 65 | 64 20 62 65 63 61 75 73 |evaluate|d becaus|
|00001a20| 65 20 66 69 72 73 74 27 | 73 20 76 61 6c 75 65 20 |e first'|s value |
|00001a30| 69 73 20 4e 49 4c 2e 0a | 00 02 1f 0a 46 41 4c 53 |is NIL..|....FALS|
|00001a40| 45 00 12 4f 55 54 50 55 | 54 27 73 20 76 61 6c 75 |E..OUTPU|T's valu|
|00001a50| 65 20 69 73 20 61 6c 73 | 6f 20 46 41 4c 53 45 2e |e is als|o FALSE.|
|00001a60| 0a 23 10 00 00 00 10 01 | 04 27 03 00 00 00 2e 27 |.#......|.'.....'|
|00001a70| 05 00 00 00 2e 07 05 53 | 4c 49 44 45 07 0a 45 58 |.......S|LIDE..EX|
|00001a80| 50 4f 53 49 54 49 4f 4e | 23 07 00 00 00 04 07 0a |POSITION|#.......|
|00001a90| 45 58 50 4f 53 49 54 49 | 4f 4e 25 d6 01 00 00 0a |EXPOSITI|ON%.....|
|00001aa0| 48 65 72 65 20 69 73 20 | 77 68 61 74 20 79 6f 75 |Here is |what you|
|00001ab0| 20 77 61 6e 74 20 74 6f | 20 68 61 70 70 65 6e 20 | want to| happen |
|00001ac0| 77 68 65 6e 20 4c 49 53 | 50 20 65 6e 63 6f 75 6e |when LIS|P encoun|
|00001ad0| 74 65 72 73 20 74 68 65 | 20 6d 61 63 72 6f 0a 66 |ters the| macro.f|
|00001ae0| 6f 72 6d 20 28 57 48 45 | 4e 2d 4e 49 4c 20 49 4e |orm (WHE|N-NIL IN|
|00001af0| 50 55 54 20 28 53 45 54 | 46 20 4f 55 54 50 55 54 |PUT (SET|F OUTPUT|
|00001b00| 20 27 46 41 4c 53 45 29 | 29 2c 20 61 73 73 75 6d | 'FALSE)|), assum|
|00001b10| 69 6e 67 20 74 68 61 74 | 20 74 68 65 0a 76 61 6c |ing that| the.val|
|00001b20| 75 65 20 6f 66 20 49 4e | 50 55 54 20 69 73 20 54 |ue of IN|PUT is T|
|00001b30| 3a 0a 0a 28 57 48 45 4e | 2d 4e 49 4c 20 49 4e 50 |:..(WHEN|-NIL INP|
|00001b40| 55 54 20 28 53 45 54 46 | 20 4f 55 54 50 55 54 20 |UT (SETF| OUTPUT |
|00001b50| 27 46 41 4c 53 45 29 29 | 0a 00 02 b3 0a 00 02 b3 |'FALSE))|........|
|00001b60| 00 14 4d 61 63 72 6f 20 | 74 72 61 6e 73 6c 61 74 |..Macro |translat|
|00001b70| 65 73 20 6f 6c 64 20 66 | 72 6f 6d 20 74 6f 20 6e |es old f|rom to n|
|00001b80| 65 77 20 66 6f 72 6d 2e | 0a 00 02 1f 0a 28 49 46 |ew form.|.....(IF|
|00001b90| 20 49 4e 50 55 54 20 4e | 49 4c 20 28 53 45 54 46 | INPUT N|IL (SETF|
|00001ba0| 20 4f 55 54 50 55 54 20 | 27 46 41 4c 53 45 29 29 | OUTPUT |'FALSE))|
|00001bb0| 0a 00 02 b3 0a 00 02 b3 | 00 14 4c 49 53 50 20 65 |........|..LISP e|
|00001bc0| 76 61 6c 75 61 74 65 73 | 20 6e 65 77 20 66 6f 72 |valuates| new for|
|00001bd0| 6d 3b 20 74 68 69 72 64 | 20 61 72 67 75 6d 65 6e |m; third| argumen|
|00001be0| 74 20 69 73 0a 00 02 b3 | 00 14 4e 4f 54 20 65 76 |t is....|..NOT ev|
|00001bf0| 61 6c 75 61 74 65 64 20 | 62 65 63 61 75 73 65 20 |aluated |because |
|00001c00| 66 69 72 73 74 27 73 20 | 76 61 6c 75 65 20 69 73 |first's |value is|
|00001c10| 20 54 2e 0a 00 02 1f 0a | 4e 49 4c 00 14 4f 55 54 | T......|NIL..OUT|
|00001c20| 50 55 54 27 73 20 76 61 | 6c 75 65 20 72 65 6d 61 |PUT's va|lue rema|
|00001c30| 69 6e 73 20 75 6e 63 68 | 61 6e 67 65 64 2e 0a 0a |ins unch|anged...|
|00001c40| 53 65 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |See the |followin|
|00001c50| 67 20 64 65 74 61 69 6c | 73 20 73 6c 69 64 65 20 |g detail|s slide |
|00001c60| 66 6f 72 20 61 6e 6f 74 | 68 65 72 20 65 78 61 6d |for anot|her exam|
|00001c70| 70 6c 65 2e 0a 23 12 00 | 00 00 10 01 07 05 53 4c |ple..#..|......SL|
|00001c80| 49 44 45 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 23 |IDE..EXP|OSITION#|
|00001c90| 01 00 00 00 04 07 0a 45 | 58 50 4f 53 49 54 49 4f |.......E|XPOSITIO|
|00001ca0| 4e 25 a6 02 00 00 0a 53 | 6f 6d 65 20 4c 49 53 50 |N%.....S|ome LISP|
|00001cb0| 73 2c 20 62 75 74 20 6e | 6f 74 20 43 6f 6d 6d 6f |s, but n|ot Commo|
|00001cc0| 6e 20 4c 49 53 50 2c 20 | 68 61 76 65 20 61 20 70 |n LISP, |have a p|
|00001cd0| 72 69 6d 69 74 69 76 65 | 20 63 61 6c 6c 65 64 20 |rimitive| called |
|00001ce0| 4c 4f 4f 50 0a 74 68 61 | 74 20 70 72 6f 76 69 64 |LOOP.tha|t provid|
|00001cf0| 65 73 20 61 20 63 6c 65 | 61 72 2c 20 74 72 61 6e |es a cle|ar, tran|
|00001d00| 73 70 61 72 65 6e 74 20 | 77 61 79 20 74 6f 20 73 |sparent |way to s|
|00001d10| 70 65 63 69 66 79 20 69 | 74 65 72 61 74 69 6f 6e |pecify i|teration|
|00001d20| 2e 00 02 46 6f 72 0a 65 | 78 61 6d 70 6c 65 2c 20 |...For.e|xample, |
|00001d30| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 4c 4f |the foll|owing LO|
|00001d40| 4f 50 20 66 6f 72 6d 20 | 69 6e 73 74 72 75 63 74 |OP form |instruct|
|00001d50| 73 20 4c 49 53 50 20 74 | 6f 20 6c 6f 6f 6b 20 61 |s LISP t|o look a|
|00001d60| 74 20 65 61 63 68 0a 65 | 6c 65 6d 65 6e 74 20 69 |t each.e|lement i|
|00001d70| 6e 20 61 20 67 69 76 65 | 6e 20 6c 69 73 74 20 61 |n a give|n list a|
|00001d80| 6e 64 20 74 6f 20 6b 65 | 65 70 20 6f 6e 6c 79 20 |nd to ke|ep only |
|00001d90| 74 68 6f 73 65 20 74 68 | 61 74 20 61 72 65 20 6e |those th|at are n|
|00001da0| 75 6d 62 65 72 73 2e 0a | 0a 28 4c 4f 4f 50 20 45 |umbers..|.(LOOP E|
|00001db0| 4c 45 4d 45 4e 54 20 49 | 4e 20 49 4e 50 55 54 20 |LEMENT I|N INPUT |
|00001dc0| 41 43 43 55 4d 55 4c 41 | 54 45 20 45 4c 45 4d 45 |ACCUMULA|TE ELEME|
|00001dd0| 4e 54 20 57 48 45 4e 20 | 28 4e 55 4d 42 45 52 50 |NT WHEN |(NUMBERP|
|00001de0| 20 45 4c 45 4d 45 4e 54 | 29 29 0a 0a 54 68 69 73 | ELEMENT|))..This|
|00001df0| 20 4c 4f 4f 50 20 66 6f | 72 6d 20 73 70 65 63 69 | LOOP fo|rm speci|
|00001e00| 66 69 65 73 20 74 68 65 | 20 73 61 6d 65 20 69 74 |fies the| same it|
|00001e10| 65 72 61 74 69 6f 6e 20 | 61 73 20 74 68 65 20 66 |eration |as the f|
|00001e20| 6f 6c 6c 6f 77 69 6e 67 | 20 44 4f 3a 0a 0a 28 44 |ollowing| DO:..(D|
|00001e30| 4f 20 28 28 4c 20 49 4e | 50 55 54 20 28 52 45 53 |O ((L IN|PUT (RES|
|00001e40| 54 20 4c 29 29 0a 00 05 | 28 52 45 53 55 4c 54 20 |T L))...|(RESULT |
|00001e50| 4e 49 4c 29 29 0a 00 04 | 28 28 4e 55 4c 4c 20 4c |NIL))...|((NULL L|
|00001e60| 29 20 28 52 45 56 45 52 | 53 45 20 52 45 53 55 4c |) (REVER|SE RESUL|
|00001e70| 54 29 29 0a 00 02 28 57 | 48 45 4e 20 28 4e 55 4d |T))...(W|HEN (NUM|
|00001e80| 42 45 52 50 20 28 46 49 | 52 53 54 20 4c 29 29 0a |BERP (FI|RST L)).|
|00001e90| 00 08 28 53 45 54 46 20 | 52 45 53 55 4c 54 20 28 |..(SETF |RESULT (|
|00001ea0| 43 4f 4e 53 20 28 46 49 | 52 53 54 20 4c 29 20 52 |CONS (FI|RST L) R|
|00001eb0| 45 53 55 4c 54 29 29 29 | 29 0a 0a 4c 4f 4f 50 20 |ESULT)))|)..LOOP |
|00001ec0| 69 73 20 67 65 6e 65 72 | 61 6c 6c 79 20 69 6d 70 |is gener|ally imp|
|00001ed0| 6c 65 6d 65 6e 74 65 64 | 20 61 73 20 61 20 6d 61 |lemented| as a ma|
|00001ee0| 63 72 6f 20 74 68 61 74 | 20 74 72 61 6e 73 6c 61 |cro that| transla|
|00001ef0| 74 65 73 20 4c 4f 4f 50 | 0a 66 6f 72 6d 73 20 69 |tes LOOP|.forms i|
|00001f00| 6e 74 6f 20 44 4f 20 66 | 6f 72 6d 73 3a 0a 0a 54 |nto DO f|orms:..T|
|00001f10| 72 61 6e 73 70 61 72 65 | 6e 74 20 4c 4f 4f 50 20 |ranspare|nt LOOP |
|00001f20| 66 6f 72 6d 20 c4 c4 c4 | c4 c4 10 20 44 4f 20 66 |form ...|... DO f|
|00001f30| 6f 72 6d 20 c4 c4 c4 c4 | c4 10 20 56 61 6c 75 65 |orm ....|.. Value|
|00001f40| 20 6f 66 20 44 4f 20 66 | 6f 72 6d 0a 23 15 00 00 | of DO f|orm.#...|
|00001f50| 00 10 01 04 27 03 00 00 | 00 2e 27 05 00 00 00 2e |....'...|..'.....|
|00001f60| 27 01 00 00 00 27 03 00 | 00 00 2e 27 05 00 00 00 |'....'..|...'....|
|00001f70| 2e 07 05 53 4c 49 44 45 | 07 0a 45 58 50 4f 53 49 |...SLIDE|..EXPOSI|
|00001f80| 54 49 4f 4e 23 08 00 00 | 00 04 07 0a 45 58 50 4f |TION#...|....EXPO|
|00001f90| 53 49 54 49 4f 4e 25 1c | 02 00 00 0a 48 65 72 65 |SITION%.|....Here|
|00001fa0| 20 69 73 20 77 68 61 74 | 20 61 20 6d 61 63 72 6f | is what| a macro|
|00001fb0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 6c 6f 6f 6b | definit|ion look|
|00001fc0| 73 20 6c 69 6b 65 3a 0a | 0a 28 44 45 46 4d 41 43 |s like:.|.(DEFMAC|
|00001fd0| 52 4f 20 3c 6d 61 63 72 | 6f 20 6e 61 6d 65 3e 0a |RO <macr|o name>.|
|00001fe0| 00 02 28 3c 70 61 72 61 | 6d 65 74 65 72 20 31 3e |..(<para|meter 1>|
|00001ff0| 20 3c 70 61 72 61 6d 65 | 74 65 72 20 32 3e 20 2e | <parame|ter 2> .|
|00002000| 2e 2e 20 3c 70 61 72 61 | 6d 65 74 65 72 20 6e 3e |.. <para|meter n>|
|00002010| 29 0a 00 02 3c 66 6f 72 | 6d 20 31 3e 20 3c 66 6f |)...<for|m 1> <fo|
|00002020| 72 6d 20 32 3e 20 2e 2e | 2e 20 3c 66 6f 72 6d 20 |rm 2> ..|. <form |
|00002030| 6e 3e 29 0a 0a 54 68 65 | 20 6f 6e 6c 79 20 64 69 |n>)..The| only di|
|00002040| 66 66 65 72 65 6e 63 65 | 20 62 65 74 77 65 65 6e |fference| between|
|00002050| 20 74 68 65 20 41 50 50 | 45 41 52 41 4e 43 45 20 | the APP|EARANCE |
|00002060| 6f 66 20 61 20 6d 61 63 | 72 6f 20 64 65 66 69 6e |of a mac|ro defin|
|00002070| 69 74 69 6f 6e 0a 61 6e | 64 20 61 6e 20 6f 72 64 |ition.an|d an ord|
|00002080| 69 6e 61 72 61 72 79 20 | 64 65 66 69 6e 69 74 69 |inarary |definiti|
|00002090| 6f 6e 20 69 73 20 74 68 | 61 74 20 6f 6e 65 20 75 |on is th|at one u|
|000020a0| 73 65 73 20 44 45 46 4d | 41 43 52 4f 20 61 6e 64 |ses DEFM|ACRO and|
|000020b0| 20 74 68 65 0a 6f 74 68 | 65 72 20 75 73 65 73 20 | the.oth|er uses |
|000020c0| 44 45 46 55 4e 2e 00 02 | 48 65 72 65 20 69 73 20 |DEFUN...|Here is |
|000020d0| 68 6f 77 20 74 6f 20 64 | 65 66 69 6e 65 20 57 48 |how to d|efine WH|
|000020e0| 45 4e 2d 4e 49 4c 20 61 | 73 20 61 20 6d 61 63 72 |EN-NIL a|s a macr|
|000020f0| 6f 3a 0a 0a 28 44 45 46 | 4d 41 43 52 4f 20 57 48 |o:..(DEF|MACRO WH|
|00002100| 45 4e 2d 4e 49 4c 20 28 | 54 52 49 47 47 45 52 20 |EN-NIL (|TRIGGER |
|00002110| 52 45 53 55 4c 54 29 00 | 04 3b 4e 61 6d 65 20 61 |RESULT).|.;Name a|
|00002120| 6e 64 20 70 61 72 61 6d | 65 74 65 72 73 2e 0a 00 |nd param|eters...|
|00002130| 02 28 4c 49 53 54 20 27 | 49 46 00 1c 3b 42 6f 64 |.(LIST '|IF..;Bod|
|00002140| 79 2e 0a 00 08 54 52 49 | 47 47 45 52 0a 00 08 4e |y....TRI|GGER...N|
|00002150| 49 4c 0a 00 08 52 45 53 | 55 4c 54 29 29 0a 0a 57 |IL...RES|ULT))..W|
|00002160| 68 65 6e 20 75 73 65 64 | 2c 20 74 68 65 20 6c 69 |hen used|, the li|
|00002170| 73 74 69 6e 67 20 61 6e | 64 20 71 75 6f 74 69 6e |sting an|d quotin|
|00002180| 67 20 70 72 6f 64 75 63 | 65 20 74 68 65 20 64 65 |g produc|e the de|
|00002190| 73 69 72 65 64 20 66 6f | 72 6d 2c 0a 77 68 69 63 |sired fo|rm,.whic|
|000021a0| 68 20 4c 49 53 50 20 74 | 68 65 6e 20 65 76 61 6c |h LISP t|hen eval|
|000021b0| 75 61 74 65 73 2e 0a 23 | 14 00 00 00 10 01 04 27 |uates..#|.......'|
|000021c0| 03 00 00 00 2e 27 05 00 | 00 00 2e 07 05 53 4c 49 |.....'..|.....SLI|
|000021d0| 44 45 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 23 09 |DE..EXPO|SITION#.|
|000021e0| 00 00 00 04 07 0a 45 58 | 50 4f 53 49 54 49 4f 4e |......EX|POSITION|
|000021f0| 26 a7 0a 57 48 45 4e 2d | 4e 49 4c 2c 20 6c 69 6b |&..WHEN-|NIL, lik|
|00002200| 65 20 6f 74 68 65 72 20 | 6d 61 63 72 6f 73 2c 20 |e other |macros, |
|00002210| 54 52 41 4e 53 4c 41 54 | 45 53 20 6f 6e 65 20 66 |TRANSLAT|ES one f|
|00002220| 6f 72 6d 20 69 6e 74 6f | 20 61 6e 6f 74 68 65 72 |orm into| another|
|00002230| 0a 62 65 66 6f 72 65 20 | 65 76 61 6c 75 61 74 69 |.before |evaluati|
|00002240| 6f 6e 3a 0a 0a 28 57 48 | 45 4e 2d 4e 49 4c 20 49 |on:..(WH|EN-NIL I|
|00002250| 4e 50 55 54 20 28 53 45 | 54 46 20 4f 55 54 50 55 |NPUT (SE|TF OUTPU|
|00002260| 54 20 27 46 41 4c 53 45 | 29 29 00 02 0a 00 03 b3 |T 'FALSE|))......|
|00002270| 0a 00 03 1f 0a 28 49 46 | 20 49 4e 50 55 54 20 4e |.....(IF| INPUT N|
|00002280| 49 4c 20 28 53 45 54 46 | 20 4f 55 54 50 55 54 20 |IL (SETF| OUTPUT |
|00002290| 27 46 41 4c 53 45 29 29 | 0a 23 09 00 00 00 10 01 |'FALSE))|.#......|
|000022a0| 04 27 03 00 00 00 2e 27 | 05 00 00 00 2e 07 05 53 |.'.....'|.......S|
|000022b0| 4c 49 44 45 07 0a 45 58 | 50 4f 53 49 54 49 4f 4e |LIDE..EX|POSITION|
|000022c0| 23 0a 00 00 00 04 07 0a | 45 58 50 4f 53 49 54 49 |#.......|EXPOSITI|
|000022d0| 4f 4e 25 b1 01 00 00 0a | 54 68 75 73 2c 20 66 6f |ON%.....|Thus, fo|
|000022e0| 72 20 6d 61 6e 79 20 6d | 61 63 72 6f 73 2c 20 69 |r many m|acros, i|
|000022f0| 74 20 69 73 20 63 6f 6e | 76 65 6e 69 65 6e 74 20 |t is con|venient |
|00002300| 74 6f 20 75 73 65 20 74 | 68 65 20 6d 65 74 61 70 |to use t|he metap|
|00002310| 68 6f 72 20 6f 66 0a 74 | 65 6d 70 6c 61 74 65 20 |hor of.t|emplate |
|00002320| 66 69 6c 6c 69 6e 67 2e | 00 02 43 6f 6e 73 69 64 |filling.|..Consid|
|00002330| 65 72 20 74 68 69 73 20 | 74 65 6d 70 6c 61 74 65 |er this |template|
|00002340| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0a 0a |, for ex|ample:..|
|00002350| 28 49 46 20 3c 74 65 6d | 70 6c 61 74 65 20 73 6c |(IF <tem|plate sl|
|00002360| 6f 74 20 66 6f 72 20 74 | 72 69 67 67 65 72 3e 0a |ot for t|rigger>.|
|00002370| 00 04 4e 49 4c 0a 00 04 | 3c 74 65 6d 70 6c 61 74 |..NIL...|<templat|
|00002380| 65 20 73 6c 6f 74 20 66 | 6f 72 20 72 65 73 75 6c |e slot f|or resul|
|00002390| 74 20 77 68 65 6e 20 74 | 72 69 67 67 65 72 20 69 |t when t|rigger i|
|000023a0| 73 20 4e 49 4c 3e 29 0a | 0a 4f 66 20 63 6f 75 72 |s NIL>).|.Of cour|
|000023b0| 73 65 2c 20 74 68 65 20 | 62 61 63 6b 71 75 6f 74 |se, the |backquot|
|000023c0| 65 20 6d 65 63 68 61 6e | 69 73 6d 20 69 73 20 70 |e mechan|ism is p|
|000023d0| 65 72 66 65 63 74 20 66 | 6f 72 20 6d 61 6b 69 6e |erfect f|or makin|
|000023e0| 67 20 61 6e 64 0a 66 69 | 6c 6c 69 6e 67 20 74 65 |g and.fi|lling te|
|000023f0| 6d 70 6c 61 74 65 73 3a | 0a 0a 60 28 49 46 20 2c |mplates:|..`(IF ,|
|00002400| 49 4e 50 55 54 20 4e 49 | 4c 20 2c 52 45 53 55 4c |INPUT NI|L ,RESUL|
|00002410| 54 29 0a 0a 55 73 69 6e | 67 20 61 20 62 61 63 6b |T)..Usin|g a back|
|00002420| 71 75 6f 74 65 20 74 65 | 6d 70 6c 61 74 65 20 69 |quote te|mplate i|
|00002430| 73 20 75 73 75 61 6c 6c | 79 20 6d 75 63 68 20 62 |s usuall|y much b|
|00002440| 65 74 74 65 72 20 74 68 | 61 6e 20 66 6c 61 69 6c |etter th|an flail|
|00002450| 69 6e 67 0a 61 72 6f 75 | 6e 64 20 61 20 6c 6f 74 |ing.arou|nd a lot|
|00002460| 20 77 69 74 68 20 43 4f | 4e 53 2c 20 4c 49 53 54 | with CO|NS, LIST|
|00002470| 2c 20 41 50 50 45 4e 44 | 2c 20 61 6e 64 20 74 68 |, APPEND|, and th|
|00002480| 65 20 6c 69 6b 65 2e 0a | 23 10 00 00 00 10 01 04 |e like..|#.......|
|00002490| 27 03 00 00 00 2e 27 05 | 00 00 00 2e 07 05 53 4c |'.....'.|......SL|
|000024a0| 49 44 45 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 23 |IDE..EXP|OSITION#|
|000024b0| 0b 00 00 00 04 07 0a 45 | 58 50 4f 53 49 54 49 4f |.......E|XPOSITIO|
|000024c0| 4e 25 20 01 00 00 0a 48 | 65 72 65 20 74 68 65 6e |N% ....H|ere then|
|000024d0| 20 69 73 20 61 20 62 65 | 74 74 65 72 20 77 61 79 | is a be|tter way|
|000024e0| 20 74 6f 20 64 65 66 69 | 6e 65 20 57 48 45 4e 2d | to defi|ne WHEN-|
|000024f0| 4e 49 4c 20 75 73 69 6e | 67 20 62 61 63 6b 71 75 |NIL usin|g backqu|
|00002500| 6f 74 65 3a 0a 0a 28 44 | 45 46 4d 41 43 52 4f 20 |ote:..(D|EFMACRO |
|00002510| 57 48 45 4e 2d 4e 49 4c | 20 28 54 52 49 47 47 45 |WHEN-NIL| (TRIGGE|
|00002520| 52 20 52 45 53 55 4c 54 | 29 00 04 3b 4e 61 6d 65 |R RESULT|)..;Name|
|00002530| 20 61 6e 64 20 70 61 72 | 61 6d 65 74 65 72 73 2e | and par|ameters.|
|00002540| 0a 00 02 60 28 49 46 20 | 2c 49 4e 50 55 54 20 4e |...`(IF |,INPUT N|
|00002550| 49 4c 20 2c 52 45 53 55 | 4c 54 29 29 00 0c 3b 42 |IL ,RESU|LT))..;B|
|00002560| 6f 64 79 2e 0a 0a 54 68 | 69 73 20 69 73 20 62 65 |ody...Th|is is be|
|00002570| 74 74 65 72 20 62 65 63 | 61 75 73 65 20 74 68 65 |tter bec|ause the|
|00002580| 20 62 61 63 6b 71 75 6f | 74 65 20 74 65 6d 70 6c | backquo|te templ|
|00002590| 61 74 65 20 6d 61 6b 65 | 73 20 69 74 20 6f 62 76 |ate make|s it obv|
|000025a0| 69 6f 75 73 0a 77 68 61 | 74 20 74 68 65 20 66 6f |ious.wha|t the fo|
|000025b0| 72 6d 20 74 6f 20 62 65 | 20 65 76 61 6c 75 61 74 |rm to be| evaluat|
|000025c0| 65 64 20 61 63 74 75 61 | 6c 6c 79 20 69 73 20 73 |ed actua|lly is s|
|000025d0| 75 70 70 6f 73 65 64 20 | 74 6f 20 6c 6f 6f 6b 20 |upposed |to look |
|000025e0| 6c 69 6b 65 2e 0a 23 09 | 00 00 00 10 01 04 27 03 |like..#.|......'.|
|000025f0| 00 00 00 2e 27 05 00 00 | 00 2e 07 05 53 4c 49 44 |....'...|....SLID|
|00002600| 45 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 23 0c 00 |E..EXPOS|ITION#..|
|00002610| 00 00 04 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 25 |.....EXP|OSITION%|
|00002620| 78 01 00 00 0a 52 65 6d | 65 6d 62 65 72 20 2e 2e |x....Rem|ember ..|
|00002630| 2e 0a 0a 6f 00 04 49 46 | 20 79 6f 75 20 77 61 6e |...o..IF| you wan|
|00002640| 74 20 74 6f 20 74 72 61 | 6e 73 6c 61 74 65 20 66 |t to tra|nslate f|
|00002650| 72 6f 6d 20 6e 6f 6e 4c | 49 53 50 20 69 6e 74 6f |rom nonL|ISP into|
|00002660| 20 61 20 4c 49 53 50 20 | 66 6f 72 6d 2c 0a 00 05 | a LISP |form,...|
|00002670| 41 4e 44 20 79 6f 75 20 | 77 61 6e 74 20 74 68 65 |AND you |want the|
|00002680| 20 4c 49 53 50 20 66 6f | 72 6d 20 74 6f 20 62 65 | LISP fo|rm to be|
|00002690| 20 65 76 61 6c 75 61 74 | 65 64 2c 0a 00 05 54 48 | evaluat|ed,...TH|
|000026a0| 45 4e 20 64 65 66 69 6e | 65 20 61 20 4d 41 43 52 |EN defin|e a MACR|
|000026b0| 4f 3a 0a 0a 00 05 28 44 | 45 46 4d 41 43 52 4f 20 |O:....(D|EFMACRO |
|000026c0| 3c 6d 61 63 72 6f 20 6e | 61 6d 65 3e 0a 00 07 28 |<macro n|ame>...(|
|000026d0| 3c 70 61 72 61 6d 65 74 | 65 72 20 31 3e 20 3c 70 |<paramet|er 1> <p|
|000026e0| 61 72 61 6d 65 74 65 72 | 20 32 3e 20 2e 2e 2e 20 |arameter| 2> ... |
|000026f0| 3c 70 61 72 61 6d 65 74 | 65 72 20 6e 3e 29 0a 00 |<paramet|er n>)..|
|00002700| 07 3c 66 6f 72 6d 20 31 | 3e 20 3c 66 6f 72 6d 20 |.<form 1|> <form |
|00002710| 32 3e 20 2e 2e 2e 20 3c | 66 6f 72 6d 20 6e 3e 29 |2> ... <|form n>)|
|00002720| 0a 0a 6f 00 04 4d 61 63 | 72 6f 73 20 64 6f 20 6e |..o..Mac|ros do n|
|00002730| 6f 74 20 65 76 61 6c 75 | 61 74 65 20 74 68 65 69 |ot evalu|ate thei|
|00002740| 72 20 61 72 67 75 6d 65 | 6e 74 73 2e 0a 0a 6f 00 |r argume|nts...o.|
|00002750| 04 4d 61 63 72 6f 73 20 | 75 73 65 20 74 68 65 69 |.Macros |use thei|
|00002760| 72 20 61 72 67 75 6d 65 | 6e 74 73 20 74 6f 20 70 |r argume|nts to p|
|00002770| 72 6f 64 75 63 65 20 61 | 20 66 6f 72 6d 2e 0a 0a |roduce a| form...|
|00002780| 6f 00 04 4c 49 53 50 20 | 65 76 61 6c 75 61 74 65 |o..LISP |evaluate|
|00002790| 73 20 74 68 65 20 66 6f | 72 6d 2e 0a 23 11 00 00 |s the fo|rm..#...|
|000027a0| 00 10 01 04 27 03 00 00 | 00 2e 27 05 00 00 00 2e |....'...|..'.....|
|000027b0| 27 0c 00 00 00 04 27 05 | 00 00 00 2e 04 10 02 04 |'.....'.|........|
|000027c0| 10 03 36 0b 01 04 53 45 | 54 46 07 15 2a 4c 41 53 |..6...SE|TF..*LAS|
|000027d0| 54 2d 4c 4f 41 44 45 44 | 2d 4c 45 53 53 4f 4e 53 |T-LOADED|-LESSONS|
|000027e0| 2a 0b 01 05 51 55 4f 54 | 45 07 09 54 45 4d 50 4c |*...QUOT|E..TEMPL|
|000027f0| 41 54 45 53 07 0c 54 4f | 2d 54 52 41 4e 53 4c 41 |ATES..TO|-TRANSLA|
|00002800| 54 45 04 10 02 04 10 02 | 04 10 03 36 40 |TE......|...6@ |
+--------+-------------------------+-------------------------+--------+--------+