home *** CD-ROM | disk | FTP | other *** search
Unknown | 1984-10-20 | 5.1 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.
Confidence | Program | Detection | Match Type | Support
|
---|
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 06 43 4f 4e |SON...QU|OTE..CON|
|00000080| 53 2d 49 04 10 02 04 10 | 02 0b 01 05 51 55 4f 54 |S-I.....|....QUOT|
|00000090| 45 07 06 4c 45 53 53 4f | 4e 07 06 43 4f 4e 53 2d |E..LESSO|N..CONS-|
|000000a0| 49 0b 01 04 4e 41 4d 45 | 07 06 43 4f 4e 53 2d 49 |I...NAME|..CONS-I|
|000000b0| 04 10 01 07 04 4e 45 58 | 54 07 07 43 4f 4e 53 2d |.....NEX|T..CONS-|
|000000c0| 49 49 04 10 01 07 08 50 | 52 45 56 49 4f 55 53 07 |II.....P|REVIOUS.|
|000000d0| 0c 54 4f 2d 43 4f 4f 50 | 45 52 41 54 45 04 10 01 |.TO-COOP|ERATE...|
|000000e0| 07 0b 4c 45 53 53 4f 4e | 2d 4e 41 4d 45 26 11 4c |..LESSON|-NAME&.L|
|000000f0| 69 73 74 20 43 6f 6e 73 | 74 72 75 63 74 6f 72 73 |ist Cons|tructors|
|00000100| 04 10 01 04 10 08 07 05 | 53 4c 49 44 45 07 0a 45 |........|SLIDE..E|
|00000110| 58 50 4f 53 49 54 49 4f | 4e 23 01 00 00 00 04 07 |XPOSITIO|N#......|
|00000120| 0a 45 58 50 4f 53 49 54 | 49 4f 4e 25 30 01 00 00 |.EXPOSIT|ION%0...|
|00000130| 0a 4e 6f 77 20 74 68 61 | 74 20 79 6f 75 20 6b 6e |.Now tha|t you kn|
|00000140| 6f 77 20 68 6f 77 20 74 | 6f 20 64 65 66 69 6e 65 |ow how t|o define|
|00000150| 20 79 6f 75 72 20 6f 77 | 6e 20 70 72 6f 63 65 64 | your ow|n proced|
|00000160| 75 72 65 73 2c 20 69 74 | 20 69 73 20 74 69 6d 65 |ures, it| is time|
|00000170| 0a 74 6f 20 6c 6f 6f 6b | 20 61 74 20 6d 6f 72 65 |.to look| at more|
|00000180| 20 6c 69 73 74 20 63 6f | 6e 73 74 72 75 63 74 6f | list co|nstructo|
|00000190| 72 73 20 73 6f 20 74 68 | 61 74 20 79 6f 75 20 63 |rs so th|at you c|
|000001a0| 61 6e 20 64 65 66 69 6e | 65 0a 70 72 6f 63 65 64 |an defin|e.proced|
|000001b0| 75 72 65 73 20 6d 6f 72 | 65 20 65 61 73 69 6c 79 |ures mor|e easily|
|000001c0| 2e 00 02 53 6f 20 66 61 | 72 2c 20 74 68 65 20 6f |...So fa|r, the o|
|000001d0| 6e 6c 79 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 20 |nly cons|tructor |
|000001e0| 79 6f 75 20 6b 6e 6f 77 | 0a 61 62 6f 75 74 20 69 |you know|.about i|
|000001f0| 73 20 43 4f 4e 53 2c 20 | 62 75 74 20 74 68 65 72 |s CONS, |but ther|
|00000200| 65 20 61 72 65 20 6f 74 | 68 65 72 20 69 6d 70 6f |e are ot|her impo|
|00000210| 72 74 61 6e 74 20 6f 6e | 65 73 2e 00 02 48 65 72 |rtant on|es...Her|
|00000220| 65 20 69 73 20 6f 6e 65 | 3a 0a 0a 4e 61 6d 65 20 |e is one|:..Name |
|00000230| 6f 66 20 63 6f 6e 73 74 | 72 75 63 74 6f 72 00 04 |of const|ructor..|
|00000240| 50 75 72 70 6f 73 65 0a | 0a 4c 49 53 54 00 13 4d |Purpose.|.LIST..M|
|00000250| 61 6b 65 20 61 20 6e 65 | 77 20 6c 69 73 74 2e 0a |ake a ne|w list..|
|00000260| 23 0a 00 00 00 10 01 04 | 27 03 00 00 00 2e 27 05 |#.......|'.....'.|
|00000270| 00 00 00 2e 07 05 53 4c | 49 44 45 07 0a 45 58 50 |......SL|IDE..EXP|
|00000280| 4f 53 49 54 49 4f 4e 23 | 02 00 00 00 04 07 0a 45 |OSITION#|.......E|
|00000290| 58 50 4f 53 49 54 49 4f | 4e 26 d3 0a 4c 49 53 54 |XPOSITIO|N&..LIST|
|000002a0| 20 6d 61 6b 65 73 20 61 | 20 6c 69 73 74 20 6f 75 | makes a| list ou|
|000002b0| 74 20 6f 66 20 69 74 73 | 20 61 72 67 75 6d 65 6e |t of its| argumen|
|000002c0| 74 73 2e 00 02 48 65 72 | 65 20 69 73 20 61 6e 20 |ts...Her|e is an |
|000002d0| 69 6c 6c 75 73 74 72 61 | 74 69 6f 6e 3a 0a 0a 2a |illustra|tion:..*|
|000002e0| 20 28 4c 49 53 54 20 27 | 41 20 27 42 20 27 43 29 | (LIST '|A 'B 'C)|
|000002f0| 0a 28 41 20 42 20 43 29 | 0a 0a 41 53 53 55 4d 49 |.(A B C)|..ASSUMI|
|00000300| 4e 47 20 52 27 73 20 76 | 61 6c 75 65 20 69 73 20 |NG R's v|alue is |
|00000310| 33 20 61 6e 64 20 50 49 | 27 73 20 76 61 6c 75 65 |3 and PI|'s value|
|00000320| 20 69 73 20 33 2e 31 34 | 2c 20 74 68 65 6e 20 68 | is 3.14|, then h|
|00000330| 65 72 65 20 69 73 0a 61 | 6e 6f 74 68 65 72 20 69 |ere is.a|nother i|
|00000340| 6c 6c 75 73 74 72 61 74 | 69 6f 6e 3a 0a 0a 2a 20 |llustrat|ion:..* |
|00000350| 28 4c 49 53 54 20 27 2a | 20 32 20 50 49 20 52 29 |(LIST '*| 2 PI R)|
|00000360| 0a 28 2a 20 32 20 33 2e | 31 34 20 33 29 0a 23 0c |.(* 2 3.|14 3).#.|
|00000370| 00 00 00 10 01 04 27 03 | 00 00 00 2e 27 05 00 00 |......'.|....'...|
|00000380| 00 2e 07 05 53 4c 49 44 | 45 07 0a 45 58 50 4f 53 |....SLID|E..EXPOS|
|00000390| 49 54 49 4f 4e 23 03 00 | 00 00 04 07 0a 45 58 50 |ITION#..|.....EXP|
|000003a0| 4f 53 49 54 49 4f 4e 25 | cd 01 00 00 0a 53 75 70 |OSITION%|.....Sup|
|000003b0| 70 6f 73 65 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |pose you| want to|
|000003c0| 20 6d 61 6b 65 20 61 20 | 6c 69 73 74 20 6f 66 20 | make a |list of |
|000003d0| 74 68 65 20 76 61 6c 75 | 65 73 20 6f 66 20 74 68 |the valu|es of th|
|000003e0| 65 20 73 79 6d 62 6f 6c | 73 0a 47 4f 4c 44 2c 20 |e symbol|s.GOLD, |
|000003f0| 53 49 4c 56 45 52 2c 20 | 61 6e 64 20 42 52 4f 4e |SILVER, |and BRON|
|00000400| 5a 45 2e 0a 0a 48 65 72 | 65 20 69 73 20 61 20 6e |ZE...Her|e is a n|
|00000410| 65 61 72 20 6d 69 73 73 | 3a 0a 0a 2a 20 28 47 4f |ear miss|:..* (GO|
|00000420| 4c 44 20 53 49 4c 56 45 | 52 20 42 52 4f 4e 5a 45 |LD SILVE|R BRONZE|
|00000430| 29 0a 55 6e 64 65 66 69 | 6e 65 64 20 66 75 6e 63 |).Undefi|ned func|
|00000440| 74 69 6f 6e 3a 20 47 4f | 4c 44 00 0f 3b 42 75 67 |tion: GO|LD..;Bug|
|00000450| 21 00 02 47 6f 6c 64 20 | 69 73 20 69 6e 20 74 68 |!..Gold |is in th|
|00000460| 65 20 0a 77 68 69 6c 65 | 20 65 76 61 6c 75 61 74 |e .while| evaluat|
|00000470| 69 6e 67 3a 20 28 47 4f | 4c 44 20 53 49 4c 56 45 |ing: (GO|LD SILVE|
|00000480| 52 20 42 52 4f 4e 5a 45 | 29 20 3b 70 72 6f 63 65 |R BRONZE|) ;proce|
|00000490| 64 75 72 65 20 70 6f 73 | 69 74 69 6f 6e 2e 0a 0a |dure pos|ition...|
|000004a0| 54 68 65 20 70 72 6f 62 | 6c 65 6d 20 69 73 20 74 |The prob|lem is t|
|000004b0| 68 61 74 20 4c 49 53 50 | 20 63 61 6e 6e 6f 74 20 |hat LISP| cannot |
|000004c0| 74 65 6c 6c 20 74 68 61 | 74 20 79 6f 75 20 77 61 |tell tha|t you wa|
|000004d0| 6e 74 20 74 6f 20 6d 61 | 6b 65 20 6c 69 73 74 0a |nt to ma|ke list.|
|000004e0| 77 68 65 6e 20 79 6f 75 | 20 6a 75 73 74 20 74 79 |when you| just ty|
|000004f0| 70 65 20 70 61 72 65 6e | 74 68 65 73 65 73 2e 00 |pe paren|theses..|
|00000500| 02 49 74 20 6c 6f 6f 6b | 73 20 74 6f 20 4c 49 53 |.It look|s to LIS|
|00000510| 50 20 6c 69 6b 65 20 79 | 6f 75 20 68 61 76 65 20 |P like y|ou have |
|00000520| 61 0a 70 72 6f 63 65 64 | 75 72 65 20 6e 61 6d 65 |a.proced|ure name|
|00000530| 64 20 47 4f 4c 44 20 74 | 68 61 74 20 74 61 6b 65 |d GOLD t|hat take|
|00000540| 73 20 74 77 6f 20 61 72 | 67 75 6d 65 6e 74 73 2c |s two ar|guments,|
|00000550| 20 6e 61 6d 65 6c 79 20 | 74 68 65 20 76 61 6c 75 | namely |the valu|
|00000560| 65 73 0a 6f 66 20 53 49 | 4c 56 45 52 20 61 6e 64 |es.of SI|LVER and|
|00000570| 20 42 52 4f 4e 5a 45 2e | 0a 23 0f 00 00 00 10 01 | BRONZE.|.#......|
|00000580| 04 27 03 00 00 00 2e 27 | 05 00 00 00 2e 07 05 53 |.'.....'|.......S|
|00000590| 4c 49 44 45 07 0a 45 58 | 50 4f 53 49 54 49 4f 4e |LIDE..EX|POSITION|
|000005a0| 23 04 00 00 00 04 07 0a | 45 58 50 4f 53 49 54 49 |#.......|EXPOSITI|
|000005b0| 4f 4e 25 42 01 00 00 0a | 59 6f 75 20 67 65 74 20 |ON%B....|You get |
|000005c0| 61 20 6c 69 73 74 20 6f | 66 20 76 61 6c 75 65 73 |a list o|f values|
|000005d0| 20 74 68 69 73 20 77 61 | 79 3a 0a 0a 2a 20 28 4c | this wa|y:..* (L|
|000005e0| 49 53 54 20 47 4f 4c 44 | 20 53 49 4c 56 45 52 20 |IST GOLD| SILVER |
|000005f0| 42 52 4f 4e 5a 45 29 0a | 28 46 49 52 53 54 20 53 |BRONZE).|(FIRST S|
|00000600| 45 43 4f 4e 44 20 54 48 | 49 52 44 29 00 0b 3b 41 |ECOND TH|IRD)..;A|
|00000610| 73 73 75 6d 69 6e 67 20 | 47 4f 4c 44 27 73 20 76 |ssuming |GOLD's v|
|00000620| 61 6c 75 65 20 69 73 0a | 00 1f 3b 46 49 52 53 54 |alue is.|..;FIRST|
|00000630| 2c 20 53 49 4c 56 45 52 | 27 73 20 76 61 6c 75 65 |, SILVER|'s value|
|00000640| 20 69 73 0a 00 1f 3b 53 | 45 43 4f 4e 44 2c 20 61 | is...;S|ECOND, a|
|00000650| 6e 64 20 42 52 4f 4e 5a | 45 27 53 20 54 48 49 52 |nd BRONZ|E'S THIR|
|00000660| 44 2e 0a 0a 4c 49 53 50 | 20 63 6c 65 61 72 6c 79 |D...LISP| clearly|
|00000670| 20 75 6e 64 65 72 73 74 | 61 6e 64 73 20 74 68 61 | underst|ands tha|
|00000680| 74 20 79 6f 75 20 77 61 | 6e 74 20 61 20 6c 69 73 |t you wa|nt a lis|
|00000690| 74 20 62 65 63 61 75 73 | 65 20 6d 61 6b 69 6e 67 |t becaus|e making|
|000006a0| 20 61 0a 6c 69 73 74 20 | 69 73 20 74 68 65 20 70 | a.list |is the p|
|000006b0| 75 72 70 6f 73 65 20 6f | 66 20 4c 49 53 54 2c 20 |urpose o|f LIST, |
|000006c0| 74 68 65 20 70 72 6f 63 | 65 64 75 72 65 20 77 68 |the proc|edure wh|
|000006d0| 69 63 68 20 4c 49 53 50 | 20 73 65 65 73 20 69 6e |ich LISP| sees in|
|000006e0| 0a 74 68 65 20 70 72 6f | 63 65 64 75 72 65 20 70 |.the pro|cedure p|
|000006f0| 6f 73 69 74 69 6f 6e 2e | 0a 23 0c 00 00 00 10 01 |osition.|.#......|
|00000700| 04 27 03 00 00 00 2e 27 | 05 00 00 00 2e 07 05 53 |.'.....'|.......S|
|00000710| 4c 49 44 45 07 0a 45 58 | 50 4f 53 49 54 49 4f 4e |LIDE..EX|POSITION|
|00000720| 23 05 00 00 00 04 07 0a | 45 58 50 4f 53 49 54 49 |#.......|EXPOSITI|
|00000730| 4f 4e 25 83 01 00 00 0a | 48 65 72 65 20 69 73 20 |ON%.....|Here is |
|00000740| 61 6e 6f 74 68 65 72 20 | 6e 65 61 72 20 6d 69 73 |another |near mis|
|00000750| 73 3a 0a 0a 2a 20 27 28 | 47 4f 4c 44 20 53 49 4c |s:..* '(|GOLD SIL|
|00000760| 56 45 52 20 42 52 4f 4e | 5a 45 29 0a 28 47 4f 4c |VER BRON|ZE).(GOL|
|00000770| 44 20 53 49 4c 56 45 52 | 20 42 52 4f 4e 5a 45 29 |D SILVER| BRONZE)|
|00000780| 00 0a 3b 42 55 47 21 20 | 59 6f 75 20 77 61 6e 74 |..;BUG! |You want|
|00000790| 20 61 20 6c 69 73 74 20 | 6f 66 20 74 68 65 20 56 | a list |of the V|
|000007a0| 41 4c 55 45 53 0a 00 1e | 3b 6f 66 20 47 4f 4c 44 |ALUES...|;of GOLD|
|000007b0| 2c 20 53 49 4c 56 45 52 | 2c 20 61 6e 64 20 42 52 |, SILVER|, and BR|
|000007c0| 4f 4e 5a 45 2c 20 6e 6f | 74 0a 00 13 1e 00 0a 3b |ONZE, no|t......;|
|000007d0| 61 20 6c 69 73 74 20 6f | 66 20 74 68 65 20 73 79 |a list o|f the sy|
|000007e0| 6d 62 6f 6c 73 20 74 68 | 65 6d 73 65 6c 76 65 73 |mbols th|emselves|
|000007f0| 2e 0a 00 13 b3 0a 59 6f | 75 20 6d 61 79 20 74 72 |......Yo|u may tr|
|00000800| 79 20 74 68 69 73 20 c4 | c4 d9 0a 0a 6a 75 73 74 |y this .|....just|
|00000810| 20 61 66 74 65 72 20 74 | 68 69 73 3a 20 c4 c4 bf | after t|his: ...|
|00000820| 0a 00 13 b3 0a 00 13 1f | 0a 0a 2a 20 28 47 4f 4c |........|..* (GOL|
|00000830| 44 20 53 49 4c 56 45 52 | 20 42 52 4f 4e 5a 45 29 |D SILVER| BRONZE)|
|00000840| 0a 45 72 72 6f 72 3a 20 | 47 4f 4c 44 20 69 73 20 |.Error: |GOLD is |
|00000850| 6e 6f 74 20 61 20 70 72 | 6f 63 65 64 75 72 65 2e |not a pr|ocedure.|
|00000860| 0a 0a 54 68 65 20 65 72 | 72 6f 72 20 6d 65 73 73 |..The er|ror mess|
|00000870| 61 67 65 20 6d 61 6b 65 | 73 20 79 6f 75 20 74 68 |age make|s you th|
|00000880| 69 6e 6b 20 74 68 61 74 | 20 79 6f 75 20 6e 65 65 |ink that| you nee|
|00000890| 64 20 61 20 71 75 6f 74 | 65 2c 20 62 75 74 20 79 |d a quot|e, but y|
|000008a0| 6f 75 0a 64 6f 6e 27 74 | 2e 00 02 59 6f 75 20 6e |ou.don't|...You n|
|000008b0| 65 65 64 20 4c 49 53 54 | 2e 0a 23 14 00 00 00 10 |eed LIST|..#.....|
|000008c0| 01 04 27 03 00 00 00 2e | 27 05 00 00 00 2e 07 05 |..'.....|'.......|
|000008d0| 53 4c 49 44 45 07 0a 45 | 58 50 4f 53 49 54 49 4f |SLIDE..E|XPOSITIO|
|000008e0| 4e 23 06 00 00 00 04 07 | 0a 45 58 50 4f 53 49 54 |N#......|.EXPOSIT|
|000008f0| 49 4f 4e 26 ed 0a 49 6e | 20 73 75 6d 6d 61 72 79 |ION&..In| summary|
|00000900| 2c 20 77 68 65 6e 20 79 | 6f 75 20 77 61 6e 74 20 |, when y|ou want |
|00000910| 74 6f 20 6d 61 6b 65 20 | 61 20 6c 69 73 74 20 6f |to make |a list o|
|00000920| 66 20 56 41 4c 55 45 53 | 2c 20 75 73 65 20 4c 49 |f VALUES|, use LI|
|00000930| 53 54 3a 0a 0a 2a 20 28 | 4c 49 53 54 20 47 4f 4c |ST:..* (|LIST GOL|
|00000940| 44 20 53 49 4c 56 45 52 | 20 42 52 4f 4e 5a 45 29 |D SILVER| BRONZE)|
|00000950| 00 03 3b 43 4f 52 52 45 | 43 54 2e 00 02 4d 61 6b |..;CORRE|CT...Mak|
|00000960| 65 73 20 6c 69 73 74 20 | 6f 66 20 76 61 6c 75 65 |es list |of value|
|00000970| 73 2e 0a 0a 2a 20 28 47 | 4f 4c 44 20 53 49 4c 56 |s...* (G|OLD SILV|
|00000980| 45 52 20 42 52 4f 4e 5a | 45 29 00 08 3b 4e 45 41 |ER BRONZ|E)..;NEA|
|00000990| 52 20 4d 49 53 53 21 00 | 02 43 61 75 73 65 73 20 |R MISS!.|.Causes |
|000009a0| 65 72 72 6f 72 2e 0a 0a | 2a 20 27 28 47 4f 4c 44 |error...|* '(GOLD|
|000009b0| 20 53 49 4c 56 45 52 20 | 42 52 4f 4e 5a 45 29 00 | SILVER |BRONZE).|
|000009c0| 07 3b 4e 45 41 52 20 4d | 49 53 53 21 00 02 44 6f |.;NEAR M|ISS!..Do|
|000009d0| 65 73 6e 27 74 20 75 73 | 65 20 76 61 6c 75 65 73 |esn't us|e values|
|000009e0| 2e 0a 23 09 00 00 00 10 | 01 04 27 03 00 00 00 2e |..#.....|..'.....|
|000009f0| 27 05 00 00 00 2e 07 05 | 53 4c 49 44 45 07 08 45 |'.......|SLIDE..E|
|00000a00| 58 41 4d 50 4c 45 53 23 | 07 00 00 00 04 07 0d 45 |XAMPLES#|.......E|
|00000a10| 58 41 4d 50 4c 45 2d 47 | 52 4f 55 50 26 6b 0a 41 |XAMPLE-G|ROUP&k.A|
|00000a20| 73 73 75 6d 65 20 4f 4e | 45 27 73 20 76 61 6c 75 |ssume ON|E's valu|
|00000a30| 65 20 69 73 20 42 52 49 | 43 4b 2d 44 3b 20 61 73 |e is BRI|CK-D; as|
|00000a40| 73 75 6d 65 20 54 57 4f | 27 73 20 76 61 6c 75 65 |sume TWO|'s value|
|00000a50| 20 69 73 20 50 59 52 41 | 4d 49 44 2d 46 3a 0a 0a | is PYRA|MID-F:..|
|00000a60| 28 53 45 54 46 20 4f 4e | 45 20 27 42 52 49 43 4b |(SETF ON|E 'BRICK|
|00000a70| 2d 44 29 0a 28 53 45 54 | 46 20 54 57 4f 20 27 50 |-D).(SET|F TWO 'P|
|00000a80| 59 52 41 4d 49 44 2d 46 | 29 23 05 00 00 00 10 01 |YRAMID-F|)#......|
|00000a90| 26 21 2a 20 28 53 45 54 | 46 20 4f 42 53 54 41 43 |&!* (SET|F OBSTAC|
|00000aa0| 4c 45 53 20 28 4c 49 53 | 54 20 4f 4e 45 20 54 57 |LES (LIS|T ONE TW|
|00000ab0| 4f 29 29 23 01 00 00 00 | 10 01 26 44 28 42 52 49 |O))#....|..&D(BRI|
|00000ac0| 43 4b 2d 44 20 50 59 52 | 41 4d 49 44 2d 46 29 00 |CK-D PYR|AMID-F).|
|00000ad0| 0e 3b 4c 49 53 54 20 6d | 61 6b 65 73 20 61 20 6e |.;LIST m|akes a n|
|00000ae0| 65 77 20 6c 69 73 74 2e | 0a 00 21 3b 53 45 54 46 |ew list.|..!;SETF|
|00000af0| 20 61 74 74 61 63 68 65 | 73 20 76 61 6c 75 65 2e | attache|s value.|
|00000b00| 23 02 00 00 00 10 01 27 | 04 00 00 00 2e 07 0d 45 |#......'|.......E|
|00000b10| 58 41 4d 50 4c 45 2d 47 | 52 4f 55 50 04 26 0b 2a |XAMPLE-G|ROUP.&.*|
|00000b20| 20 4f 42 53 54 41 43 4c | 45 53 23 01 00 00 00 10 | OBSTACL|ES#.....|
|00000b30| 01 26 2e 28 42 52 49 43 | 4b 2d 44 20 50 59 52 41 |.&.(BRIC|K-D PYRA|
|00000b40| 4d 49 44 2d 46 29 00 0e | 3b 41 74 74 61 63 68 65 |MID-F)..|;Attache|
|00000b50| 64 20 76 61 6c 75 65 20 | 72 65 74 75 72 6e 65 64 |d value |returned|
|00000b60| 2e 23 01 00 00 00 10 01 | 27 04 00 00 00 2e 07 0d |.#......|'.......|
|00000b70| 45 58 41 4d 50 4c 45 2d | 47 52 4f 55 50 04 26 1d |EXAMPLE-|GROUP.&.|
|00000b80| 2a 20 28 4c 49 53 54 20 | 27 4f 42 53 54 41 43 4c |* (LIST |'OBSTACL|
|00000b90| 45 53 20 4f 42 53 54 41 | 43 4c 45 53 29 23 01 00 |ES OBSTA|CLES)#..|
|00000ba0| 00 00 10 01 26 6a 28 4f | 42 53 54 41 43 4c 45 53 |....&j(O|BSTACLES|
|00000bb0| 20 28 42 52 49 43 4b 2d | 44 20 50 59 52 41 4d 49 | (BRICK-|D PYRAMI|
|00000bc0| 44 2d 46 29 29 00 02 3b | 46 69 72 73 74 20 65 6c |D-F))..;|First el|
|00000bd0| 65 6d 65 6e 74 20 69 73 | 20 4f 42 53 54 41 43 4c |ement is| OBSTACL|
|00000be0| 45 53 2c 20 62 75 74 0a | 00 21 3b 73 65 63 6f 6e |ES, but.|.!;secon|
|00000bf0| 64 20 65 6c 65 6d 65 6e | 74 20 69 73 20 4f 42 53 |d elemen|t is OBS|
|00000c00| 54 41 43 4c 45 53 27 73 | 20 76 61 6c 75 65 2e 0a |TACLES's| value..|
|00000c10| 23 03 00 00 00 10 01 27 | 04 00 00 00 2e 04 10 03 |#......'|........|
|00000c20| 27 05 00 00 00 2e 07 05 | 53 4c 49 44 45 07 08 50 |'.......|SLIDE..P|
|00000c30| 52 41 43 54 49 43 45 23 | 08 00 00 00 07 05 46 4f |RACTICE#|......FO|
|00000c40| 52 4d 53 0b 01 01 54 04 | 10 02 26 24 0a 54 72 79 |RMS...T.|..&$.Try|
|00000c50| 20 61 20 66 65 77 20 65 | 78 61 6d 70 6c 65 73 20 | a few e|xamples |
|00000c60| 69 6e 76 6f 6c 76 69 6e | 67 20 4c 49 53 54 2e 0a |involvin|g LIST..|
|00000c70| 23 03 00 00 00 10 01 27 | 05 00 00 00 2e 07 05 53 |#......'|.......S|
|00000c80| 4c 49 44 45 07 0a 45 58 | 50 4f 53 49 54 49 4f 4e |LIDE..EX|POSITION|
|00000c90| 23 09 00 00 00 04 07 0a | 45 58 50 4f 53 49 54 49 |#.......|EXPOSITI|
|00000ca0| 4f 4e 26 69 0a 53 65 65 | 20 74 68 65 20 6e 65 78 |ON&i.See| the nex|
|00000cb0| 74 20 64 65 74 61 69 6c | 73 20 73 6c 69 64 65 20 |t detail|s slide |
|00000cc0| 66 6f 72 20 64 69 73 63 | 75 73 73 69 6f 6e 20 6f |for disc|ussion o|
|00000cd0| 66 20 68 6f 77 20 45 56 | 41 4c 20 77 6f 72 6b 73 |f how EV|AL works|
|00000ce0| 20 77 68 65 6e 0a 67 69 | 76 65 6e 20 61 20 66 6f | when.gi|ven a fo|
|00000cf0| 72 6d 20 69 6e 73 74 65 | 61 64 20 6f 66 20 6a 75 |rm inste|ad of ju|
|00000d00| 73 74 20 61 20 73 79 6d | 62 6f 6c 2e 0a 23 04 00 |st a sym|bol..#..|
|00000d10| 00 00 10 01 07 05 53 4c | 49 44 45 07 0a 45 58 50 |......SL|IDE..EXP|
|00000d20| 4f 53 49 54 49 4f 4e 23 | 01 00 00 00 04 07 0a 45 |OSITION#|.......E|
|00000d30| 58 50 4f 53 49 54 49 4f | 4e 25 b6 01 00 00 0a 45 |XPOSITIO|N%.....E|
|00000d40| 56 41 4c 20 77 6f 72 6b | 73 20 66 69 6e 65 20 6f |VAL work|s fine o|
|00000d50| 6e 20 66 6f 72 6d 73 20 | 61 73 20 77 65 6c 6c 20 |n forms |as well |
|00000d60| 61 73 20 73 79 6d 62 6f | 6c 73 2e 00 02 43 6f 6e |as symbo|ls...Con|
|00000d70| 73 65 71 75 65 6e 74 6c | 79 2c 20 74 68 65 0a 66 |sequentl|y, the.f|
|00000d80| 6f 72 6d 20 28 4c 49 53 | 54 20 58 20 59 29 20 69 |orm (LIS|T X Y) i|
|00000d90| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |s equiva|lent to |
|00000da0| 74 68 65 20 66 6f 72 6d | 20 28 45 56 41 4c 20 27 |the form| (EVAL '|
|00000db0| 28 4c 49 53 54 20 58 20 | 59 29 29 2e 0a 0a 49 6e |(LIST X |Y))...In|
|00000dc0| 20 74 68 65 20 45 56 41 | 4c 20 65 78 70 72 65 73 | the EVA|L expres|
|00000dd0| 73 69 6f 6e 2c 20 74 68 | 65 20 71 75 6f 74 65 20 |sion, th|e quote |
|00000de0| 6f 6e 20 28 4c 49 53 54 | 20 58 20 59 29 20 70 72 |on (LIST| X Y) pr|
|00000df0| 6f 74 65 63 74 73 20 69 | 74 20 66 72 6f 6d 0a 6f |otects i|t from.o|
|00000e00| 6e 65 20 65 76 61 6c 75 | 61 74 69 6f 6e 2c 20 62 |ne evalu|ation, b|
|00000e10| 75 74 20 77 68 65 6e 20 | 45 56 41 4c 20 67 65 74 |ut when |EVAL get|
|00000e20| 73 20 67 6f 69 6e 67 2c | 20 69 74 20 65 76 61 6c |s going,| it eval|
|00000e30| 75 61 74 65 73 20 28 4c | 49 53 54 20 58 20 59 29 |uates (L|IST X Y)|
|00000e40| 20 0a 61 73 20 69 66 20 | 74 68 65 72 65 20 68 61 | .as if |there ha|
|00000e50| 64 20 62 65 65 6e 20 6e | 65 69 74 68 65 72 20 61 |d been n|either a|
|00000e60| 6e 20 45 56 41 4c 20 6e | 6f 72 20 61 20 71 75 6f |n EVAL n|or a quo|
|00000e70| 74 65 2e 0a 0a 41 6e 20 | 69 6d 70 6f 72 74 61 6e |te...An |importan|
|00000e80| 74 20 70 6f 69 6e 74 20 | 69 73 20 74 68 61 74 20 |t point |is that |
|00000e90| 79 6f 75 20 63 61 6e 20 | 63 6f 6e 73 74 72 75 63 |you can |construc|
|00000ea0| 74 20 66 6f 72 6d 73 20 | 75 73 69 6e 67 20 61 0a |t forms |using a.|
|00000eb0| 70 72 6f 67 72 61 6d 20 | 61 6e 64 20 74 68 65 6e |program |and then|
|00000ec0| 20 68 61 76 65 20 79 6f | 75 72 20 70 72 6f 67 72 | have yo|ur progr|
|00000ed0| 61 6d 20 65 76 61 6c 75 | 61 74 65 20 74 68 6f 73 |am evalu|ate thos|
|00000ee0| 65 20 66 6f 72 6d 73 20 | 75 73 69 6e 67 0a 45 56 |e forms |using.EV|
|00000ef0| 41 4c 2e 0a 23 0c 00 00 | 00 10 01 04 27 03 00 00 |AL..#...|....'...|
|00000f00| 00 2e 27 05 00 00 00 2e | 07 05 53 4c 49 44 45 07 |..'.....|..SLIDE.|
|00000f10| 08 45 58 41 4d 50 4c 45 | 53 23 02 00 00 00 04 07 |.EXAMPLE|S#......|
|00000f20| 0d 45 58 41 4d 50 4c 45 | 2d 47 52 4f 55 50 26 57 |.EXAMPLE|-GROUP&W|
|00000f30| 0a 41 73 73 75 6d 65 20 | 50 27 73 20 76 61 6c 75 |.Assume |P's valu|
|00000f40| 65 20 69 73 20 46 49 52 | 53 54 3b 20 61 73 73 75 |e is FIR|ST; assu|
|00000f50| 6d 65 20 4c 27 73 20 76 | 61 6c 75 65 20 69 73 20 |me L's v|alue is |
|00000f60| 28 41 20 42 29 3a 0a 0a | 28 53 45 54 46 20 50 20 |(A B):..|(SETF P |
|00000f70| 27 46 49 52 53 54 29 0a | 28 53 45 54 46 20 4c 20 |'FIRST).|(SETF L |
|00000f80| 27 28 41 20 42 29 29 23 | 05 00 00 00 10 01 26 0d |'(A B))#|......&.|
|00000f90| 2a 20 28 4c 49 53 54 20 | 50 20 27 4c 29 23 01 00 |* (LIST |P 'L)#..|
|00000fa0| 00 00 10 01 26 53 28 46 | 49 52 53 54 20 4c 29 00 |....&S(F|IRST L).|
|00000fb0| 11 3b 52 65 73 75 6c 74 | 20 6f 66 20 75 73 69 6e |.;Result| of usin|
|00000fc0| 67 20 4c 49 53 54 20 6f | 6e 20 74 68 65 20 76 61 |g LIST o|n the va|
|00000fd0| 6c 75 65 20 6f 66 20 50 | 0a 00 1a 3b 61 6e 64 20 |lue of P|...;and |
|00000fe0| 74 68 65 20 55 4e 65 76 | 61 6c 75 61 74 65 64 20 |the UNev|aluated |
|00000ff0| 73 79 6d 62 6f 6c 20 4c | 2e 23 02 00 00 00 10 01 |symbol L|.#......|
|00001000| 27 04 00 00 00 2e 07 0d | 45 58 41 4d 50 4c 45 2d |'.......|EXAMPLE-|
|00001010| 47 52 4f 55 50 04 26 0e | 2a 20 27 28 4c 49 53 54 |GROUP.&.|* '(LIST|
|00001020| 20 50 20 27 4c 29 23 01 | 00 00 00 10 01 26 85 28 | P 'L)#.|.....&.(|
|00001030| 4c 49 53 54 20 50 20 28 | 51 55 4f 54 45 20 4c 29 |LIST P (|QUOTE L)|
|00001040| 29 00 08 3b 51 75 6f 74 | 65 20 73 74 6f 70 73 20 |)..;Quot|e stops |
|00001050| 65 76 61 6c 75 61 74 69 | 6f 6e 2e 00 02 54 68 65 |evaluati|on...The|
|00001060| 20 76 61 6c 75 65 0a 00 | 1a 3b 72 65 74 75 72 6e | value..|.;return|
|00001070| 65 64 20 69 73 20 28 4c | 49 53 54 20 50 20 27 4c |ed is (L|IST P 'L|
|00001080| 29 20 77 72 69 74 74 65 | 6e 20 75 73 69 6e 67 0a |) writte|n using.|
|00001090| 00 1a 3b 74 68 65 20 51 | 55 4f 54 45 20 70 72 69 |..;the Q|UOTE pri|
|000010a0| 6d 69 74 69 76 65 20 69 | 6e 73 74 65 61 64 20 6f |mitive i|nstead o|
|000010b0| 66 20 27 2e 23 03 00 00 | 00 10 01 27 04 00 00 00 |f '.#...|...'....|
|000010c0| 2e 07 0d 45 58 41 4d 50 | 4c 45 2d 47 52 4f 55 50 |...EXAMP|LE-GROUP|
|000010d0| 04 26 16 2a 20 28 45 56 | 41 4c 20 27 28 4c 49 53 |.&.* (EV|AL '(LIS|
|000010e0| 54 20 50 20 27 4c 29 29 | 29 23 01 00 00 00 10 01 |T P 'L))|)#......|
|000010f0| 26 53 28 46 49 52 53 54 | 20 4c 29 00 11 3b 51 75 |&S(FIRST| L)..;Qu|
|00001100| 6f 74 65 20 73 74 6f 70 | 73 20 65 76 61 6c 75 61 |ote stop|s evalua|
|00001110| 74 69 6f 6e 20 61 73 20 | 61 72 67 75 6d 65 6e 74 |tion as |argument|
|00001120| 2c 0a 00 1a 3b 62 75 74 | 20 74 68 65 6e 20 45 56 |,...;but| then EV|
|00001130| 41 4c 20 63 61 75 73 65 | 73 20 65 76 61 6c 75 61 |AL cause|s evalua|
|00001140| 74 69 6f 6e 2e 23 02 00 | 00 00 10 01 27 04 00 00 |tion.#..|....'...|
|00001150| 00 2e 04 10 03 27 05 00 | 00 00 2e 07 05 53 4c 49 |.....'..|.....SLI|
|00001160| 44 45 07 08 45 58 41 4d | 50 4c 45 53 23 03 00 00 |DE..EXAM|PLES#...|
|00001170| 00 04 07 0d 45 58 41 4d | 50 4c 45 2d 47 52 4f 55 |....EXAM|PLE-GROU|
|00001180| 50 26 57 0a 41 73 73 75 | 6d 65 20 50 27 73 20 76 |P&W.Assu|me P's v|
|00001190| 61 6c 75 65 20 69 73 20 | 46 49 52 53 54 3b 20 61 |alue is |FIRST; a|
|000011a0| 73 73 75 6d 65 20 4c 27 | 73 20 76 61 6c 75 65 20 |ssume L'|s value |
|000011b0| 69 73 20 28 41 20 42 29 | 3a 0a 0a 28 53 45 54 46 |is (A B)|:..(SETF|
|000011c0| 20 50 20 27 46 49 52 53 | 54 29 0a 28 53 45 54 46 | P 'FIRS|T).(SETF|
|000011d0| 20 4c 20 27 28 41 20 42 | 29 29 23 05 00 00 00 10 | L '(A B|))#.....|
|000011e0| 01 26 1c 2a 20 28 45 56 | 41 4c 20 28 45 56 41 4c |.&.* (EV|AL (EVAL|
|000011f0| 20 27 28 4c 49 53 54 20 | 50 20 27 4c 29 29 29 23 | '(LIST |P 'L)))#|
|00001200| 01 00 00 00 10 01 26 75 | 41 00 19 3b 45 76 61 6c |......&u|A..;Eval|
|00001210| 75 61 74 69 6e 67 20 6f | 75 74 20 45 56 41 4c 27 |uating o|ut EVAL'|
|00001220| 73 20 61 72 67 75 6d 65 | 6e 74 0a 00 1a 3b 70 72 |s argume|nt...;pr|
|00001230| 6f 64 75 63 65 73 20 28 | 46 49 52 53 54 20 4c 29 |oduces (|FIRST L)|
|00001240| 20 c4 c4 c4 20 74 68 65 | 6e 20 28 46 49 52 53 54 | ... the|n (FIRST|
|00001250| 20 4c 29 0a 00 1a 3b 70 | 72 6f 64 75 63 65 73 20 | L)...;p|roduces |
|00001260| 41 20 62 65 63 61 75 73 | 65 20 4c 27 73 20 76 61 |A becaus|e L's va|
|00001270| 6c 75 65 20 69 73 20 28 | 41 20 42 29 2e 23 03 00 |lue is (|A B).#..|
|00001280| 00 00 10 01 27 04 00 00 | 00 2e 07 0d 45 58 41 4d |....'...|....EXAM|
|00001290| 50 4c 45 2d 47 52 4f 55 | 50 04 26 14 2a 20 28 45 |PLE-GROU|P.&.* (E|
|000012a0| 56 41 4c 20 28 4c 49 53 | 54 20 50 20 27 4c 29 29 |VAL (LIS|T P 'L))|
|000012b0| 23 01 00 00 00 10 01 26 | 51 41 00 19 3b 56 61 6c |#......&|QA..;Val|
|000012c0| 75 65 20 6f 66 20 28 4c | 49 53 54 20 50 20 27 4c |ue of (L|IST P 'L|
|000012d0| 29 20 69 73 20 28 46 49 | 52 53 54 20 4c 29 2c 20 |) is (FI|RST L), |
|000012e0| 0a 00 1a 3b 77 68 69 63 | 68 20 79 69 65 6c 64 73 |...;whic|h yields|
|000012f0| 20 41 20 77 68 65 6e 20 | 45 56 41 4c 20 77 6f 72 | A when |EVAL wor|
|00001300| 6b 73 20 6f 6e 20 69 74 | 2e 0a 23 03 00 00 00 10 |ks on it|..#.....|
|00001310| 01 27 04 00 00 00 2e 04 | 10 02 27 05 00 00 00 2e |.'......|..'.....|
|00001320| 27 03 00 00 00 27 03 00 | 00 00 2e 27 05 00 00 00 |'....'..|...'....|
|00001330| 2e 07 05 53 4c 49 44 45 | 07 0a 45 58 50 4f 53 49 |...SLIDE|..EXPOSI|
|00001340| 54 49 4f 4e 23 0a 00 00 | 00 04 07 0a 45 58 50 4f |TION#...|....EXPO|
|00001350| 53 49 54 49 4f 4e 26 a5 | 0a 52 65 6d 65 6d 62 65 |SITION&.|.Remembe|
|00001360| 72 20 2e 2e 2e 0a 0a 6f | 00 04 49 46 20 79 6f 75 |r .....o|..IF you|
|00001370| 20 77 61 6e 74 20 74 6f | 20 61 64 64 20 61 20 6e | want to| add a n|
|00001380| 65 77 20 65 6c 65 6d 65 | 6e 74 20 74 6f 20 74 68 |ew eleme|nt to th|
|00001390| 65 20 66 72 6f 6e 74 20 | 6f 66 20 61 20 6c 69 73 |e front |of a lis|
|000013a0| 74 2c 0a 00 05 54 48 45 | 4e 20 75 73 65 20 43 4f |t,...THE|N use CO|
|000013b0| 4e 53 2e 0a 0a 6f 00 04 | 49 46 20 79 6f 75 20 77 |NS...o..|IF you w|
|000013c0| 61 6e 74 20 74 6f 20 6d | 61 6b 65 20 61 20 6c 69 |ant to m|ake a li|
|000013d0| 73 74 20 6f 75 74 20 6f | 66 20 61 20 73 65 74 20 |st out o|f a set |
|000013e0| 6f 66 20 65 6c 65 6d 65 | 6e 74 73 2c 0a 00 05 54 |of eleme|nts,...T|
|000013f0| 48 45 4e 20 75 73 65 20 | 4c 49 53 54 2e 23 08 00 |HEN use |LIST.#..|
|00001400| 00 00 10 01 04 27 03 00 | 00 00 2e 27 05 00 00 00 |.....'..|...'....|
|00001410| 2e 27 0a 00 00 00 04 27 | 05 00 00 00 2e 04 10 02 |.'.....'|........|
|00001420| 04 10 03 36 0b 01 04 53 | 45 54 46 07 15 2a 4c 41 |...6...S|ETF..*LA|
|00001430| 53 54 2d 4c 4f 41 44 45 | 44 2d 4c 45 53 53 4f 4e |ST-LOADE|D-LESSON|
|00001440| 53 2a 0b 01 05 51 55 4f | 54 45 07 06 43 4f 4e 53 |S*...QUO|TE..CONS|
|00001450| 2d 49 04 10 01 04 10 02 | 04 10 03 36 40 |-I......|...6@ |
+--------+-------------------------+-------------------------+--------+--------+