home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Doc / Reference / Appendix-C.tex / node6_ct.html < prev    next >
LaTeX Document  |  1996-01-21  |  2.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 49 6e | 73 74 61 6e 63 65 20 63 |ts of In|stance c|
|000000b0| 72 65 61 74 69 6f 6e 20 | 61 6e 64 20 73 6c 6f 74 |reation |and slot|
|000000c0| 20 61 63 63 65 73 73 3c | 2f 54 49 54 4c 45 3e 0a | access<|/TITLE>.|
|000000d0| 0a 3c 4d 45 54 41 20 48 | 54 54 50 2d 45 51 55 49 |.<META H|TTP-EQUI|
|000000e0| 56 3d 22 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 22 |V="Conte|nt-Type"|
|000000f0| 20 43 4f 4e 54 45 4e 54 | 3d 22 74 65 78 74 2f 68 | CONTENT|="text/h|
|00000100| 74 6d 6c 3b 20 63 68 61 | 72 73 65 74 3d 75 74 66 |tml; cha|rset=utf|
|00000110| 2d 38 22 3e 0a 3c 4d 45 | 54 41 20 4e 41 4d 45 3d |-8">.<ME|TA NAME=|
|00000120| 22 76 69 65 77 70 6f 72 | 74 22 20 43 4f 4e 54 45 |"viewpor|t" CONTE|
|00000130| 4e 54 3d 22 77 69 64 74 | 68 3d 64 65 76 69 63 65 |NT="widt|h=device|
|00000140| 2d 77 69 64 74 68 2c 20 | 69 6e 69 74 69 61 6c 2d |-width, |initial-|
|00000150| 73 63 61 6c 65 3d 31 2e | 30 22 3e 0a 3c 4d 45 54 |scale=1.|0">.<MET|
|00000160| 41 20 4e 41 4d 45 3d 22 | 47 65 6e 65 72 61 74 6f |A NAME="|Generato|
|00000170| 72 22 20 43 4f 4e 54 45 | 4e 54 3d 22 4c 61 54 65 |r" CONTE|NT="LaTe|
|00000180| 58 32 48 54 4d 4c 20 76 | 32 30 32 32 22 3e 0a 0a |X2HTML v|2022">..|
|00000190| 3c 4c 49 4e 4b 20 52 45 | 4c 3d 22 53 54 59 4c 45 |<LINK RE|L="STYLE|
|000001a0| 53 48 45 45 54 22 20 48 | 52 45 46 3d 22 41 70 70 |SHEET" H|REF="App|
|000001b0| 65 6e 64 69 78 2d 43 2e | 63 73 73 22 3e 0a 0a 3c |endix-C.|css">..<|
|000001c0| 4c 49 4e 4b 20 52 45 4c | 3d 22 6e 65 78 74 22 20 |LINK REL|="next" |
|000001d0| 48 52 45 46 3d 22 6e 6f | 64 65 37 5f 6d 6e 2e 68 |HREF="no|de7_mn.h|
|000001e0| 74 6d 6c 22 3e 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |tml">.<L|INK REL=|
|000001f0| 22 70 72 65 76 69 6f 75 | 73 22 20 48 52 45 46 3d |"previou|s" HREF=|
|00000200| 22 6e 6f 64 65 35 5f 6d | 6e 2e 68 74 6d 6c 22 3e |"node5_m|n.html">|
|00000210| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 75 70 22 20 |.<LINK R|EL="up" |
|00000220| 48 52 45 46 3d 22 6e 6f | 64 65 34 5f 6d 6e 2e 68 |HREF="no|de4_mn.h|
|00000230| 74 6d 6c 22 3e 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |tml">.<L|INK REL=|
|00000240| 22 6e 65 78 74 22 20 48 | 52 45 46 3d 22 6e 6f 64 |"next" H|REF="nod|
|00000250| 65 37 5f 6d 6e 2e 68 74 | 6d 6c 22 3e 0a 3c 2f 48 |e7_mn.ht|ml">.</H|
|00000260| 45 41 44 3e 0a 20 0a 3c | 42 4f 44 59 20 62 67 63 |EAD>. .<|BODY bgc|
|00000270| 6f 6c 6f 72 3d 22 23 66 | 66 66 66 66 66 22 20 74 |olor="#f|fffff" t|
|00000280| 65 78 74 3d 22 23 30 30 | 30 30 30 30 22 20 6c 69 |ext="#00|0000" li|
|00000290| 6e 6b 3d 22 23 39 39 34 | 34 45 45 22 20 76 6c 69 |nk="#994|4EE" vli|
|000002a0| 6e 6b 3d 22 23 30 30 30 | 30 66 66 22 20 61 6c 69 |nk="#000|0ff" ali|
|000002b0| 6e 6b 3d 22 23 30 30 66 | 66 30 30 22 3e 0a 0a 3c |nk="#00f|f00">..<|
|000002c0| 48 32 3e 3c 41 20 49 44 | 3d 22 53 45 43 54 49 4f |H2><A ID|="SECTIO|
|000002d0| 4e 30 30 30 33 32 30 30 | 30 30 30 30 30 30 30 30 |N0003200|00000000|
|000002e0| 30 30 30 30 30 22 3e 0a | 49 6e 73 74 61 6e 63 65 |00000">.|Instance|
|000002f0| 20 63 72 65 61 74 69 6f | 6e 20 61 6e 64 20 73 6c | creatio|n and sl|
|00000300| 6f 74 20 61 63 63 65 73 | 73 3c 2f 41 3e 0a 3c 2f |ot acces|s</A>.</|
|00000310| 48 32 3e 0a 0a 3c 50 3e | 0a 43 72 65 61 74 69 6f |H2>..<P>|.Creatio|
|00000320| 6e 20 6f 66 20 61 6e 20 | 69 6e 73 74 61 6e 63 65 |n of an |instance|
|00000330| 69 6e 73 74 61 6e 63 65 | 20 6f 66 20 61 20 70 72 |instance| of a pr|
|00000340| 65 76 69 6f 75 73 6c 79 | 20 64 65 66 69 6e 65 64 |eviously| defined|
|00000350| 0a 63 6c 61 73 73 20 63 | 61 6e 20 62 65 20 64 6f |.class c|an be do|
|00000360| 6e 65 20 77 69 74 68 20 | 74 68 65 20 3c 54 54 3e |ne with |the <TT>|
|00000370| 6d 61 6b 65 3c 2f 54 54 | 3e 6d 61 6b 65 20 70 72 |make</TT|>make pr|
|00000380| 6f 63 65 64 75 72 65 2e | 20 54 68 69 73 0a 70 72 |ocedure.| This.pr|
|00000390| 6f 63 65 64 75 72 65 20 | 74 61 6b 65 73 20 6f 6e |ocedure |takes on|
|000003a0| 65 20 6d 61 6e 64 61 74 | 6f 72 79 20 70 61 72 61 |e mandat|ory para|
|000003b0| 6d 65 74 65 72 20 77 68 | 69 63 68 20 69 73 20 74 |meter wh|ich is t|
|000003c0| 68 65 20 63 6c 61 73 73 | 20 6f 66 20 74 68 65 0a |he class| of the.|
|000003d0| 69 6e 73 74 61 6e 63 65 | 20 77 68 69 63 68 20 6d |instance| which m|
|000003e0| 75 73 74 20 62 65 20 63 | 72 65 61 74 65 64 20 61 |ust be c|reated a|
|000003f0| 6e 64 20 61 20 6c 69 73 | 74 20 6f 66 20 6f 70 74 |nd a lis|t of opt|
|00000400| 69 6f 6e 61 6c 0a 61 72 | 67 75 6d 65 6e 74 73 2e |ional.ar|guments.|
|00000410| 20 4f 70 74 69 6f 6e 61 | 6c 20 61 72 67 75 6d 65 | Optiona|l argume|
|00000420| 6e 74 73 20 61 72 65 20 | 67 65 6e 65 72 61 6c 6c |nts are |generall|
|00000430| 79 20 75 73 65 64 20 74 | 6f 20 69 6e 69 74 69 61 |y used t|o initia|
|00000440| 6c 69 7a 65 20 73 6f 6d | 65 0a 73 6c 6f 74 73 20 |lize som|e.slots |
|00000450| 6f 66 20 74 68 65 20 6e | 65 77 6c 79 20 63 72 65 |of the n|ewly cre|
|00000460| 61 74 65 64 20 69 6e 73 | 74 61 6e 63 65 2e 20 46 |ated ins|tance. F|
|00000470| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 74 68 65 |or insta|nce, the|
|00000480| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 66 6f 72 6d 0a | followi|ng form.|
|00000490| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|000004a0| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|000004b0| 32 2e 31 37 65 78 3b 20 | 76 65 72 74 69 63 61 6c |2.17ex; |vertical|
|000004c0| 2d 61 6c 69 67 6e 3a 20 | 31 37 36 2e 35 35 65 78 |-align: |176.55ex|
|000004d0| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 37 2e 70 6e |; " SRC=|"img7.pn|
|000004e0| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|000004f0| 73 63 68 65 6d 65 7d 0a | 28 64 65 66 69 6e 65 20 |scheme}.|(define |
|00000500| 63 20 28 6d 61 6b 65 20 | 26 6c 74 3b 63 6f 6d 70 |c (make |&lt;comp|
|00000510| 6c 65 78 26 67 74 3b 29 | 29 0a 5c 65 6e 64 7b 73 |lex&gt;)|).\end{s|
|00000520| 63 68 65 6d 65 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |cheme}">|.<BR>..<|
|00000530| 50 3e 0a 77 69 6c 6c 20 | 63 72 65 61 74 65 20 61 |P>.will |create a|
|00000540| 20 6e 65 77 20 3c 54 54 | 3e 26 6c 74 3b 63 6f 6d | new <TT|>&lt;com|
|00000550| 70 6c 65 78 26 67 74 3b | 3c 2f 54 54 3e 20 6f 62 |plex&gt;|</TT> ob|
|00000560| 6a 65 63 74 20 61 6e 64 | 20 77 69 6c 6c 20 62 69 |ject and| will bi|
|00000570| 6e 64 20 69 74 20 74 6f | 20 74 68 65 20 3c 54 54 |nd it to| the <TT|
|00000580| 3e 63 3c 2f 54 54 3e 0a | 53 63 68 65 6d 65 20 76 |>c</TT>.|Scheme v|
|00000590| 61 72 69 61 62 6c 65 2e | 0a 0a 3c 50 3e 0a 41 63 |ariable.|..<P>.Ac|
|000005a0| 63 65 73 73 69 6e 67 20 | 74 68 65 20 73 6c 6f 74 |cessing |the slot|
|000005b0| 73 20 6f 66 20 74 68 65 | 20 6e 65 77 20 63 6f 6d |s of the| new com|
|000005c0| 70 6c 65 78 20 6e 75 6d | 62 65 72 20 63 61 6e 20 |plex num|ber can |
|000005d0| 62 65 20 64 6f 6e 65 20 | 77 69 74 68 20 74 68 65 |be done |with the|
|000005e0| 20 3c 54 54 3e 73 6c 6f | 74 2d 72 65 66 3c 2f 54 | <TT>slo|t-ref</T|
|000005f0| 54 3e 73 6c 6f 74 2d 72 | 65 66 20 61 6e 64 20 74 |T>slot-r|ef and t|
|00000600| 68 65 20 3c 54 54 3e 73 | 6c 6f 74 2d 73 65 74 21 |he <TT>s|lot-set!|
|00000610| 3c 2f 54 54 3e 73 6c 6f | 74 2d 73 65 74 21 0a 70 |</TT>slo|t-set!.p|
|00000620| 72 69 6d 69 74 69 76 65 | 73 2e 20 3c 54 54 3e 53 |rimitive|s. <TT>S|
|00000630| 6c 6f 74 2d 73 65 74 21 | 3c 2f 54 54 3e 20 70 72 |lot-set!|</TT> pr|
|00000640| 69 6d 69 74 69 76 65 20 | 70 65 72 6d 69 74 73 20 |imitive |permits |
|00000650| 74 6f 20 73 65 74 20 74 | 68 65 20 76 61 6c 75 65 |to set t|he value|
|00000660| 20 6f 66 20 61 6e 20 6f | 62 6a 65 63 74 0a 73 6c | of an o|bject.sl|
|00000670| 6f 74 20 61 6e 64 20 3c | 54 54 3e 73 6c 6f 74 2d |ot and <|TT>slot-|
|00000680| 72 65 66 3c 2f 54 54 3e | 20 70 65 72 6d 69 74 73 |ref</TT>| permits|
|00000690| 20 74 6f 20 67 65 74 20 | 69 74 73 20 76 61 6c 75 | to get |its valu|
|000006a0| 65 2e 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |e...<P>.|<BR>.<IM|
|000006b0| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|000006c0| 74 3a 20 32 2e 33 38 65 | 78 3b 20 76 65 72 74 69 |t: 2.38e|x; verti|
|000006d0| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 32 |cal-alig|n: 176.2|
|000006e0| 37 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 38 |7ex; " S|RC="img8|
|000006f0| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000700| 69 6e 7b 73 63 68 65 6d | 65 7d 0a 28 73 6c 6f 74 |in{schem|e}.(slot|
|00000710| 2d 73 65 74 21 20 63 20 | 27 72 20 31 30 29 0a 28 |-set! c |'r 10).(|
|00000720| 73 6c 6f 74 2d 73 65 74 | 21 20 63 20 27 69 20 33 |slot-set|! c 'i 3|
|00000730| 29 0a 28 73 6c 6f 74 2d | 72 65 66 20 63 20 27 72 |).(slot-|ref c 'r|
|00000740| 29 20 5c 6c 65 76 20 31 | 30 0a 28 73 6c 6f 74 2d |) \lev 1|0.(slot-|
|00000750| 72 65 66 20 63 20 27 69 | 29 20 5c 6c 65 76 20 33 |ref c 'i|) \lev 3|
|00000760| 0a 5c 65 6e 64 7b 73 63 | 68 65 6d 65 7d 22 3e 0a |.\end{sc|heme}">.|
|00000770| 3c 42 52 3e 0a 0a 3c 50 | 3e 0a 55 73 69 6e 67 20 |<BR>..<P|>.Using |
|00000780| 74 68 65 20 64 65 73 63 | 72 69 62 65 20 67 65 6e |the desc|ribe gen|
|00000790| 65 72 69 63 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |eric fun|ction is|
|000007a0| 20 61 20 73 69 6d 70 6c | 65 20 77 61 79 20 74 6f | a simpl|e way to|
|000007b0| 20 73 65 65 20 61 6c 6c | 0a 74 68 65 20 73 6c 6f | see all|.the slo|
|000007c0| 74 73 20 6f 66 20 61 6e | 20 6f 62 6a 65 63 74 20 |ts of an| object |
|000007d0| 61 74 20 6f 6e 65 20 74 | 69 6d 65 3a 20 74 68 69 |at one t|ime: thi|
|000007e0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 70 72 69 6e 74 |s functi|on print|
|000007f0| 73 20 61 6c 6c 20 74 68 | 65 20 73 6c 6f 74 73 0a |s all th|e slots.|
|00000800| 6f 66 20 61 6e 20 6f 62 | 6a 65 63 74 20 6f 6e 20 |of an ob|ject on |
|00000810| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 6f 75 74 |the stan|dard out|
|00000820| 70 75 74 2e 20 46 6f 72 | 20 69 6e 73 74 61 6e 63 |put. For| instanc|
|00000830| 65 2c 20 74 68 65 20 65 | 78 70 72 65 73 73 69 6f |e, the e|xpressio|
|00000840| 6e 0a 0a 3c 50 3e 0a 3c | 42 52 3e 0a 3c 49 4d 47 |n..<P>.<|BR>.<IMG|
|00000850| 0a 20 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |. STYLE|="height|
|00000860| 3a 20 32 2e 33 38 65 78 | 3b 20 76 65 72 74 69 63 |: 2.38ex|; vertic|
|00000870| 61 6c 2d 61 6c 69 67 6e | 3a 20 31 37 36 2e 32 37 |al-align|: 176.27|
|00000880| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 39 2e |ex; " SR|C="img9.|
|00000890| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|000008a0| 6e 7b 73 63 68 65 6d 65 | 7d 0a 28 64 65 73 63 72 |n{scheme|}.(descr|
|000008b0| 69 62 65 20 63 29 0a 5c | 65 6e 64 7b 73 63 68 65 |ibe c).\|end{sche|
|000008c0| 6d 65 7d 22 3e 0a 3c 42 | 52 3e 0a 77 69 6c 6c 20 |me}">.<B|R>.will |
|000008d0| 70 72 69 6e 74 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |print th|e follow|
|000008e0| 69 6e 67 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 73 |ing info|rmations|
|000008f0| 20 6f 6e 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | on the |standard|
|00000900| 20 6f 75 74 70 75 74 3a | 0a 3c 42 52 3e 0a 3c 49 | output:|.<BR>.<I|
|00000910| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|00000920| 68 74 3a 20 32 2e 33 38 | 65 78 3b 20 76 65 72 74 |ht: 2.38|ex; vert|
|00000930| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 36 2e |ical-ali|gn: 176.|
|00000940| 32 37 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |27ex; " |SRC="img|
|00000950| 31 30 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |10.png".| ALT="\b|
|00000960| 65 67 69 6e 7b 73 63 68 | 65 6d 65 7d 0a 5c 73 68 |egin{sch|eme}.\sh|
|00000970| 61 72 70 73 69 67 6e 5b | 26 6c 74 3b 63 6f 6d 70 |arpsign[|&lt;comp|
|00000980| 6c 65 78 26 67 74 3b 20 | 31 32 32 33 39 38 5d 20 |lex&gt; |122398] |
|00000990| 69 73 20 61 6e 20 69 6e | 73 74 61 6e 63 65 20 6f |is an in|stance o|
|000009a0| 66 20 63 6c 61 73 73 20 | 26 6c 74 3b 63 6f 6d 70 |f class |&lt;comp|
|000009b0| 6c 65 78 26 67 74 3b 0a | 53 6c 6f 74 73 20 61 72 |lex&gt;.|Slots ar|
|000009c0| 65 3a 0a 72 20 3d 20 31 | 30 0a 69 20 3d 20 33 0a |e:.r = 1|0.i = 3.|
|000009d0| 5c 65 6e 64 7b 73 63 68 | 65 6d 65 7d 22 3e 0a 3c |\end{sch|eme}">.<|
|000009e0| 42 52 3e 0a 0a 3c 50 3e | 0a 0a 3c 48 52 3e 0a 0a |BR>..<P>|..<HR>..|
|000009f0| 3c 2f 42 4f 44 59 3e 0a | 3c 2f 48 54 4d 4c 3e 0a |</BODY>.|</HTML>.|
+--------+-------------------------+-------------------------+--------+--------+