home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
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, with CRLF, LF line terminators
| 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 54 68 | 65 20 4e 6f 2d 52 65 74 |ts of Th|e No-Ret|
|000000b0| 75 72 6e 20 2f 20 4d 75 | 6c 74 69 70 6c 65 2d 52 |urn / Mu|ltiple-R|
|000000c0| 65 74 75 72 6e 20 41 70 | 70 72 6f 61 63 68 3c 2f |eturn Ap|proach</|
|000000d0| 54 49 54 4c 45 3e 0a 0a | 3c 4d 45 54 41 20 48 54 |TITLE>..|<META HT|
|000000e0| 54 50 2d 45 51 55 49 56 | 3d 22 43 6f 6e 74 65 6e |TP-EQUIV|="Conten|
|000000f0| 74 2d 54 79 70 65 22 20 | 43 4f 4e 54 45 4e 54 3d |t-Type" |CONTENT=|
|00000100| 22 74 65 78 74 2f 68 74 | 6d 6c 3b 20 63 68 61 72 |"text/ht|ml; char|
|00000110| 73 65 74 3d 75 74 66 2d | 38 22 3e 0a 3c 4d 45 54 |set=utf-|8">.<MET|
|00000120| 41 20 4e 41 4d 45 3d 22 | 76 69 65 77 70 6f 72 74 |A NAME="|viewport|
|00000130| 22 20 43 4f 4e 54 45 4e | 54 3d 22 77 69 64 74 68 |" CONTEN|T="width|
|00000140| 3d 64 65 76 69 63 65 2d | 77 69 64 74 68 2c 20 69 |=device-|width, i|
|00000150| 6e 69 74 69 61 6c 2d 73 | 63 61 6c 65 3d 31 2e 30 |nitial-s|cale=1.0|
|00000160| 22 3e 0a 3c 4d 45 54 41 | 20 4e 41 4d 45 3d 22 47 |">.<META| NAME="G|
|00000170| 65 6e 65 72 61 74 6f 72 | 22 20 43 4f 4e 54 45 4e |enerator|" CONTEN|
|00000180| 54 3d 22 4c 61 54 65 58 | 32 48 54 4d 4c 20 76 32 |T="LaTeX|2HTML v2|
|00000190| 30 32 32 22 3e 0a 0a 3c | 4c 49 4e 4b 20 52 45 4c |022">..<|LINK REL|
|000001a0| 3d 22 53 54 59 4c 45 53 | 48 45 45 54 22 20 48 52 |="STYLES|HEET" HR|
|000001b0| 45 46 3d 22 4d 50 54 48 | 44 2e 63 73 73 22 3e 0a |EF="MPTH|D.css">.|
|000001c0| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 6e 65 78 74 |.<LINK R|EL="next|
|000001d0| 22 20 48 52 45 46 3d 22 | 6e 6f 64 65 34 5f 6d 6e |" HREF="|node4_mn|
|000001e0| 2e 68 74 6d 6c 22 3e 0a | 3c 4c 49 4e 4b 20 52 45 |.html">.|<LINK RE|
|000001f0| 4c 3d 22 70 72 65 76 69 | 6f 75 73 22 20 48 52 45 |L="previ|ous" HRE|
|00000200| 46 3d 22 6e 6f 64 65 32 | 5f 6d 6e 2e 68 74 6d 6c |F="node2|_mn.html|
|00000210| 22 3e 0a 3c 4c 49 4e 4b | 20 52 45 4c 3d 22 75 70 |">.<LINK| REL="up|
|00000220| 22 20 48 52 45 46 3d 22 | 6e 6f 64 65 32 5f 6d 6e |" HREF="|node2_mn|
|00000230| 2e 68 74 6d 6c 22 3e 0a | 3c 4c 49 4e 4b 20 52 45 |.html">.|<LINK RE|
|00000240| 4c 3d 22 6e 65 78 74 22 | 20 48 52 45 46 3d 22 6e |L="next"| HREF="n|
|00000250| 6f 64 65 34 5f 6d 6e 2e | 68 74 6d 6c 22 3e 0a 3c |ode4_mn.|html">.<|
|00000260| 2f 48 45 41 44 3e 0a 20 | 0a 3c 42 4f 44 59 20 62 |/HEAD>. |.<BODY b|
|00000270| 67 63 6f 6c 6f 72 3d 22 | 23 66 66 66 66 66 66 22 |gcolor="|#ffffff"|
|00000280| 20 74 65 78 74 3d 22 23 | 30 30 30 30 30 30 22 20 | text="#|000000" |
|00000290| 6c 69 6e 6b 3d 22 23 39 | 39 34 34 45 45 22 20 76 |link="#9|944EE" v|
|000002a0| 6c 69 6e 6b 3d 22 23 30 | 30 30 30 66 66 22 20 61 |link="#0|000ff" a|
|000002b0| 6c 69 6e 6b 3d 22 23 30 | 30 66 66 30 30 22 3e 0a |link="#0|0ff00">.|
|000002c0| 0a 3c 48 32 3e 3c 41 20 | 49 44 3d 22 53 45 43 54 |.<H2><A |ID="SECT|
|000002d0| 49 4f 4e 30 30 30 32 31 | 30 30 30 30 30 30 30 30 |ION00021|00000000|
|000002e0| 30 30 30 30 30 30 30 22 | 3e 0a 54 68 65 20 4e 6f |0000000"|>.The No|
|000002f0| 2d 52 65 74 75 72 6e 20 | 2f 20 4d 75 6c 74 69 70 |-Return |/ Multip|
|00000300| 6c 65 2d 52 65 74 75 72 | 6e 20 41 70 70 72 6f 61 |le-Retur|n Approa|
|00000310| 63 68 3c 2f 41 3e 0a 3c | 2f 48 32 3e 0a 0a 3c 50 |ch</A>.<|/H2>..<P|
|00000320| 3e 0a 49 6e 20 74 68 69 | 73 20 61 70 70 72 6f 61 |>.In thi|s approa|
|00000330| 63 68 2c 20 77 65 20 63 | 72 65 61 74 65 20 74 77 |ch, we c|reate tw|
|00000340| 6f 20 73 70 65 63 69 61 | 6c 20 66 75 6e 63 74 69 |o specia|l functi|
|00000350| 6f 6e 73 20 66 6f 72 20 | 63 6f 6e 74 65 78 74 20 |ons for |context |
|00000360| 73 77 69 74 63 68 69 6e | 67 2e 0d 0a 4f 6e 65 20 |switchin|g...One |
|00000370| 66 75 6e 63 74 69 6f 6e | 20 68 61 73 20 74 68 65 |function| has the|
|00000380| 20 73 70 65 63 69 61 6c | 20 70 72 6f 70 65 72 74 | special| propert|
|00000390| 79 20 74 68 61 74 20 69 | 74 20 6e 65 76 65 72 20 |y that i|t never |
|000003a0| 72 65 74 75 72 6e 73 2c | 20 62 75 74 20 72 65 73 |returns,| but res|
|000003b0| 74 6f 72 65 73 0d 0a 61 | 20 70 72 69 6f 72 20 63 |tores..a| prior c|
|000003c0| 6f 6e 74 65 78 74 2e 20 | 20 41 73 20 61 20 63 6f |ontext. | As a co|
|000003d0| 6d 70 6c 69 6d 65 6e 74 | 2c 20 74 68 65 20 6f 74 |mpliment|, the ot|
|000003e0| 68 65 72 20 66 75 6e 63 | 74 69 6f 6e 20 68 61 73 |her func|tion has|
|000003f0| 20 74 68 65 20 73 70 65 | 63 69 61 6c 0d 0a 70 72 | the spe|cial..pr|
|00000400| 6f 70 65 72 74 79 20 74 | 68 61 74 20 69 74 20 63 |operty t|hat it c|
|00000410| 61 6e 20 72 65 74 75 72 | 6e 20 6d 75 6c 74 69 70 |an retur|n multip|
|00000420| 6c 65 20 74 69 6d 65 73 | 20 62 79 20 66 69 72 73 |le times| by firs|
|00000430| 74 20 73 61 76 69 6e 67 | 20 74 68 65 20 63 75 72 |t saving| the cur|
|00000440| 72 65 6e 74 0d 0a 63 6f | 6e 74 65 78 74 20 28 73 |rent..co|ntext (s|
|00000450| 65 65 20 66 69 67 75 72 | 65 20 62 65 6c 6f 77 29 |ee figur|e below)|
|00000460| 20 28 43 20 61 6c 72 65 | 61 64 79 20 70 72 6f 76 | (C alre|ady prov|
|00000470| 69 64 65 73 20 61 20 70 | 72 69 6d 69 74 69 76 65 |ides a p|rimitive|
|00000480| 20 66 6f 72 6d 20 6f 66 | 20 74 68 65 73 65 20 66 | form of| these f|
|00000490| 75 6e 63 74 69 6f 6e 73 | 20 77 69 74 68 0d 0a 74 |unctions| with..t|
|000004a0| 68 65 20 3c 49 3e 6c 6f | 6e 67 6a 6d 70 3c 2f 49 |he <I>lo|ngjmp</I|
|000004b0| 3e 20 61 6e 64 20 3c 49 | 3e 73 65 74 6a 6d 70 3c |> and <I|>setjmp<|
|000004c0| 2f 49 3e 20 63 6f 6d 6d | 61 6e 64 73 20 72 65 73 |/I> comm|ands res|
|000004d0| 70 65 63 74 69 76 65 6c | 79 2c 20 77 68 69 63 68 |pectivel|y, which|
|000004e0| 20 61 72 65 0d 0a 74 61 | 69 6c 6f 72 65 64 20 74 | are..ta|ilored t|
|000004f0| 6f 20 74 68 65 20 63 6f | 6d 70 69 6c 65 72 20 6a |o the co|mpiler j|
|00000500| 75 73 74 20 74 6f 20 73 | 61 76 65 20 74 68 65 20 |ust to s|ave the |
|00000510| 63 75 72 72 65 6e 74 20 | 60 60 43 27 27 20 73 74 |current |``C'' st|
|00000520| 61 74 65 2e 29 20 20 54 | 68 65 73 65 0d 0a 66 75 |ate.) T|hese..fu|
|00000530| 6e 63 74 69 6f 6e 73 20 | 70 72 6f 76 69 64 65 20 |nctions |provide |
|00000540| 61 20 67 72 65 61 74 20 | 66 6c 65 78 69 62 69 6c |a great |flexibil|
|00000550| 69 74 79 20 61 74 20 74 | 68 65 20 63 6f 73 74 20 |ity at t|he cost |
|00000560| 6f 66 20 63 6f 6d 70 6c | 65 78 69 74 79 2e 0d 0a |of compl|exity...|
|00000570| 54 68 65 20 6e 6f 74 69 | 6f 6e 20 6f 66 20 61 20 |The noti|on of a |
|00000580| 66 75 6e 63 74 69 6f 6e | 20 74 68 61 74 20 6e 65 |function| that ne|
|00000590| 76 65 72 20 72 65 74 75 | 72 6e 73 20 6f 72 20 61 |ver retu|rns or a|
|000005a0| 20 66 75 6e 63 74 69 6f | 6e 20 77 68 69 63 68 20 | functio|n which |
|000005b0| 72 65 74 75 72 6e 73 0d | 0a 6d 75 6c 74 69 70 6c |returns.|.multipl|
|000005c0| 65 20 74 69 6d 65 73 20 | 69 73 20 61 20 6c 69 74 |e times |is a lit|
|000005d0| 74 6c 65 20 73 74 72 61 | 6e 67 65 20 61 6e 64 20 |tle stra|nge and |
|000005e0| 75 6e 63 6f 6e 76 65 6e | 74 69 6f 6e 61 6c 2e 20 |unconven|tional. |
|000005f0| 20 41 6e 64 20 69 74 20 | 69 73 20 65 61 73 79 20 | And it |is easy |
|00000600| 74 6f 0d 0a 60 60 73 63 | 72 65 77 20 75 70 27 27 |to..``sc|rew up''|
|00000610| 20 62 79 20 64 6f 69 6e | 67 20 73 75 63 68 20 74 | by doin|g such t|
|00000620| 68 69 6e 67 73 20 61 73 | 20 3c 49 3e 6c 6f 6e 67 |hings as| <I>long|
|00000630| 6a 6d 70 3c 2f 49 3e 69 | 6e 67 20 69 6e 74 6f 20 |jmp</I>i|ng into |
|00000640| 61 6e 20 75 6e 73 61 76 | 65 64 20 6f 72 20 65 78 |an unsav|ed or ex|
|00000650| 70 69 72 65 64 0d 0a 63 | 6f 6e 74 65 78 74 2c 20 |pired..c|ontext, |
|00000660| 6f 72 20 6d 69 78 69 6e | 67 20 75 70 20 74 68 65 |or mixin|g up the|
|00000670| 20 64 69 66 66 65 72 65 | 6e 74 20 72 65 74 75 72 | differe|nt retur|
|00000680| 6e 73 20 66 72 6f 6d 20 | 3c 49 3e 73 65 74 6a 6d |ns from |<I>setjm|
|00000690| 70 3c 2f 49 3e 2e 20 20 | 53 6f 6d 65 0d 0a 68 69 |p</I>. |Some..hi|
|000006a0| 67 68 65 72 2d 6c 65 76 | 65 6c 20 61 70 70 72 6f |gher-lev|el appro|
|000006b0| 61 63 68 20 6d 61 79 20 | 62 65 20 6d 6f 72 65 20 |ach may |be more |
|000006c0| 61 70 70 72 6f 70 72 69 | 61 74 65 2e 2e 2e 0a 0a |appropri|ate.....|
|000006d0| 3c 50 3e 0a 0a 3c 44 49 | 56 20 63 6c 61 73 73 3d |<P>..<DI|V class=|
|000006e0| 22 43 45 4e 54 45 52 22 | 3e 3c 41 20 49 44 3d 22 |"CENTER"|><A ID="|
|000006f0| 34 34 22 3e 3c 2f 41 3e | 0a 3c 54 41 42 4c 45 3e |44"></A>|.<TABLE>|
|00000700| 0a 3c 43 41 50 54 49 4f | 4e 20 63 6c 61 73 73 3d |.<CAPTIO|N class=|
|00000710| 22 42 4f 54 54 4f 4d 22 | 3e 3c 53 54 52 4f 4e 47 |"BOTTOM"|><STRONG|
|00000720| 3e 46 69 67 75 72 65 3a | 3c 2f 53 54 52 4f 4e 47 |>Figure:|</STRONG|
|00000730| 3e 0a 43 6f 6e 74 72 6f | 6c 20 46 6c 6f 77 20 6f |>.Contro|l Flow o|
|00000740| 66 20 74 68 65 20 54 77 | 6f 20 41 70 70 72 6f 61 |f the Tw|o Approa|
|00000750| 63 68 65 73 20 74 6f 20 | 43 6f 6e 74 65 78 74 20 |ches to |Context |
|00000760| 53 77 69 74 63 68 69 6e | 67 3c 2f 43 41 50 54 49 |Switchin|g</CAPTI|
|00000770| 4f 4e 3e 0a 3c 54 52 3e | 3c 54 44 3e 3c 49 4d 47 |ON>.<TR>|<TD><IMG|
|00000780| 0a 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a |. STYLE=|"height:|
|00000790| 20 33 31 34 2e 30 30 65 | 78 3b 20 22 20 53 52 43 | 314.00e|x; " SRC|
|000007a0| 3d 22 69 6d 67 31 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img1.p|ng". ALT|
|000007b0| 3d 22 5c 62 65 67 69 6e | 7b 66 69 67 75 72 65 7d |="\begin|{figure}|
|000007c0| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|000007d0| 7d 0a 4e 6f 2d 52 65 74 | 75 72 6e 20 2f 20 4d 75 |}.No-Ret|urn / Mu|
|000007e0| 6c 74 69 70 6c 65 2d 52 | 65 74 75 72 6e 20 53 77 |ltiple-R|eturn Sw|
|000007f0| 69 74 63 68 20 46 75 6e | 63 74 2e 2e 2e 0a 2e 2e |itch Fun|ct......|
|00000800| 2e 76 65 72 74 20 5c 76 | 65 72 74 20 2a 20 5c 76 |.vert \v|ert * \v|
|00000810| 65 72 74 20 5c 76 65 72 | 74 0a 56 20 56 20 2a 20 |ert \ver|t.V V * |
|00000820| 56 20 56 0a 78 20 31 20 | 2a 20 79 20 31 0a 2a 5c |V V.x 1 |* y 1.*\|
|00000830| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 5c 65 |end{verb|atim}.\e|
|00000840| 6e 64 7b 66 69 67 75 72 | 65 7d 22 3e 3c 2f 54 44 |nd{figur|e}"></TD|
|00000850| 3e 3c 2f 54 52 3e 0a 3c | 2f 54 41 42 4c 45 3e 0a |></TR>.<|/TABLE>.|
|00000860| 3c 2f 44 49 56 3e 0a 0a | 3c 50 3e 0a 0a 3c 48 52 |</DIV>..|<P>..<HR|
|00000870| 3e 0a 0a 3c 2f 42 4f 44 | 59 3e 0a 3c 2f 48 54 4d |>..</BOD|Y>.</HTM|
|00000880| 4c 3e 0a | |L>. | |
+--------+-------------------------+-------------------------+--------+--------+