home *** CD-ROM | disk | FTP | other *** search
Unknown | 1995-07-02 | 878.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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| Kopftext: 'HELP('
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 48 45 4c 50 28 00 00 00 | c9 00 00 00 2c 00 00 00 |HELP(...|....,...|
|00000010| 18 34 00 00 00 fd ff ff | 00 00 00 00 80 02 00 00 |.4......|........|
|00000020| 00 01 00 00 00 00 00 00 | 24 00 00 00 46 52 45 45 |........|$...FREE|
|00000030| 54 00 00 00 ff ff ff ff | 80 00 00 00 46 ff ff ff |T.......|....F...|
|00000040| d3 0e e5 2a 9c 03 00 00 | 13 00 00 00 00 00 00 00 |...*....|........|
|00000050| 21 52 6f 6f 74 00 00 00 | 1c 04 00 00 46 ff ff ff |!Root...|....F...|
|00000060| 32 18 e5 2a 42 04 00 00 | 13 00 00 00 00 00 00 00 |2..*B...|........|
|00000070| 41 63 63 65 73 73 43 6f | 6e 74 00 00 02 ec 8e e3 |AccessCo|nt......|
|00000080| 44 41 54 41 9c 03 00 00 | 54 6f 70 0a 50 72 65 76 |DATA....|Top.Prev|
|00000090| 69 6f 75 73 3a 20 3c 28 | 64 69 72 29 3d 3e 64 69 |ious: <(|dir)=>di|
|000000a0| 72 3e 20 2a 20 4e 65 78 | 74 3a 20 3c 4c 69 6d 69 |r> * Nex|t: <Limi|
|000000b0| 74 61 74 69 6f 6e 73 20 | 6f 66 20 67 2b 2b 3d 3e |tations |of g++=>|
|000000c0| 4c 69 6d 69 74 61 74 69 | 6f 6e 3e 20 2a 20 55 70 |Limitati|on> * Up|
|000000d0| 3a 20 3c 28 64 69 72 29 | 3d 3e 64 69 72 3e 0a 0a |: <(dir)|=>dir>..|
|000000e0| 23 57 72 61 70 20 6f 6e | 0a 7b 66 48 32 7d 49 6e |#Wrap on|.{fH2}In|
|000000f0| 74 65 72 6e 61 6c 20 41 | 72 63 68 69 74 65 63 74 |ternal A|rchitect|
|00000100| 75 72 65 20 6f 66 20 74 | 68 65 20 43 6f 6d 70 69 |ure of t|he Compi|
|00000110| 6c 65 72 7b 66 7d 0a 0a | 54 68 69 73 20 69 73 20 |ler{f}..|This is |
|00000120| 6d 65 61 6e 74 20 74 6f | 20 64 65 73 63 72 69 62 |meant to| describ|
|00000130| 65 20 74 68 65 20 43 2b | 2b 20 66 72 6f 6e 74 2d |e the C+|+ front-|
|00000140| 65 6e 64 20 66 6f 72 20 | 67 63 63 20 69 6e 20 64 |end for |gcc in d|
|00000150| 65 74 61 69 6c 2e 0a 51 | 75 65 73 74 69 6f 6e 73 |etail..Q|uestions|
|00000160| 20 61 6e 64 20 63 6f 6d | 6d 65 6e 74 73 20 74 6f | and com|ments to|
|00000170| 20 6d 72 73 40 63 79 67 | 6e 75 73 2e 63 6f 6d 2e | mrs@cyg|nus.com.|
|00000180| 0a 0a 23 57 72 61 70 20 | 6f 66 66 0a 3c 4c 69 6d |..#Wrap |off.<Lim|
|00000190| 69 74 61 74 69 6f 6e 73 | 20 6f 66 20 67 2b 2b 3d |itations| of g++=|
|000001a0| 3e 4c 69 6d 69 74 61 74 | 69 6f 6e 3e 3a 20 20 20 |>Limitat|ion>: |
|000001b0| 20 20 20 20 20 20 20 0a | 3c 52 6f 75 74 69 6e 65 | .|<Routine|
|000001c0| 73 3d 3e 52 6f 75 74 69 | 6e 65 73 3e 3a 20 20 20 |s=>Routi|nes>: |
|000001d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001e0| 20 0a 3c 49 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f | .<Imple|mentatio|
|000001f0| 6e 20 53 70 65 63 69 66 | 69 63 73 3d 3e 49 6d 70 |n Specif|ics=>Imp|
|00000200| 6c 65 6d 65 6e 74 61 3e | 3a 20 20 20 20 0a 3c 47 |lementa>|: .<G|
|00000210| 6c 6f 73 73 61 72 79 3d | 3e 47 6c 6f 73 73 61 72 |lossary=|>Glossar|
|00000220| 79 3e 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |y>: | |
|00000230| 20 20 20 20 20 20 20 0a | 3c 4d 61 63 72 6f 73 3d | .|<Macros=|
|00000240| 3e 4d 61 63 72 6f 73 3e | 3a 20 20 20 20 20 20 20 |>Macros>|: |
|00000250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00000260| 3c 54 79 70 69 63 61 6c | 20 42 65 68 61 76 69 6f |<Typical| Behavio|
|00000270| 72 3d 3e 54 79 70 69 63 | 61 6c 42 65 68 3e 3a 20 |r=>Typic|alBeh>: |
|00000280| 20 20 20 20 20 20 20 20 | 20 20 20 0a 3c 43 6f 64 | | .<Cod|
|00000290| 69 6e 67 20 43 6f 6e 76 | 65 6e 74 69 6f 6e 73 3d |ing Conv|entions=|
|000002a0| 3e 43 6f 64 69 6e 67 43 | 6f 6e 76 3e 3a 20 20 20 |>CodingC|onv>: |
|000002b0| 20 20 20 20 20 20 20 0a | 3c 54 65 6d 70 6c 61 74 | .|<Templat|
|000002c0| 65 73 3d 3e 54 65 6d 70 | 6c 61 74 65 73 3e 3a 20 |es=>Temp|lates>: |
|000002d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002e0| 20 20 0a 3c 41 63 63 65 | 73 73 20 43 6f 6e 74 72 | .<Acce|ss Contr|
|000002f0| 6f 6c 3d 3e 41 63 63 65 | 73 73 43 6f 6e 74 3e 3a |ol=>Acce|ssCont>:|
|00000300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 3c | | .<|
|00000310| 45 72 72 6f 72 20 52 65 | 70 6f 72 74 69 6e 67 3d |Error Re|porting=|
|00000320| 3e 45 72 72 6f 72 52 65 | 70 6f 72 3e 3a 20 20 20 |>ErrorRe|por>: |
|00000330| 20 20 20 20 20 20 20 20 | 20 20 0a 3c 50 61 72 73 | | .<Pars|
|00000340| 65 72 3d 3e 50 61 72 73 | 65 72 3e 3a 20 20 20 20 |er=>Pars|er>: |
|00000350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000360| 20 20 0a 3c 43 6f 70 79 | 69 6e 67 20 4f 62 6a 65 | .<Copy|ing Obje|
|00000370| 63 74 73 3d 3e 43 6f 70 | 79 69 6e 67 4f 62 6a 3e |cts=>Cop|yingObj>|
|00000380| 3a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 3c |: | .<|
|00000390| 45 78 63 65 70 74 69 6f | 6e 20 48 61 6e 64 6c 69 |Exceptio|n Handli|
|000003a0| 6e 67 3d 3e 45 78 63 65 | 70 74 69 6f 6e 48 3e 3a |ng=>Exce|ptionH>:|
|000003b0| 20 20 20 20 20 20 20 20 | 20 20 0a 3c 46 72 65 65 | | .<Free|
|000003c0| 20 53 74 6f 72 65 3d 3e | 46 72 65 65 53 74 6f 72 | Store=>|FreeStor|
|000003d0| 65 3e 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e>: | |
|000003e0| 20 20 20 20 20 0a 3c 43 | 6f 6e 63 65 70 74 20 49 | .<C|oncept I|
|000003f0| 6e 64 65 78 3d 3e 43 6f | 6e 63 65 70 74 49 6e 64 |ndex=>Co|nceptInd|
|00000400| 3e 3a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |>: | |
|00000410| 20 0a 23 57 72 61 70 20 | 6f 6e 0a 0a 44 41 54 41 | .#Wrap |on..DATA|
|00000420| 42 04 00 00 41 63 63 65 | 73 73 20 43 6f 6e 74 72 |B...Acce|ss Contr|
|00000430| 6f 6c 0a 50 72 65 76 69 | 6f 75 73 3a 20 3c 54 65 |ol.Previ|ous: <Te|
|00000440| 6d 70 6c 61 74 65 73 3d | 3e 54 65 6d 70 6c 61 74 |mplates=|>Templat|
|00000450| 65 73 3e 20 2a 20 4e 65 | 78 74 3a 20 3c 45 72 72 |es> * Ne|xt: <Err|
|00000460| 6f 72 20 52 65 70 6f 72 | 74 69 6e 67 3d 3e 45 72 |or Repor|ting=>Er|
|00000470| 72 6f 72 52 65 70 6f 72 | 3e 20 2a 20 55 70 3a 20 |rorRepor|> * Up: |
|00000480| 3c 54 6f 70 3d 3e 21 52 | 6f 6f 74 3e 0a 0a 23 57 |<Top=>!R|oot>..#W|
|00000490| 72 61 70 20 6f 6e 0a 7b | 66 48 33 7d 41 63 63 65 |rap on.{|fH3}Acce|
|000004a0| 73 73 20 43 6f 6e 74 72 | 6f 6c 7b 66 7d 0a 54 68 |ss Contr|ol{f}.Th|
|000004b0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 63 6f 6d 70 75 |e functi|on compu|
|000004c0| 74 65 5c 5f 61 63 63 65 | 73 73 20 72 65 74 75 72 |te\_acce|ss retur|
|000004d0| 6e 73 20 6f 6e 65 20 6f | 66 20 74 68 72 65 65 20 |ns one o|f three |
|000004e0| 76 61 6c 75 65 73 3a 0a | 0a 23 49 6e 64 65 6e 74 |values:.|.#Indent|
|000004f0| 20 2b 34 0a 23 49 6e 64 | 65 6e 74 0a 7b 66 43 6f | +4.#Ind|ent.{fCo|
|00000500| 64 65 7d 61 63 63 65 73 | 73 5c 5f 70 75 62 6c 69 |de}acces|s\_publi|
|00000510| 63 7b 66 7d 0a 23 49 6e | 64 65 6e 74 20 2b 34 0a |c{f}.#In|dent +4.|
|00000520| 6d 65 61 6e 73 20 74 68 | 61 74 20 74 68 65 20 66 |means th|at the f|
|00000530| 69 65 6c 64 20 63 61 6e | 20 62 65 20 61 63 63 65 |ield can| be acce|
|00000540| 73 73 65 64 20 62 79 20 | 74 68 65 20 63 75 72 72 |ssed by |the curr|
|00000550| 65 6e 74 20 6c 65 78 69 | 63 61 6c 20 73 63 6f 70 |ent lexi|cal scop|
|00000560| 65 2e 0a 0a 23 49 6e 64 | 65 6e 74 0a 7b 66 43 6f |e...#Ind|ent.{fCo|
|00000570| 64 65 7d 61 63 63 65 73 | 73 5c 5f 70 72 6f 74 65 |de}acces|s\_prote|
|00000580| 63 74 65 64 7b 66 7d 0a | 23 49 6e 64 65 6e 74 20 |cted{f}.|#Indent |
|00000590| 2b 34 0a 6d 65 61 6e 73 | 20 74 68 61 74 20 74 68 |+4.means| that th|
|000005a0| 65 20 66 69 65 6c 64 20 | 63 61 6e 6e 6f 74 20 62 |e field |cannot b|
|000005b0| 65 20 61 63 63 65 73 73 | 65 64 20 62 79 20 74 68 |e access|ed by th|
|000005c0| 65 20 63 75 72 72 65 6e | 74 20 6c 65 78 69 63 61 |e curren|t lexica|
|000005d0| 6c 20 73 63 6f 70 65 0a | 62 65 63 61 75 73 65 20 |l scope.|because |
|000005e0| 69 74 20 69 73 20 70 72 | 6f 74 65 63 74 65 64 2e |it is pr|otected.|
|000005f0| 0a 0a 23 49 6e 64 65 6e | 74 0a 7b 66 43 6f 64 65 |..#Inden|t.{fCode|
|00000600| 7d 61 63 63 65 73 73 5c | 5f 70 72 69 76 61 74 65 |}access\|_private|
|00000610| 7b 66 7d 0a 23 49 6e 64 | 65 6e 74 20 2b 34 0a 6d |{f}.#Ind|ent +4.m|
|00000620| 65 61 6e 73 20 74 68 61 | 74 20 74 68 65 20 66 69 |eans tha|t the fi|
|00000630| 65 6c 64 20 63 61 6e 6e | 6f 74 20 62 65 20 61 63 |eld cann|ot be ac|
|00000640| 63 65 73 73 65 64 20 62 | 79 20 74 68 65 20 63 75 |cessed b|y the cu|
|00000650| 72 72 65 6e 74 20 6c 65 | 78 69 63 61 6c 20 73 63 |rrent le|xical sc|
|00000660| 6f 70 65 0a 62 65 63 61 | 75 73 65 20 69 74 20 69 |ope.beca|use it i|
|00000670| 73 20 70 72 69 76 61 74 | 65 2e 0a 0a 23 49 6e 64 |s privat|e...#Ind|
|00000680| 65 6e 74 0a 0a 44 45 43 | 4c 5c 5f 41 43 43 45 53 |ent..DEC|L\_ACCES|
|00000690| 53 20 69 73 20 75 73 65 | 64 20 66 6f 72 20 61 63 |S is use|d for ac|
|000006a0| 63 65 73 73 20 64 65 63 | 6c 61 72 61 74 69 6f 6e |cess dec|laration|
|000006b0| 73 3b 20 61 6c 74 65 72 | 5c 5f 61 63 63 65 73 73 |s; alter|\_access|
|000006c0| 20 63 72 65 61 74 65 73 | 20 61 20 6c 69 73 74 0a | creates| a list.|
|000006d0| 6f 66 20 74 79 70 65 73 | 20 61 6e 64 20 61 63 63 |of types| and acc|
|000006e0| 65 73 73 65 73 20 66 6f | 72 20 61 20 67 69 76 65 |esses fo|r a give|
|000006f0| 6e 20 64 65 63 6c 2e 0a | 0a 46 6f 72 6d 65 72 6c |n decl..|.Formerl|
|00000700| 79 2c 20 44 45 43 4c 5c | 5f 5c 7b 50 55 42 4c 49 |y, DECL\|_\{PUBLI|
|00000710| 43 2c 50 52 4f 54 45 43 | 54 45 44 2c 50 52 49 56 |C,PROTEC|TED,PRIV|
|00000720| 41 54 45 5c 7d 20 63 6f | 72 72 65 73 70 6f 6e 64 |ATE\} co|rrespond|
|00000730| 65 64 20 74 6f 20 74 68 | 65 20 72 65 74 75 72 6e |ed to th|e return|
|00000740| 0a 63 6f 64 65 73 20 6f | 66 20 63 6f 6d 70 75 74 |.codes o|f comput|
|00000750| 65 5c 5f 61 63 63 65 73 | 73 20 61 6e 64 20 77 65 |e\_acces|s and we|
|00000760| 72 65 20 75 73 65 64 20 | 61 73 20 61 20 63 61 63 |re used |as a cac|
|00000770| 68 65 20 66 6f 72 20 63 | 6f 6d 70 75 74 65 5c 5f |he for c|ompute\_|
|00000780| 61 63 63 65 73 73 2e 0a | 4e 6f 77 20 74 68 65 79 |access..|Now they|
|00000790| 20 61 72 65 20 6e 6f 74 | 20 75 73 65 64 20 61 74 | are not| used at|
|000007a0| 20 61 6c 6c 2e 0a 0a 54 | 52 45 45 5c 5f 50 52 4f | all...T|REE\_PRO|
|000007b0| 54 45 43 54 45 44 20 61 | 6e 64 20 54 52 45 45 5c |TECTED a|nd TREE\|
|000007c0| 5f 50 52 49 56 41 54 45 | 20 61 72 65 20 75 73 65 |_PRIVATE| are use|
|000007d0| 64 20 74 6f 20 72 65 63 | 6f 72 64 20 74 68 65 20 |d to rec|ord the |
|000007e0| 61 63 63 65 73 73 20 6c | 65 76 65 6c 73 0a 67 72 |access l|evels.gr|
|000007f0| 61 6e 74 65 64 20 62 79 | 20 74 68 65 20 63 6f 6e |anted by| the con|
|00000800| 74 61 69 6e 69 6e 67 20 | 63 6c 61 73 73 2e 20 20 |taining |class. |
|00000810| 42 45 57 41 52 45 3a 20 | 54 52 45 45 5c 5f 50 55 |BEWARE: |TREE\_PU|
|00000820| 42 4c 49 43 20 6d 65 61 | 6e 73 20 73 6f 6d 65 74 |BLIC mea|ns somet|
|00000830| 68 69 6e 67 0a 63 6f 6d | 70 6c 65 74 65 6c 79 20 |hing.com|pletely |
|00000840| 75 6e 72 65 6c 61 74 65 | 64 20 74 6f 20 61 63 63 |unrelate|d to acc|
|00000850| 65 73 73 20 63 6f 6e 74 | 72 6f 6c 21 0a 0a 00 00 |ess cont|rol!....|
|00000860| 44 41 54 41 44 01 00 00 | 54 79 70 69 63 61 6c 20 |DATAD...|Typical |
|00000870| 42 65 68 61 76 69 6f 72 | 0a 50 72 65 76 69 6f 75 |Behavior|.Previou|
|00000880| 73 3a 20 3c 4d 61 63 72 | 6f 73 3d 3e 4d 61 63 72 |s: <Macr|os=>Macr|
|00000890| 6f 73 3e 20 2a 20 4e 65 | 78 74 3a 20 3c 43 6f 64 |os> * Ne|xt: <Cod|
|000008a0| 69 6e 67 20 43 6f 6e 76 | 65 6e 74 69 6f 6e 73 3d |ing Conv|entions=|
|000008b0| 3e 43 6f 64 69 6e 67 43 | 6f 6e 76 3e 20 2a 20 55 |>CodingC|onv> * U|
|000008c0| 70 3a 20 3c 54 6f 70 3d | 3e 21 52 6f 6f 74 3e 0a |p: <Top=|>!Root>.|
|000008d0| 0a 23 57 72 61 70 20 6f | 6e 0a 7b 66 48 33 7d 54 |.#Wrap o|n.{fH3}T|
|000008e0| 79 70 69 63 61 6c 20 42 | 65 68 61 76 69 6f 72 7b |ypical B|ehavior{|
|000008f0| 66 7d 0a 0a 0a 57 68 65 | 6e 65 76 65 72 20 73 65 |f}...Whe|never se|
|00000900| 65 6d 69 6e 67 6c 79 20 | 6e 6f 72 6d 61 6c 20 63 |emingly |normal c|
|00000910| 6f 64 65 20 66 61 69 6c | 73 20 77 69 74 68 20 65 |ode fail|s with e|
|00000920| 72 72 6f 72 73 20 6c 69 | 6b 65 0a 7b 66 43 6f 64 |rrors li|ke.{fCod|
|00000930| 65 7d 73 79 6e 74 61 78 | 20 65 72 72 6f 72 20 61 |e}syntax| error a|
|00000940| 74 20 60 5c 5c 5c 7b 27 | 7b 66 7d 2c 20 69 74 27 |t `\\\{'|{f}, it'|
|00000950| 73 20 68 69 67 68 6c 79 | 20 6c 69 6b 65 6c 79 20 |s highly| likely |
|00000960| 74 68 61 74 20 67 72 6f | 6b 64 65 63 6c 61 72 61 |that gro|kdeclara|
|00000970| 74 6f 72 20 69 73 0a 72 | 65 74 75 72 6e 69 6e 67 |tor is.r|eturning|
|00000980| 20 61 20 4e 55 4c 4c 5c | 5f 54 52 45 45 20 66 6f | a NULL\|_TREE fo|
|00000990| 72 20 77 68 61 74 65 76 | 65 72 20 72 65 61 73 6f |r whatev|er reaso|
|000009a0| 6e 2e 0a 0a 73 61 72 79 | 00 00 00 00 ff ff ff ff |n...sary|........|
|000009b0| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|000009c0| 44 41 54 41 db 01 00 00 | 43 6f 64 69 6e 67 20 43 |DATA....|Coding C|
|000009d0| 6f 6e 76 65 6e 74 69 6f | 6e 73 0a 50 72 65 76 69 |onventio|ns.Previ|
|000009e0| 6f 75 73 3a 20 3c 54 79 | 70 69 63 61 6c 20 42 65 |ous: <Ty|pical Be|
|000009f0| 68 61 76 69 6f 72 3d 3e | 54 79 70 69 63 61 6c 42 |havior=>|TypicalB|
|00000a00| 65 68 3e 20 2a 20 4e 65 | 78 74 3a 20 3c 54 65 6d |eh> * Ne|xt: <Tem|
|00000a10| 70 6c 61 74 65 73 3d 3e | 54 65 6d 70 6c 61 74 65 |plates=>|Template|
|00000a20| 73 3e 20 2a 20 55 70 3a | 20 3c 54 6f 70 3d 3e 21 |s> * Up:| <Top=>!|
|00000a30| 52 6f 6f 74 3e 0a 0a 23 | 57 72 61 70 20 6f 6e 0a |Root>..#|Wrap on.|
|00000a40| 7b 66 48 33 7d 43 6f 64 | 69 6e 67 20 43 6f 6e 76 |{fH3}Cod|ing Conv|
|00000a50| 65 6e 74 69 6f 6e 73 7b | 66 7d 0a 0a 49 74 20 73 |entions{|f}..It s|
|00000a60| 68 6f 75 6c 64 20 6e 65 | 76 65 72 20 62 65 20 74 |hould ne|ver be t|
|00000a70| 68 61 74 20 63 61 73 65 | 20 74 68 61 74 20 74 72 |hat case| that tr|
|00000a80| 65 65 73 20 61 72 65 20 | 6d 6f 64 69 66 69 65 64 |ees are |modified|
|00000a90| 20 69 6e 2d 70 6c 61 63 | 65 20 62 79 20 74 68 65 | in-plac|e by the|
|00000aa0| 0a 62 61 63 6b 2d 65 6e | 64 2c 20 7b 66 45 6d 70 |.back-en|d, {fEmp|
|00000ab0| 68 61 73 69 73 7d 75 6e | 6c 65 73 73 7b 66 7d 20 |hasis}un|less{f} |
|00000ac0| 69 74 20 69 73 20 67 75 | 61 72 61 6e 74 65 65 64 |it is gu|aranteed|
|00000ad0| 20 74 68 61 74 20 74 68 | 65 20 73 65 6d 61 6e 74 | that th|e semant|
|00000ae0| 69 63 73 20 61 72 65 20 | 74 68 65 20 73 61 6d 65 |ics are |the same|
|00000af0| 0a 6e 6f 20 6d 61 74 74 | 65 72 20 68 6f 77 20 73 |.no matt|er how s|
|00000b00| 68 61 72 65 64 20 74 68 | 65 20 74 72 65 65 20 73 |hared th|e tree s|
|00000b10| 74 72 75 63 74 75 72 65 | 20 69 73 2e 20 20 7b 66 |tructure| is. {f|
|00000b20| 43 69 74 65 7d 66 6f 6c | 64 2d 63 6f 6e 73 74 2e |Cite}fol|d-const.|
|00000b30| 63 7b 66 7d 20 73 74 69 | 6c 6c 0a 68 61 73 20 73 |c{f} sti|ll.has s|
|00000b40| 6f 6d 65 20 63 61 73 65 | 73 20 77 68 65 72 65 20 |ome case|s where |
|00000b50| 74 68 69 73 20 69 73 20 | 6e 6f 74 20 74 72 75 65 |this is |not true|
|00000b60| 2c 20 62 75 74 20 72 6d | 73 20 68 79 70 6f 74 68 |, but rm|s hypoth|
|00000b70| 65 73 69 7a 65 73 20 74 | 68 61 74 20 74 68 69 73 |esizes t|hat this|
|00000b80| 0a 77 69 6c 6c 20 6e 65 | 76 65 72 20 62 65 20 61 |.will ne|ver be a|
|00000b90| 20 70 72 6f 62 6c 65 6d | 2e 0a 0a 00 44 41 54 41 | problem|....DATA|
|00000ba0| 3a 01 00 00 43 6f 6e 63 | 65 70 74 20 49 6e 64 65 |:...Conc|ept Inde|
|00000bb0| 78 0a 50 72 65 76 69 6f | 75 73 3a 20 3c 46 72 65 |x.Previo|us: <Fre|
|00000bc0| 65 20 53 74 6f 72 65 3d | 3e 46 72 65 65 53 74 6f |e Store=|>FreeSto|
|00000bd0| 72 65 3e 20 2a 20 55 70 | 3a 20 3c 54 6f 70 3d 3e |re> * Up|: <Top=>|
|00000be0| 21 52 6f 6f 74 3e 0a 0a | 23 57 72 61 70 20 6f 6e |!Root>..|#Wrap on|
|00000bf0| 0a 7b 66 48 33 7d 43 6f | 6e 63 65 70 74 20 49 6e |.{fH3}Co|ncept In|
|00000c00| 64 65 78 7b 66 7d 0a 0a | 23 57 72 61 70 20 6f 66 |dex{f}..|#Wrap of|
|00000c10| 66 0a 3c 61 63 63 65 73 | 73 20 63 68 65 63 6b 69 |f.<acces|s checki|
|00000c20| 6e 67 3d 3e 4c 69 6d 69 | 74 61 74 69 6f 6e 3e 0a |ng=>Limi|tation>.|
|00000c30| 3c 6d 75 6c 74 69 70 6c | 65 20 69 6e 68 65 72 69 |<multipl|e inheri|
|00000c40| 74 61 6e 63 65 3d 3e 4c | 69 6d 69 74 61 74 69 6f |tance=>L|imitatio|
|00000c50| 6e 3e 0a 3c 70 61 72 73 | 65 20 65 72 72 6f 72 73 |n>.<pars|e errors|
|00000c60| 3d 3e 54 79 70 69 63 61 | 6c 42 65 68 3e 0a 3c 70 |=>Typica|lBeh>.<p|
|00000c70| 6f 69 6e 74 65 72 73 20 | 74 6f 20 6d 65 6d 62 65 |ointers |to membe|
|00000c80| 72 73 3d 3e 4c 69 6d 69 | 74 61 74 69 6f 6e 3e 0a |rs=>Limi|tation>.|
|00000c90| 3c 70 75 73 68 64 65 63 | 6c 5c 5f 63 6c 61 73 73 |<pushdec|l\_class|
|00000ca0| 5c 5f 6c 65 76 65 6c 3d | 3e 4c 69 6d 69 74 61 74 |\_level=|>Limitat|
|00000cb0| 69 6f 6e 3e 0a 3c 76 6f | 6c 61 74 69 6c 65 3d 3e |ion>.<vo|latile=>|
|00000cc0| 4c 69 6d 69 74 61 74 69 | 6f 6e 3e 0a 23 57 72 61 |Limitati|on>.#Wra|
|00000cd0| 70 20 6f 6e 0a 0a 00 00 | 44 41 54 41 5e 04 00 00 |p on....|DATA^...|
|00000ce0| 43 6f 70 79 69 6e 67 20 | 4f 62 6a 65 63 74 73 0a |Copying |Objects.|
|00000cf0| 50 72 65 76 69 6f 75 73 | 3a 20 3c 50 61 72 73 65 |Previous|: <Parse|
|00000d00| 72 3d 3e 50 61 72 73 65 | 72 3e 20 2a 20 4e 65 78 |r=>Parse|r> * Nex|
|00000d10| 74 3a 20 3c 45 78 63 65 | 70 74 69 6f 6e 20 48 61 |t: <Exce|ption Ha|
|00000d20| 6e 64 6c 69 6e 67 3d 3e | 45 78 63 65 70 74 69 6f |ndling=>|Exceptio|
|00000d30| 6e 48 3e 20 2a 20 55 70 | 3a 20 3c 54 6f 70 3d 3e |nH> * Up|: <Top=>|
|00000d40| 21 52 6f 6f 74 3e 0a 0a | 23 57 72 61 70 20 6f 6e |!Root>..|#Wrap on|
|00000d50| 0a 7b 66 48 33 7d 43 6f | 70 79 69 6e 67 20 4f 62 |.{fH3}Co|pying Ob|
|00000d60| 6a 65 63 74 73 7b 66 7d | 0a 0a 54 68 65 20 67 65 |jects{f}|..The ge|
|00000d70| 6e 65 72 61 74 65 64 20 | 63 6f 70 79 20 61 73 73 |nerated |copy ass|
|00000d80| 69 67 6e 6d 65 6e 74 20 | 6f 70 65 72 61 74 6f 72 |ignment |operator|
|00000d90| 20 69 6e 20 67 2b 2b 20 | 64 6f 65 73 20 6e 6f 74 | in g++ |does not|
|00000da0| 20 63 75 72 72 65 6e 74 | 6c 79 20 64 6f 20 74 68 | current|ly do th|
|00000db0| 65 0a 72 69 67 68 74 20 | 74 68 69 6e 67 20 66 6f |e.right |thing fo|
|00000dc0| 72 20 6d 75 6c 74 69 70 | 6c 65 20 69 6e 68 65 72 |r multip|le inher|
|00000dd0| 69 74 61 6e 63 65 20 69 | 6e 76 6f 6c 76 69 6e 67 |itance i|nvolving|
|00000de0| 20 76 69 72 74 75 61 6c | 20 62 61 73 65 73 3b 20 | virtual| bases; |
|00000df0| 69 74 20 6a 75 73 74 0a | 63 61 6c 6c 73 20 74 68 |it just.|calls th|
|00000e00| 65 20 63 6f 70 79 20 61 | 73 73 69 67 6e 6d 65 6e |e copy a|ssignmen|
|00000e10| 74 20 6f 70 65 72 61 74 | 6f 72 73 20 66 6f 72 20 |t operat|ors for |
|00000e20| 69 74 73 20 64 69 72 65 | 63 74 20 62 61 73 65 73 |its dire|ct bases|
|00000e30| 2e 20 20 57 68 61 74 20 | 69 74 0a 73 68 6f 75 6c |. What |it.shoul|
|00000e40| 64 20 70 72 6f 62 61 62 | 6c 79 20 64 6f 20 69 73 |d probab|ly do is|
|00000e50| 3a 0a 0a 31 29 20 53 70 | 6c 69 74 20 75 70 20 74 |:..1) Sp|lit up t|
|00000e60| 68 65 20 63 6f 70 79 20 | 61 73 73 69 67 6e 6d 65 |he copy |assignme|
|00000e70| 6e 74 20 6f 70 65 72 61 | 74 6f 72 20 66 6f 72 20 |nt opera|tor for |
|00000e80| 61 6c 6c 20 63 6c 61 73 | 73 65 73 20 74 68 61 74 |all clas|ses that|
|00000e90| 20 68 61 76 65 0a 76 62 | 61 73 65 73 20 69 6e 74 | have.vb|ases int|
|00000ea0| 6f 20 22 63 6f 70 79 20 | 6d 79 20 76 62 61 73 65 |o "copy |my vbase|
|00000eb0| 73 22 20 61 6e 64 20 22 | 63 6f 70 79 20 65 76 65 |s" and "|copy eve|
|00000ec0| 72 79 74 68 69 6e 67 20 | 65 6c 73 65 22 20 70 61 |rything |else" pa|
|00000ed0| 72 74 73 2e 20 20 4f 72 | 20 64 6f 0a 74 68 65 20 |rts. Or| do.the |
|00000ee0| 74 72 69 63 6b 69 6e 65 | 73 73 20 74 68 61 74 20 |trickine|ss that |
|00000ef0| 74 68 65 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 73 |the cons|tructors|
|00000f00| 20 64 6f 20 74 6f 20 65 | 6e 73 75 72 65 20 74 68 | do to e|nsure th|
|00000f10| 61 74 20 76 62 61 73 65 | 73 20 64 6f 6e 27 74 20 |at vbase|s don't |
|00000f20| 67 65 74 0a 69 6e 69 74 | 69 61 6c 69 7a 65 64 20 |get.init|ialized |
|00000f30| 62 79 20 69 6e 74 65 72 | 6d 65 64 69 61 74 65 20 |by inter|mediate |
|00000f40| 62 61 73 65 73 2e 0a 0a | 32 29 20 57 61 6e 64 65 |bases...|2) Wande|
|00000f50| 72 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 63 6c |r throug|h the cl|
|00000f60| 61 73 73 20 6c 61 74 74 | 69 63 65 2c 20 66 69 6e |ass latt|ice, fin|
|00000f70| 64 20 61 6c 6c 20 76 62 | 61 73 65 73 20 66 6f 72 |d all vb|ases for|
|00000f80| 20 77 68 69 63 68 20 6e | 6f 0a 69 6e 74 65 72 6d | which n|o.interm|
|00000f90| 65 64 69 61 74 65 20 62 | 61 73 65 20 68 61 73 20 |ediate b|ase has |
|00000fa0| 61 20 75 73 65 72 2d 64 | 65 66 69 6e 65 64 20 63 |a user-d|efined c|
|00000fb0| 6f 70 79 20 61 73 73 69 | 67 6e 6d 65 6e 74 20 6f |opy assi|gnment o|
|00000fc0| 70 65 72 61 74 6f 72 2c | 20 61 6e 64 20 63 61 6c |perator,| and cal|
|00000fd0| 6c 0a 74 68 65 69 72 20 | 22 63 6f 70 79 20 65 76 |l.their |"copy ev|
|00000fe0| 65 72 79 74 68 69 6e 67 | 20 65 6c 73 65 22 20 72 |erything| else" r|
|00000ff0| 6f 75 74 69 6e 65 73 2e | 20 20 49 66 20 6e 6f 74 |outines.| If not|
|00001000| 20 61 6c 6c 20 6f 66 20 | 6d 79 20 76 62 61 73 65 | all of |my vbase|
|00001010| 73 20 73 61 74 69 73 66 | 79 0a 74 68 69 73 20 63 |s satisf|y.this c|
|00001020| 72 69 74 65 72 69 6f 6e | 2c 20 77 61 72 6e 2c 20 |riterion|, warn, |
|00001030| 62 65 63 61 75 73 65 20 | 74 68 69 73 20 6d 61 79 |because |this may|
|00001040| 20 62 65 20 73 75 72 70 | 72 69 73 69 6e 67 20 62 | be surp|rising b|
|00001050| 65 68 61 76 69 6f 72 2e | 0a 0a 33 29 20 43 61 6c |ehavior.|..3) Cal|
|00001060| 6c 20 74 68 65 20 22 63 | 6f 70 79 20 65 76 65 72 |l the "c|opy ever|
|00001070| 79 74 68 69 6e 67 20 65 | 6c 73 65 22 20 72 6f 75 |ything e|lse" rou|
|00001080| 74 69 6e 65 20 66 6f 72 | 20 6d 79 20 64 69 72 65 |tine for| my dire|
|00001090| 63 74 20 62 61 73 65 73 | 2e 0a 0a 49 66 20 77 65 |ct bases|...If we|
|000010a0| 20 6f 6e 6c 79 20 68 61 | 76 65 20 6f 6e 65 20 64 | only ha|ve one d|
|000010b0| 69 72 65 63 74 20 62 61 | 73 65 2c 20 77 65 20 63 |irect ba|se, we c|
|000010c0| 61 6e 20 6a 75 73 74 20 | 66 6f 69 73 74 20 65 76 |an just |foist ev|
|000010d0| 65 72 79 74 68 69 6e 67 | 20 6f 66 66 20 6f 6e 74 |erything| off ont|
|000010e0| 6f 0a 74 68 65 6d 2e 0a | 0a 54 68 69 73 20 69 73 |o.them..|.This is|
|000010f0| 73 75 65 20 69 73 20 63 | 75 72 72 65 6e 74 6c 79 |sue is c|urrently|
|00001100| 20 75 6e 64 65 72 20 64 | 69 73 63 75 73 73 69 6f | under d|iscussio|
|00001110| 6e 20 69 6e 20 74 68 65 | 20 63 6f 72 65 20 72 65 |n in the| core re|
|00001120| 66 6c 65 63 74 6f 72 0a | 28 32 5c 2f 32 38 5c 2f |flector.|(2\/28\/|
|00001130| 39 34 29 2e 0a 0a 00 00 | 44 41 54 41 88 05 00 00 |94).....|DATA....|
|00001140| 45 72 72 6f 72 20 52 65 | 70 6f 72 74 69 6e 67 0a |Error Re|porting.|
|00001150| 50 72 65 76 69 6f 75 73 | 3a 20 3c 41 63 63 65 73 |Previous|: <Acces|
|00001160| 73 20 43 6f 6e 74 72 6f | 6c 3d 3e 41 63 63 65 73 |s Contro|l=>Acces|
|00001170| 73 43 6f 6e 74 3e 20 2a | 20 4e 65 78 74 3a 20 3c |sCont> *| Next: <|
|00001180| 50 61 72 73 65 72 3d 3e | 50 61 72 73 65 72 3e 20 |Parser=>|Parser> |
|00001190| 2a 20 55 70 3a 20 3c 54 | 6f 70 3d 3e 21 52 6f 6f |* Up: <T|op=>!Roo|
|000011a0| 74 3e 0a 0a 23 57 72 61 | 70 20 6f 6e 0a 7b 66 48 |t>..#Wra|p on.{fH|
|000011b0| 33 7d 45 72 72 6f 72 20 | 52 65 70 6f 72 74 69 6e |3}Error |Reportin|
|000011c0| 67 7b 66 7d 0a 0a 54 68 | 65 20 43 2b 2b 20 66 72 |g{f}..Th|e C++ fr|
|000011d0| 6f 6e 74 2d 65 6e 64 20 | 75 73 65 73 20 61 20 63 |ont-end |uses a c|
|000011e0| 61 6c 6c 2d 62 61 63 6b | 20 6d 65 63 68 61 6e 69 |all-back| mechani|
|000011f0| 73 6d 20 74 6f 20 61 6c | 6c 6f 77 20 66 75 6e 63 |sm to al|low func|
|00001200| 74 69 6f 6e 73 20 74 6f | 20 70 72 69 6e 74 0a 6f |tions to| print.o|
|00001210| 75 74 20 72 65 61 73 6f | 6e 61 62 6c 65 20 73 74 |ut reaso|nable st|
|00001220| 72 69 6e 67 73 20 66 6f | 72 20 74 79 70 65 73 20 |rings fo|r types |
|00001230| 61 6e 64 20 66 75 6e 63 | 74 69 6f 6e 73 20 77 69 |and func|tions wi|
|00001240| 74 68 6f 75 74 20 70 75 | 74 74 69 6e 67 20 65 78 |thout pu|tting ex|
|00001250| 74 72 61 0a 6c 6f 67 69 | 63 20 69 6e 20 74 68 65 |tra.logi|c in the|
|00001260| 20 66 75 6e 63 74 69 6f | 6e 73 20 77 68 65 72 65 | functio|ns where|
|00001270| 20 65 72 72 6f 72 73 20 | 61 72 65 20 66 6f 75 6e | errors |are foun|
|00001280| 64 2e 20 20 54 68 65 20 | 69 6e 74 65 72 66 61 63 |d. The |interfac|
|00001290| 65 20 69 73 20 74 68 72 | 6f 75 67 68 0a 74 68 65 |e is thr|ough.the|
|000012a0| 20 7b 66 43 6f 64 65 7d | 63 70 5c 5f 65 72 72 6f | {fCode}|cp\_erro|
|000012b0| 72 7b 66 7d 20 66 75 6e | 63 74 69 6f 6e 20 28 6f |r{f} fun|ction (o|
|000012c0| 72 20 7b 66 43 6f 64 65 | 7d 63 70 5c 5f 77 61 72 |r {fCode|}cp\_war|
|000012d0| 6e 69 6e 67 7b 66 7d 2c | 20 65 74 63 2e 29 2e 20 |ning{f},| etc.). |
|000012e0| 20 54 68 65 0a 73 79 6e | 74 61 78 20 69 73 20 65 | The.syn|tax is e|
|000012f0| 78 61 63 74 6c 79 20 6c | 69 6b 65 20 74 68 61 74 |xactly l|ike that|
|00001300| 20 6f 66 20 7b 66 43 6f | 64 65 7d 65 72 72 6f 72 | of {fCo|de}error|
|00001310| 7b 66 7d 2c 20 65 78 63 | 65 70 74 20 74 68 61 74 |{f}, exc|ept that|
|00001320| 20 61 20 66 65 77 20 6d | 6f 72 65 0a 63 6f 6e 76 | a few m|ore.conv|
|00001330| 65 72 73 69 6f 6e 73 20 | 61 72 65 20 73 75 70 70 |ersions |are supp|
|00001340| 6f 72 74 65 64 3a 0a 0a | 23 49 6e 64 65 6e 74 20 |orted:..|#Indent |
|00001350| 2b 34 0a 0a 20 8f 20 25 | 43 20 69 6e 64 69 63 61 |+4.. . %|C indica|
|00001360| 74 65 73 20 61 20 76 61 | 6c 75 65 20 6f 66 20 60 |tes a va|lue of `|
|00001370| 65 6e 75 6d 20 74 72 65 | 65 5c 5f 63 6f 64 65 27 |enum tre|e\_code'|
|00001380| 2e 0a 0a 20 8f 20 25 44 | 20 69 6e 64 69 63 61 74 |... . %D| indicat|
|00001390| 65 73 20 61 20 5c 2a 5c | 5f 44 45 43 4c 20 6e 6f |es a \*\|_DECL no|
|000013a0| 64 65 2e 0a 0a 20 8f 20 | 25 45 20 69 6e 64 69 63 |de... . |%E indic|
|000013b0| 61 74 65 73 20 61 20 5c | 2a 5c 5f 45 58 50 52 20 |ates a \|*\_EXPR |
|000013c0| 6e 6f 64 65 2e 0a 0a 20 | 8f 20 25 4c 20 69 6e 64 |node... |. %L ind|
|000013d0| 69 63 61 74 65 73 20 61 | 20 76 61 6c 75 65 20 6f |icates a| value o|
|000013e0| 66 20 60 65 6e 75 6d 20 | 6c 61 6e 67 75 61 67 65 |f `enum |language|
|000013f0| 73 27 2e 0a 0a 20 8f 20 | 25 50 20 69 6e 64 69 63 |s'... . |%P indic|
|00001400| 61 74 65 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |ates the| name of|
|00001410| 20 61 20 70 61 72 61 6d | 65 74 65 72 20 28 69 2e | a param|eter (i.|
|00001420| 65 2e 20 22 74 68 69 73 | 22 2c 20 22 31 22 2c 20 |e. "this|", "1", |
|00001430| 22 32 22 2c 20 2e 2e 2e | 29 0a 0a 20 8f 20 25 54 |"2", ...|).. . %T|
|00001440| 20 69 6e 64 69 63 61 74 | 65 73 20 61 20 5c 2a 5c | indicat|es a \*\|
|00001450| 5f 54 59 50 45 20 6e 6f | 64 65 2e 0a 0a 20 8f 20 |_TYPE no|de... . |
|00001460| 25 4f 20 69 6e 64 69 63 | 61 74 65 73 20 74 68 65 |%O indic|ates the|
|00001470| 20 6e 61 6d 65 20 6f 66 | 20 61 6e 20 6f 70 65 72 | name of| an oper|
|00001480| 61 74 6f 72 20 28 4d 4f | 44 49 46 59 5c 5f 45 58 |ator (MO|DIFY\_EX|
|00001490| 50 52 20 2d 5c 3e 20 22 | 6f 70 65 72 61 74 6f 72 |PR -\> "|operator|
|000014a0| 20 3d 22 29 2e 0a 0a 0a | 23 49 6e 64 65 6e 74 0a | =")....|#Indent.|
|000014b0| 0a 54 68 65 72 65 20 69 | 73 20 73 6f 6d 65 20 6f |.There i|s some o|
|000014c0| 76 65 72 6c 61 70 20 62 | 65 74 77 65 65 6e 20 74 |verlap b|etween t|
|000014d0| 68 65 73 65 3b 20 66 6f | 72 20 69 6e 73 74 61 6e |hese; fo|r instan|
|000014e0| 63 65 2c 20 61 6e 79 20 | 6f 66 20 74 68 65 20 6e |ce, any |of the n|
|000014f0| 6f 64 65 0a 6f 70 74 69 | 6f 6e 73 20 63 61 6e 20 |ode.opti|ons can |
|00001500| 62 65 20 75 73 65 64 20 | 66 6f 72 20 70 72 69 6e |be used |for prin|
|00001510| 74 69 6e 67 20 61 6e 20 | 69 64 65 6e 74 69 66 69 |ting an |identifi|
|00001520| 65 72 20 28 74 68 6f 75 | 67 68 20 6f 6e 6c 79 20 |er (thou|gh only |
|00001530| 7b 66 43 6f 64 65 7d 25 | 44 7b 66 7d 0a 74 72 69 |{fCode}%|D{f}.tri|
|00001540| 65 73 20 74 6f 20 64 65 | 63 69 70 68 65 72 20 66 |es to de|cipher f|
|00001550| 75 6e 63 74 69 6f 6e 20 | 6e 61 6d 65 73 29 2e 0a |unction |names)..|
|00001560| 0a 46 6f 72 20 61 20 6d | 6f 72 65 20 76 65 72 62 |.For a m|ore verb|
|00001570| 6f 73 65 20 6d 65 73 73 | 61 67 65 20 28 7b 66 43 |ose mess|age ({fC|
|00001580| 6f 64 65 7d 63 6c 61 73 | 73 20 66 6f 6f 7b 66 7d |ode}clas|s foo{f}|
|00001590| 20 61 73 20 6f 70 70 6f | 73 65 64 20 74 6f 20 6a | as oppo|sed to j|
|000015a0| 75 73 74 20 7b 66 43 6f | 64 65 7d 66 6f 6f 7b 66 |ust {fCo|de}foo{f|
|000015b0| 7d 2c 0a 69 6e 63 6c 75 | 64 69 6e 67 20 74 68 65 |},.inclu|ding the|
|000015c0| 20 72 65 74 75 72 6e 20 | 74 79 70 65 20 66 6f 72 | return |type for|
|000015d0| 20 66 75 6e 63 74 69 6f | 6e 73 29 2c 20 75 73 65 | functio|ns), use|
|000015e0| 20 7b 66 43 6f 64 65 7d | 25 5c 23 63 7b 66 7d 2e | {fCode}|%\#c{f}.|
|000015f0| 0a 54 6f 20 68 61 76 65 | 20 74 68 65 20 6c 69 6e |.To have| the lin|
|00001600| 65 20 6e 75 6d 62 65 72 | 20 6f 6e 20 74 68 65 20 |e number| on the |
|00001610| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 20 69 6e |error me|ssage in|
|00001620| 64 69 63 61 74 65 20 74 | 68 65 20 6c 69 6e 65 20 |dicate t|he line |
|00001630| 6f 66 20 74 68 65 0a 44 | 45 43 4c 2c 20 75 73 65 |of the.D|ECL, use|
|00001640| 20 7b 66 43 6f 64 65 7d | 63 70 5c 5f 65 72 72 6f | {fCode}|cp\_erro|
|00001650| 72 5c 5f 61 74 7b 66 7d | 20 61 6e 64 20 69 74 73 |r\_at{f}| and its|
|00001660| 20 69 6c 6b 3b 20 74 6f | 20 69 6e 64 69 63 61 74 | ilk; to| indicat|
|00001670| 65 20 77 68 69 63 68 20 | 61 72 67 75 6d 65 6e 74 |e which |argument|
|00001680| 20 79 6f 75 20 77 61 6e | 74 2c 0a 75 73 65 20 7b | you wan|t,.use {|
|00001690| 66 43 6f 64 65 7d 25 2b | 44 7b 66 7d 2c 20 6f 72 |fCode}%+|D{f}, or|
|000016a0| 20 69 74 20 77 69 6c 6c | 20 64 65 66 61 75 6c 74 | it will| default|
|000016b0| 20 74 6f 20 74 68 65 20 | 66 69 72 73 74 2e 0a 0a | to the |first...|
|000016c0| 44 41 54 41 5c 14 00 00 | 45 78 63 65 70 74 69 6f |DATA\...|Exceptio|
|000016d0| 6e 20 48 61 6e 64 6c 69 | 6e 67 0a 50 72 65 76 69 |n Handli|ng.Previ|
|000016e0| 6f 75 73 3a 20 3c 43 6f | 70 79 69 6e 67 20 4f 62 |ous: <Co|pying Ob|
|000016f0| 6a 65 63 74 73 3d 3e 43 | 6f 70 79 69 6e 67 4f 62 |jects=>C|opyingOb|
|00001700| 6a 3e 20 2a 20 4e 65 78 | 74 3a 20 3c 46 72 65 65 |j> * Nex|t: <Free|
|00001710| 20 53 74 6f 72 65 3d 3e | 46 72 65 65 53 74 6f 72 | Store=>|FreeStor|
|00001720| 65 3e 20 2a 20 55 70 3a | 20 3c 54 6f 70 3d 3e 21 |e> * Up:| <Top=>!|
|00001730| 52 6f 6f 74 3e 0a 0a 23 | 57 72 61 70 20 6f 6e 0a |Root>..#|Wrap on.|
|00001740| 7b 66 48 33 7d 45 78 63 | 65 70 74 69 6f 6e 20 48 |{fH3}Exc|eption H|
|00001750| 61 6e 64 6c 69 6e 67 7b | 66 7d 0a 0a 4e 6f 74 65 |andling{|f}..Note|
|00001760| 2c 20 65 78 63 65 70 74 | 69 6f 6e 20 68 61 6e 64 |, except|ion hand|
|00001770| 6c 69 6e 67 20 69 6e 20 | 67 2b 2b 20 69 73 20 73 |ling in |g++ is s|
|00001780| 74 69 6c 6c 20 75 6e 64 | 65 72 20 64 65 76 65 6c |till und|er devel|
|00001790| 6f 70 6d 65 6e 74 2e 20 | 20 0a 0a 54 68 69 73 20 |opment. | ..This |
|000017a0| 73 65 63 74 69 6f 6e 20 | 64 65 73 63 72 69 62 65 |section |describe|
|000017b0| 73 20 74 68 65 20 6d 61 | 70 70 69 6e 67 20 6f 66 |s the ma|pping of|
|000017c0| 20 43 2b 2b 20 65 78 63 | 65 70 74 69 6f 6e 73 20 | C++ exc|eptions |
|000017d0| 69 6e 20 74 68 65 20 43 | 2b 2b 0a 66 72 6f 6e 74 |in the C|++.front|
|000017e0| 2d 65 6e 64 2c 20 69 6e | 74 6f 20 74 68 65 20 62 |-end, in|to the b|
|000017f0| 61 63 6b 2d 65 6e 64 20 | 65 78 63 65 70 74 69 6f |ack-end |exceptio|
|00001800| 6e 20 68 61 6e 64 6c 69 | 6e 67 20 66 72 61 6d 65 |n handli|ng frame|
|00001810| 77 6f 72 6b 2e 0a 0a 54 | 68 65 20 62 61 73 69 63 |work...T|he basic|
|00001820| 20 6d 65 63 68 61 6e 69 | 73 6d 20 6f 66 20 65 78 | mechani|sm of ex|
|00001830| 63 65 70 74 69 6f 6e 20 | 68 61 6e 64 6c 69 6e 67 |ception |handling|
|00001840| 20 69 6e 20 74 68 65 20 | 62 61 63 6b 2d 65 6e 64 | in the |back-end|
|00001850| 20 69 73 0a 75 6e 77 69 | 6e 64 2d 70 72 6f 74 65 | is.unwi|nd-prote|
|00001860| 63 74 20 61 20 6c 61 20 | 65 6c 69 73 70 2e 20 20 |ct a la |elisp. |
|00001870| 54 68 69 73 20 69 73 20 | 61 20 67 65 6e 65 72 61 |This is |a genera|
|00001880| 6c 2c 20 72 6f 62 75 73 | 74 2c 20 61 6e 64 20 6c |l, robus|t, and l|
|00001890| 61 6e 67 75 61 67 65 0a | 69 6e 64 65 70 65 6e 64 |anguage.|independ|
|000018a0| 65 6e 74 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |ent repr|esentati|
|000018b0| 6f 6e 20 66 6f 72 20 65 | 78 63 65 70 74 69 6f 6e |on for e|xception|
|000018c0| 73 2e 0a 0a 54 68 65 20 | 43 2b 2b 20 66 72 6f 6e |s...The |C++ fron|
|000018d0| 74 2d 65 6e 64 20 65 78 | 63 65 70 74 69 6f 6e 73 |t-end ex|ceptions|
|000018e0| 20 61 72 65 20 6d 61 70 | 70 69 6e 67 20 69 6e 74 | are map|ping int|
|000018f0| 6f 20 74 68 65 20 75 6e | 77 69 6e 64 2d 70 72 6f |o the un|wind-pro|
|00001900| 74 65 63 74 0a 73 65 6d | 61 6e 74 69 63 73 20 62 |tect.sem|antics b|
|00001910| 79 20 74 68 65 20 43 2b | 2b 20 66 72 6f 6e 74 2d |y the C+|+ front-|
|00001920| 65 6e 64 2e 20 20 54 68 | 65 20 6d 61 70 70 69 6e |end. Th|e mappin|
|00001930| 67 20 69 73 20 64 65 73 | 63 72 69 62 65 20 62 65 |g is des|cribe be|
|00001940| 6c 6f 77 2e 0a 0a 4f 62 | 6a 65 63 74 73 20 77 69 |low...Ob|jects wi|
|00001950| 74 68 20 52 54 54 49 20 | 73 75 70 70 6f 72 74 20 |th RTTI |support |
|00001960| 73 68 6f 75 6c 64 20 75 | 73 65 20 74 68 65 20 52 |should u|se the R|
|00001970| 54 54 49 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |TTI info|rmation |
|00001980| 74 6f 20 64 6f 20 6d 61 | 70 70 69 6e 67 0a 61 6e |to do ma|pping.an|
|00001990| 64 20 63 68 65 63 6b 69 | 6e 67 2e 20 20 4f 62 6a |d checki|ng. Obj|
|000019a0| 65 63 74 73 20 77 69 74 | 68 6f 75 74 20 52 54 54 |ects wit|hout RTT|
|000019b0| 49 2c 20 6c 69 6b 65 20 | 69 6e 74 20 61 6e 64 20 |I, like |int and |
|000019c0| 63 6f 6e 73 74 20 63 68 | 61 72 20 5c 2a 2c 20 68 |const ch|ar \*, h|
|000019d0| 61 76 65 20 74 6f 0a 75 | 73 65 20 61 6e 6f 74 68 |ave to.u|se anoth|
|000019e0| 65 72 20 6d 65 61 6e 73 | 20 6f 66 20 6d 61 74 63 |er means| of matc|
|000019f0| 68 69 6e 67 2e 20 20 43 | 75 72 72 65 6e 74 6c 79 |hing. C|urrently|
|00001a00| 20 77 65 20 75 73 65 20 | 74 68 65 20 6e 6f 72 6d | we use |the norm|
|00001a10| 61 6c 20 6d 61 6e 67 6c | 69 6e 67 20 75 73 65 64 |al mangl|ing used|
|00001a20| 20 69 6e 0a 62 75 69 6c | 64 69 6e 67 20 66 75 6e | in.buil|ding fun|
|00001a30| 63 74 69 6f 6e 73 20 6e | 61 6d 65 73 2e 20 20 49 |ctions n|ames. I|
|00001a40| 6e 74 27 73 20 61 72 65 | 20 22 69 22 2c 20 63 6f |nt's are| "i", co|
|00001a50| 6e 73 74 20 63 68 61 72 | 20 5c 2a 20 69 73 20 50 |nst char| \* is P|
|00001a60| 43 63 2c 20 65 74 63 2e | 2e 2e 0a 0a 55 6e 66 6f |Cc, etc.|....Unfo|
|00001a70| 72 74 75 6e 61 74 65 6c | 79 2c 20 74 68 65 20 73 |rtunatel|y, the s|
|00001a80| 74 61 6e 64 61 72 64 20 | 61 6c 6c 6f 77 73 20 73 |tandard |allows s|
|00001a90| 74 61 6e 64 61 72 64 20 | 74 79 70 65 20 63 6f 6e |tandard |type con|
|00001aa0| 76 65 72 73 69 6f 6e 73 | 20 6f 6e 20 74 68 72 6f |versions| on thro|
|00001ab0| 77 0a 70 61 72 61 6d 65 | 74 65 72 73 20 73 6f 20 |w.parame|ters so |
|00001ac0| 74 68 65 79 20 63 61 6e | 20 6d 61 74 63 68 20 63 |they can| match c|
|00001ad0| 61 74 63 68 20 68 61 6e | 64 6c 65 72 73 2e 20 20 |atch han|dlers. |
|00001ae0| 54 68 69 73 20 6d 65 61 | 6e 73 20 77 65 20 6e 65 |This mea|ns we ne|
|00001af0| 65 64 20 61 0a 6d 65 63 | 68 61 6e 69 73 6d 20 74 |ed a.mec|hanism t|
|00001b00| 6f 20 68 61 6e 64 6c 65 | 20 74 79 70 65 20 63 6f |o handle| type co|
|00001b10| 6e 76 65 72 73 69 6f 6e | 20 61 74 20 72 75 6e 20 |nversion| at run |
|00001b20| 74 69 6d 65 2c 20 49 43 | 4b 2e 20 20 49 20 72 65 |time, IC|K. I re|
|00001b30| 61 64 20 74 68 69 73 20 | 70 61 72 74 0a 61 67 61 |ad this |part.aga|
|00001b40| 69 6e 2c 20 61 6e 64 20 | 69 74 20 61 70 70 65 61 |in, and |it appea|
|00001b50| 72 73 20 74 68 61 74 20 | 77 65 20 6f 6e 6c 79 20 |rs that |we only |
|00001b60| 68 61 76 65 20 74 6f 20 | 62 65 20 61 62 6c 65 20 |have to |be able |
|00001b70| 74 6f 20 64 6f 20 61 20 | 66 65 77 20 6f 66 20 74 |to do a |few of t|
|00001b80| 68 65 0a 63 6f 6e 76 65 | 72 73 69 6f 6e 73 20 61 |he.conve|rsions a|
|00001b90| 74 20 72 75 6e 20 74 69 | 6d 65 2c 20 73 6f 20 77 |t run ti|me, so w|
|00001ba0| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 6f 6b 2e 0a |e should| be ok..|
|00001bb0| 0a 49 6e 20 43 2b 2b 2c | 20 61 6c 6c 20 63 6c 65 |.In C++,| all cle|
|00001bc0| 61 6e 75 70 73 20 73 68 | 6f 75 6c 64 20 62 65 20 |anups sh|ould be |
|00001bd0| 70 72 6f 74 65 63 74 65 | 64 20 62 79 20 65 78 63 |protecte|d by exc|
|00001be0| 65 70 74 69 6f 6e 20 72 | 65 67 69 6f 6e 73 2e 20 |eption r|egions. |
|00001bf0| 20 54 68 65 0a 72 65 67 | 69 6f 6e 20 73 74 61 72 | The.reg|ion star|
|00001c00| 74 73 20 6a 75 73 74 20 | 61 66 74 65 72 20 74 68 |ts just |after th|
|00001c10| 65 20 72 65 61 73 6f 6e | 20 77 68 79 20 74 68 65 |e reason| why the|
|00001c20| 20 63 6c 65 61 6e 75 70 | 20 69 73 20 63 72 65 61 | cleanup| is crea|
|00001c30| 74 65 64 20 68 61 73 0a | 65 6e 64 65 64 2e 20 20 |ted has.|ended. |
|00001c40| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 77 69 74 |For exam|ple, wit|
|00001c50| 68 20 61 6e 20 61 75 74 | 6f 6d 61 74 69 63 20 76 |h an aut|omatic v|
|00001c60| 61 72 69 61 62 6c 65 2c | 20 74 68 61 74 20 68 61 |ariable,| that ha|
|00001c70| 73 20 61 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 2c |s a cons|tructor,|
|00001c80| 0a 69 74 20 77 6f 75 6c | 64 20 62 65 20 72 69 67 |.it woul|d be rig|
|00001c90| 68 74 20 61 66 74 65 72 | 20 74 68 65 20 63 6f 6e |ht after| the con|
|00001ca0| 73 74 72 75 63 74 6f 72 | 20 69 73 20 72 75 6e 2e |structor| is run.|
|00001cb0| 20 20 54 68 65 20 72 65 | 67 69 6f 6e 20 65 6e 64 | The re|gion end|
|00001cc0| 73 20 6a 75 73 74 0a 62 | 65 66 6f 72 65 20 74 68 |s just.b|efore th|
|00001cd0| 65 20 66 69 6e 61 6c 69 | 7a 61 74 69 6f 6e 20 69 |e finali|zation i|
|00001ce0| 73 20 65 78 70 61 6e 64 | 65 64 2e 20 20 53 69 6e |s expand|ed. Sin|
|00001cf0| 63 65 20 74 68 65 20 62 | 61 63 6b 65 6e 64 20 6d |ce the b|ackend m|
|00001d00| 61 79 20 65 78 70 61 6e | 64 20 74 68 65 0a 63 6c |ay expan|d the.cl|
|00001d10| 65 61 6e 75 70 20 6d 75 | 6c 74 69 70 6c 65 20 74 |eanup mu|ltiple t|
|00001d20| 69 6d 65 73 20 61 6c 6f | 6e 67 20 64 69 66 66 65 |imes alo|ng diffe|
|00001d30| 72 65 6e 74 20 70 61 74 | 68 73 2c 20 6f 6e 63 65 |rent pat|hs, once|
|00001d40| 20 66 6f 72 20 6e 6f 72 | 6d 61 6c 20 65 6e 64 20 | for nor|mal end |
|00001d50| 6f 66 20 74 68 65 0a 72 | 65 67 69 6f 6e 2c 20 6f |of the.r|egion, o|
|00001d60| 6e 63 65 20 66 6f 72 20 | 6e 6f 6e 2d 6c 6f 63 61 |nce for |non-loca|
|00001d70| 6c 20 67 6f 74 6f 73 2c | 20 6f 6e 63 65 20 66 6f |l gotos,| once fo|
|00001d80| 72 20 72 65 74 75 72 6e | 73 2c 20 65 74 63 2c 20 |r return|s, etc, |
|00001d90| 74 68 65 20 62 61 63 6b | 65 6e 64 0a 6d 75 73 74 |the back|end.must|
|00001da0| 20 74 61 6b 65 20 73 70 | 65 63 69 61 6c 20 63 61 | take sp|ecial ca|
|00001db0| 72 65 20 74 6f 20 70 72 | 6f 74 65 63 74 20 74 68 |re to pr|otect th|
|00001dc0| 65 20 66 69 6e 61 6c 69 | 7a 61 74 69 6f 6e 20 65 |e finali|zation e|
|00001dd0| 78 70 61 6e 73 69 6f 6e | 2c 20 69 66 20 74 68 65 |xpansion|, if the|
|00001de0| 0a 65 78 70 61 6e 73 69 | 6f 6e 20 69 73 20 66 6f |.expansi|on is fo|
|00001df0| 72 20 61 6e 79 20 6f 74 | 68 65 72 20 72 65 61 73 |r any ot|her reas|
|00001e00| 6f 6e 20 74 68 61 6e 20 | 6e 6f 72 6d 61 6c 20 72 |on than |normal r|
|00001e10| 65 67 69 6f 6e 20 65 6e | 64 2c 20 61 6e 64 20 69 |egion en|d, and i|
|00001e20| 74 20 69 73 0a 60 69 6e | 6c 69 6e 65 27 20 28 69 |t is.`in|line' (i|
|00001e30| 74 20 69 73 20 69 6e 73 | 69 64 65 20 74 68 65 20 |t is ins|ide the |
|00001e40| 65 78 63 65 70 74 69 6f | 6e 20 72 65 67 69 6f 6e |exceptio|n region|
|00001e50| 29 2e 20 20 54 68 65 20 | 62 61 63 6b 65 6e 64 20 |). The |backend |
|00001e60| 63 61 6e 20 65 69 74 68 | 65 72 0a 63 68 6f 6f 73 |can eith|er.choos|
|00001e70| 65 20 74 6f 20 6d 6f 76 | 65 20 74 68 65 6d 20 6f |e to mov|e them o|
|00001e80| 75 74 20 6f 66 20 6c 69 | 6e 65 2c 20 6f 72 20 69 |ut of li|ne, or i|
|00001e90| 74 20 63 61 6e 20 63 72 | 65 61 74 65 64 20 61 6e |t can cr|eated an|
|00001ea0| 20 65 78 63 65 70 74 69 | 6f 6e 20 72 65 67 69 6f | excepti|on regio|
|00001eb0| 6e 0a 6f 76 65 72 20 74 | 68 65 20 66 69 6e 61 6c |n.over t|he final|
|00001ec0| 69 7a 61 74 69 6f 6e 20 | 74 6f 20 70 72 6f 74 65 |ization |to prote|
|00001ed0| 63 74 20 69 74 2c 20 61 | 6e 64 20 69 6e 20 74 68 |ct it, a|nd in th|
|00001ee0| 65 20 68 61 6e 64 6c 65 | 72 20 61 73 73 6f 63 69 |e handle|r associ|
|00001ef0| 61 74 65 64 20 77 69 74 | 68 0a 69 74 2c 20 69 74 |ated wit|h.it, it|
|00001f00| 20 77 6f 75 6c 64 20 6e | 6f 74 20 72 75 6e 20 74 | would n|ot run t|
|00001f10| 68 65 20 66 69 6e 61 6c | 69 7a 61 74 69 6f 6e 20 |he final|ization |
|00001f20| 61 73 20 69 74 20 6f 74 | 68 65 72 77 69 73 65 20 |as it ot|herwise |
|00001f30| 77 6f 75 6c 64 20 68 61 | 76 65 2c 20 62 75 74 0a |would ha|ve, but.|
|00001f40| 72 61 74 68 65 72 20 6a | 75 73 74 20 72 65 74 68 |rather j|ust reth|
|00001f50| 72 6f 77 20 74 6f 20 74 | 68 65 20 6f 75 74 65 72 |row to t|he outer|
|00001f60| 20 68 61 6e 64 6c 65 72 | 2c 20 63 61 72 65 66 75 | handler|, carefu|
|00001f70| 6c 20 74 6f 20 73 6b 69 | 70 20 74 68 65 20 6e 6f |l to ski|p the no|
|00001f80| 72 6d 61 6c 0a 68 61 6e | 64 6c 65 72 20 66 6f 72 |rmal.han|dler for|
|00001f90| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 72 65 | the ori|ginal re|
|00001fa0| 67 69 6f 6e 2e 0a 0a 49 | 6e 20 41 64 61 2c 20 74 |gion...I|n Ada, t|
|00001fb0| 68 65 79 20 77 69 6c 6c | 20 75 73 65 20 74 68 65 |hey will| use the|
|00001fc0| 20 6d 6f 72 65 20 72 75 | 6e 74 69 6d 65 20 69 6e | more ru|ntime in|
|00001fd0| 74 65 6e 73 69 76 65 20 | 61 70 70 72 6f 61 63 68 |tensive |approach|
|00001fe0| 20 6f 66 20 68 61 76 69 | 6e 67 0a 66 65 77 65 72 | of havi|ng.fewer|
|00001ff0| 20 72 65 67 69 6f 6e 73 | 2c 20 62 75 74 20 61 74 | regions|, but at|
|00002000| 20 74 68 65 20 63 6f 73 | 74 20 6f 66 20 61 64 64 | the cos|t of add|
|00002010| 69 74 69 6f 6e 61 6c 20 | 77 6f 72 6b 20 61 74 20 |itional |work at |
|00002020| 72 75 6e 20 74 69 6d 65 | 2c 20 74 6f 20 6b 65 65 |run time|, to kee|
|00002030| 70 20 61 0a 6c 69 73 74 | 20 6f 66 20 74 68 69 6e |p a.list| of thin|
|00002040| 67 73 20 74 68 61 74 20 | 6e 65 65 64 20 63 6c 65 |gs that |need cle|
|00002050| 61 6e 75 70 73 2e 20 20 | 57 68 65 6e 20 61 20 76 |anups. |When a v|
|00002060| 61 72 69 61 62 6c 65 20 | 68 61 73 20 66 69 6e 69 |ariable |has fini|
|00002070| 73 68 65 64 0a 63 6f 6e | 73 74 72 75 63 74 69 6f |shed.con|structio|
|00002080| 6e 2c 20 74 68 65 79 20 | 61 64 64 20 74 68 65 20 |n, they |add the |
|00002090| 63 6c 65 61 6e 75 70 20 | 74 6f 20 74 68 65 20 6c |cleanup |to the l|
|000020a0| 69 73 74 2c 20 77 68 65 | 6e 20 74 68 65 20 63 6f |ist, whe|n the co|
|000020b0| 6d 65 20 74 6f 20 74 68 | 65 20 65 6e 64 0a 6f 66 |me to th|e end.of|
|000020c0| 20 74 68 65 20 6c 69 66 | 65 74 69 6d 65 20 6f 66 | the lif|etime of|
|000020d0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 2c 20 74 | the var|iable, t|
|000020e0| 68 65 20 72 75 6e 20 74 | 68 65 20 6c 69 73 74 20 |he run t|he list |
|000020f0| 64 6f 77 6e 2e 20 20 49 | 66 20 74 68 65 20 74 61 |down. I|f the ta|
|00002100| 6b 65 20 61 0a 68 69 74 | 20 62 65 66 6f 72 65 20 |ke a.hit| before |
|00002110| 74 68 65 20 73 65 63 74 | 69 6f 6e 20 66 69 6e 69 |the sect|ion fini|
|00002120| 73 68 65 73 20 6e 6f 72 | 6d 61 6c 6c 79 2c 20 74 |shes nor|mally, t|
|00002130| 68 65 79 20 65 78 61 6d | 69 6e 65 20 74 68 65 20 |hey exam|ine the |
|00002140| 6c 69 73 74 20 66 6f 72 | 0a 61 63 74 69 6f 6e 73 |list for|.actions|
|00002150| 20 74 6f 20 70 65 72 66 | 6f 72 6d 2e 20 20 49 20 | to perf|orm. I |
|00002160| 68 6f 70 65 20 74 68 65 | 79 20 61 64 64 20 74 68 |hope the|y add th|
|00002170| 69 73 20 6c 6f 67 69 63 | 20 69 6e 74 6f 20 74 68 |is logic| into th|
|00002180| 65 20 62 61 63 6b 2d 65 | 6e 64 2c 20 61 73 20 69 |e back-e|nd, as i|
|00002190| 74 0a 77 6f 75 6c 64 20 | 62 65 20 6e 69 63 65 20 |t.would |be nice |
|000021a0| 74 6f 20 67 65 74 20 74 | 68 61 74 20 61 6c 74 65 |to get t|hat alte|
|000021b0| 72 6e 61 74 69 76 65 20 | 61 70 70 72 6f 61 63 68 |rnative |approach|
|000021c0| 20 69 6e 20 43 2b 2b 2e | 0a 0a 4f 6e 20 61 6e 20 | in C++.|..On an |
|000021d0| 72 73 36 30 30 30 2c 20 | 78 6c 43 20 73 74 6f 72 |rs6000, |xlC stor|
|000021e0| 65 73 20 65 78 63 65 70 | 74 69 6f 6e 20 6f 62 6a |es excep|tion obj|
|000021f0| 65 63 74 73 20 6f 6e 20 | 74 68 61 74 20 73 74 61 |ects on |that sta|
|00002200| 63 6b 2c 20 75 6e 64 65 | 72 20 74 68 65 20 74 72 |ck, unde|r the tr|
|00002210| 79 0a 62 6c 6f 63 6b 2e | 20 20 57 68 65 6e 20 69 |y.block.| When i|
|00002220| 73 20 75 6e 77 69 6e 64 | 73 20 64 6f 77 6e 20 69 |s unwind|s down i|
|00002230| 6e 74 6f 20 61 20 68 61 | 6e 64 6c 65 72 2c 20 74 |nto a ha|ndler, t|
|00002240| 68 65 20 66 72 61 6d 65 | 20 70 6f 69 6e 74 65 72 |he frame| pointer|
|00002250| 20 69 73 0a 61 64 6a 75 | 73 74 65 64 20 62 61 63 | is.adju|sted bac|
|00002260| 6b 20 74 6f 20 74 68 65 | 20 6e 6f 72 6d 61 6c 20 |k to the| normal |
|00002270| 76 61 6c 75 65 20 66 6f | 72 20 74 68 65 20 66 72 |value fo|r the fr|
|00002280| 61 6d 65 20 69 6e 20 77 | 68 69 63 68 20 74 68 65 |ame in w|hich the|
|00002290| 20 68 61 6e 64 6c 65 72 | 0a 72 65 73 69 64 65 73 | handler|.resides|
|000022a0| 2c 20 61 6e 64 20 74 68 | 65 20 73 74 61 63 6b 20 |, and th|e stack |
|000022b0| 70 6f 69 6e 74 65 72 20 | 69 73 20 6c 65 66 74 20 |pointer |is left |
|000022c0| 75 6e 63 68 61 6e 67 65 | 64 20 66 72 6f 6d 20 74 |unchange|d from t|
|000022d0| 68 65 20 74 69 6d 65 20 | 61 74 20 77 68 69 63 68 |he time |at which|
|000022e0| 0a 74 68 65 20 6f 62 6a | 65 63 74 20 77 61 73 20 |.the obj|ect was |
|000022f0| 74 68 72 6f 77 65 64 2e | 20 20 54 68 69 73 20 69 |throwed.| This i|
|00002300| 73 20 73 6f 20 74 68 61 | 74 20 74 68 65 72 65 20 |s so tha|t there |
|00002310| 69 73 20 61 6c 77 61 79 | 73 20 73 6f 6d 65 70 6c |is alway|s somepl|
|00002320| 61 63 65 20 66 6f 72 0a | 74 68 65 20 65 78 63 65 |ace for.|the exce|
|00002330| 70 74 69 6f 6e 20 6f 62 | 6a 65 63 74 2c 20 61 6e |ption ob|ject, an|
|00002340| 64 20 6e 6f 74 68 69 6e | 67 20 63 61 6e 20 6f 76 |d nothin|g can ov|
|00002350| 65 72 77 72 69 74 65 20 | 69 74 2c 20 6f 6e 63 65 |erwrite |it, once|
|00002360| 20 77 65 20 73 74 61 72 | 74 0a 74 68 72 6f 77 69 | we star|t.throwi|
|00002370| 6e 67 2e 20 20 54 68 65 | 20 6f 6e 6c 79 20 62 61 |ng. The| only ba|
|00002380| 64 20 70 61 72 74 2c 20 | 69 73 20 74 68 61 74 20 |d part, |is that |
|00002390| 74 68 65 20 73 74 61 63 | 6b 20 72 65 6d 61 69 6e |the stac|k remain|
|000023a0| 73 20 6c 61 72 67 65 2e | 0a 0a 46 6c 61 77 73 20 |s large.|..Flaws |
|000023b0| 69 6e 20 67 2b 2b 27 73 | 20 65 78 63 65 70 74 69 |in g++'s| excepti|
|000023c0| 6f 6e 20 68 61 6e 64 6c | 69 6e 67 2e 20 20 54 68 |on handl|ing. Th|
|000023d0| 65 20 73 74 61 63 6b 20 | 70 6f 69 6e 74 65 72 20 |e stack |pointer |
|000023e0| 69 73 20 72 65 73 74 6f | 72 65 64 20 66 72 6f 6d |is resto|red from|
|000023f0| 0a 73 74 61 63 6b 2c 20 | 77 65 20 77 61 6e 74 20 |.stack, |we want |
|00002400| 74 6f 20 6d 61 74 63 68 | 20 72 73 36 30 30 30 2c |to match| rs6000,|
|00002410| 20 61 6e 64 20 70 72 6f | 70 61 67 61 74 65 20 74 | and pro|pagate t|
|00002420| 68 65 20 73 74 61 63 6b | 20 70 6f 69 6e 74 65 72 |he stack| pointer|
|00002430| 20 66 72 6f 6d 0a 74 69 | 6d 65 20 6f 66 20 74 68 | from.ti|me of th|
|00002440| 72 6f 77 2c 20 64 6f 77 | 6e 2c 20 74 6f 20 74 68 |row, dow|n, to th|
|00002450| 65 20 63 61 74 63 68 20 | 70 6c 61 63 65 2e 0a 0a |e catch |place...|
|00002460| 4f 6e 6c 79 20 65 78 61 | 63 74 20 74 79 70 65 20 |Only exa|ct type |
|00002470| 6d 61 74 63 68 69 6e 67 | 20 6f 66 20 74 68 72 6f |matching| of thro|
|00002480| 77 20 74 79 70 65 73 20 | 77 6f 72 6b 73 20 28 72 |w types |works (r|
|00002490| 65 66 65 72 65 6e 63 65 | 73 20 77 6f 72 6b 20 61 |eference|s work a|
|000024a0| 6c 73 6f 29 2c 0a 63 61 | 74 63 68 20 76 61 72 69 |lso),.ca|tch vari|
|000024b0| 61 62 6c 65 73 20 63 61 | 6e 6e 6f 74 20 62 65 20 |ables ca|nnot be |
|000024c0| 75 73 65 64 2e 20 20 4f | 6e 6c 79 20 77 6f 72 6b |used. O|nly work|
|000024d0| 73 20 6f 6e 20 61 20 53 | 75 6e 20 73 70 61 72 63 |s on a S|un sparc|
|000024e0| 20 72 75 6e 6e 69 6e 67 | 20 53 75 6e 4f 53 0a 34 | running| SunOS.4|
|000024f0| 2e 31 2e 78 2e 20 20 55 | 6e 77 69 6e 64 69 6e 67 |.1.x. U|nwinding|
|00002500| 20 74 6f 20 6f 75 74 65 | 72 20 63 61 74 63 68 20 | to oute|r catch |
|00002510| 63 6c 61 75 73 65 73 20 | 77 6f 72 6b 73 2e 20 20 |clauses |works. |
|00002520| 41 6c 6c 20 74 65 6d 70 | 73 20 61 6e 64 20 6c 6f |All temp|s and lo|
|00002530| 63 61 6c 0a 76 61 72 69 | 61 62 6c 65 73 20 61 72 |cal.vari|ables ar|
|00002540| 65 20 63 6c 65 61 6e 65 | 64 20 75 70 20 69 6e 20 |e cleane|d up in |
|00002550| 61 6c 6c 20 75 6e 77 69 | 6e 64 65 64 20 73 63 6f |all unwi|nded sco|
|00002560| 70 65 73 2e 20 20 43 6f | 6d 70 6c 65 74 65 64 20 |pes. Co|mpleted |
|00002570| 70 61 72 74 73 20 6f 66 | 0a 70 61 72 74 69 61 6c |parts of|.partial|
|00002580| 6c 79 20 63 6f 6e 73 74 | 72 75 63 74 65 64 20 6f |ly const|ructed o|
|00002590| 62 6a 65 63 74 73 20 61 | 72 65 20 6e 6f 74 20 63 |bjects a|re not c|
|000025a0| 6c 65 61 6e 65 64 20 75 | 70 2e 20 20 44 6f 6e 27 |leaned u|p. Don'|
|000025b0| 74 20 65 78 70 65 63 74 | 0a 65 78 63 65 70 74 69 |t expect|.excepti|
|000025c0| 6f 6e 20 68 61 6e 64 6c | 69 6e 67 20 74 6f 20 77 |on handl|ing to w|
|000025d0| 6f 72 6b 20 72 69 67 68 | 74 20 69 66 20 79 6f 75 |ork righ|t if you|
|000025e0| 20 6f 70 74 69 6d 69 7a | 65 2c 20 69 6e 20 66 61 | optimiz|e, in fa|
|000025f0| 63 74 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 0a |ct the c|ompiler.|
|00002600| 77 69 6c 6c 20 70 72 6f | 62 61 62 6c 79 20 63 6f |will pro|bably co|
|00002610| 72 65 20 64 75 6d 70 2e | 20 20 49 66 20 74 77 6f |re dump.| If two|
|00002620| 20 45 48 20 72 65 67 69 | 6f 6e 73 20 61 72 65 20 | EH regi|ons are |
|00002630| 74 68 65 20 65 78 61 63 | 74 20 73 61 6d 65 20 73 |the exac|t same s|
|00002640| 69 7a 65 2c 20 74 68 65 | 0a 62 61 63 6b 65 6e 64 |ize, the|.backend|
|00002650| 20 63 61 6e 6e 6f 74 20 | 74 65 6c 6c 20 77 68 69 | cannot |tell whi|
|00002660| 63 68 20 6f 6e 65 20 69 | 73 20 66 69 72 73 74 2e |ch one i|s first.|
|00002670| 20 20 49 74 20 70 75 6e | 74 73 20 62 79 20 70 69 | It pun|ts by pi|
|00002680| 63 6b 69 6e 67 20 74 68 | 65 20 6c 61 73 74 0a 6f |cking th|e last.o|
|00002690| 6e 65 2c 20 69 66 20 74 | 68 65 79 20 74 69 65 2e |ne, if t|hey tie.|
|000026a0| 20 20 54 68 69 73 20 69 | 73 20 75 73 75 61 6c 6c | This i|s usuall|
|000026b0| 79 20 72 69 67 68 74 2e | 20 20 57 65 20 72 65 61 |y right.| We rea|
|000026c0| 6c 6c 79 20 73 68 6f 75 | 6c 64 20 73 74 69 63 6b |lly shou|ld stick|
|000026d0| 20 69 6e 20 61 0a 6e 6f | 70 2c 20 69 66 20 74 68 | in a.no|p, if th|
|000026e0| 65 79 20 61 72 65 20 74 | 68 65 20 73 61 6d 65 20 |ey are t|he same |
|000026f0| 73 69 7a 65 2e 0a 0a 49 | 66 20 77 65 20 66 61 6c |size...I|f we fal|
|00002700| 6c 20 6f 66 66 20 74 68 | 65 20 65 6e 64 20 6f 66 |l off th|e end of|
|00002710| 20 61 20 73 65 72 69 65 | 73 20 6f 66 20 63 61 74 | a serie|s of cat|
|00002720| 63 68 20 62 6c 6f 63 6b | 73 2c 20 77 65 20 72 65 |ch block|s, we re|
|00002730| 74 75 72 6e 20 74 6f 20 | 74 68 65 0a 66 6c 6f 77 |turn to |the.flow|
|00002740| 20 6f 66 20 63 6f 6e 74 | 72 6f 6c 20 69 6e 20 61 | of cont|rol in a|
|00002750| 20 6e 6f 72 6d 61 6c 20 | 66 61 73 69 6f 6e 2e 20 | normal |fasion. |
|00002760| 20 42 75 74 20 74 68 69 | 73 20 69 73 20 77 72 6f | But thi|s is wro|
|00002770| 6e 67 2c 20 77 65 20 73 | 68 6f 75 6c 64 0a 72 65 |ng, we s|hould.re|
|00002780| 74 68 72 6f 77 2e 0a 0a | 57 68 65 6e 20 77 65 20 |throw...|When we |
|00002790| 69 6e 76 6f 6b 65 20 74 | 68 65 20 63 6f 70 79 20 |invoke t|he copy |
|000027a0| 63 6f 6e 73 74 72 75 63 | 74 6f 72 20 66 6f 72 20 |construc|tor for |
|000027b0| 61 6e 20 65 78 63 65 70 | 74 69 6f 6e 20 6f 62 6a |an excep|tion obj|
|000027c0| 65 63 74 20 62 65 63 61 | 75 73 65 20 69 74 0a 69 |ect beca|use it.i|
|000027d0| 73 20 70 61 73 73 65 64 | 20 62 79 20 76 61 6c 75 |s passed| by valu|
|000027e0| 65 2c 20 61 6e 64 20 69 | 66 20 77 65 20 74 61 6b |e, and i|f we tak|
|000027f0| 65 20 61 20 68 69 74 20 | 28 65 78 63 65 70 74 69 |e a hit |(excepti|
|00002800| 6f 6e 29 20 69 6e 73 69 | 64 65 20 74 68 65 20 63 |on) insi|de the c|
|00002810| 6f 70 79 0a 63 6f 6e 73 | 74 72 75 63 74 6f 72 20 |opy.cons|tructor |
|00002820| 73 6f 6d 65 70 6c 61 63 | 65 2c 20 77 68 65 72 65 |someplac|e, where|
|00002830| 20 64 6f 20 77 65 20 67 | 6f 3f 20 20 49 20 68 61 | do we g|o? I ha|
|00002840| 76 65 20 74 65 6e 74 61 | 74 69 76 65 6c 79 20 63 |ve tenta|tively c|
|00002850| 68 6f 6f 73 65 6e 20 74 | 6f 0a 6e 6f 74 20 63 61 |hoosen t|o.not ca|
|00002860| 74 63 68 20 74 68 72 6f | 77 73 20 62 79 20 74 68 |tch thro|ws by th|
|00002870| 65 20 6f 75 74 65 72 20 | 62 6c 6f 63 6b 20 61 74 |e outer |block at|
|00002880| 20 74 68 65 20 73 61 6d | 65 20 75 6e 77 69 6e 64 | the sam|e unwind|
|00002890| 20 6c 65 76 65 6c 2c 20 | 69 66 20 6f 6e 65 0a 65 | level, |if one.e|
|000028a0| 78 69 73 74 73 2c 20 62 | 75 74 20 72 61 74 68 65 |xists, b|ut rathe|
|000028b0| 72 20 74 6f 20 61 6c 6c | 6f 77 20 74 68 65 20 66 |r to all|ow the f|
|000028c0| 72 61 6d 65 20 74 6f 20 | 75 6e 77 69 6e 64 20 69 |rame to |unwind i|
|000028d0| 6e 74 6f 20 74 68 65 20 | 6e 65 78 74 20 73 65 72 |nto the |next ser|
|000028e0| 69 65 73 20 6f 66 0a 68 | 61 6e 64 6c 65 72 73 2c |ies of.h|andlers,|
|000028f0| 20 69 66 20 61 6e 79 2e | 20 20 49 66 20 74 68 69 | if any.| If thi|
|00002900| 73 20 69 73 20 74 68 65 | 20 77 72 6f 6e 67 20 77 |s is the| wrong w|
|00002910| 61 79 20 74 6f 20 64 6f | 20 69 74 2c 20 77 65 20 |ay to do| it, we |
|00002920| 77 69 6c 6c 20 6e 65 65 | 64 20 74 6f 0a 70 72 6f |will nee|d to.pro|
|00002930| 74 65 63 74 20 74 68 65 | 20 72 65 73 74 20 6f 66 |tect the| rest of|
|00002940| 20 74 68 65 20 68 61 6e | 64 6c 65 72 20 69 6e 20 | the han|dler in |
|00002950| 73 6f 6d 65 20 66 61 73 | 68 69 6f 6e 2e 20 20 4d |some fas|hion. M|
|00002960| 61 79 62 65 20 6a 75 73 | 74 20 63 68 61 6e 67 69 |aybe jus|t changi|
|00002970| 6e 67 0a 74 68 65 20 68 | 61 6e 64 6c 65 72 27 73 |ng.the h|andler's|
|00002980| 20 68 61 6e 64 6c 65 72 | 20 74 6f 20 70 72 6f 74 | handler| to prot|
|00002990| 65 63 74 20 74 68 65 20 | 77 68 6f 6c 65 20 73 65 |ect the |whole se|
|000029a0| 72 69 65 73 20 6f 66 20 | 68 61 6e 64 6c 65 72 73 |ries of |handlers|
|000029b0| 20 69 73 20 74 68 65 0a | 72 69 67 68 74 20 77 61 | is the.|right wa|
|000029c0| 79 20 74 6f 20 67 6f 2e | 0a 0a 54 68 65 20 45 48 |y to go.|..The EH|
|000029d0| 20 6f 62 6a 65 63 74 20 | 69 73 20 63 6f 70 69 65 | object |is copie|
|000029e0| 64 20 6c 69 6b 65 20 69 | 74 20 73 68 6f 75 6c 64 |d like i|t should|
|000029f0| 20 62 65 2c 20 69 66 20 | 69 74 20 69 73 20 70 61 | be, if |it is pa|
|00002a00| 73 73 65 64 20 62 79 20 | 76 61 6c 75 65 2c 0a 6f |ssed by |value,.o|
|00002a10| 74 68 65 72 77 69 73 65 | 20 77 65 20 67 65 74 20 |therwise| we get |
|00002a20| 61 20 72 65 66 65 72 65 | 6e 63 65 20 64 69 72 65 |a refere|nce dire|
|00002a30| 63 74 6c 79 20 74 6f 20 | 69 74 2e 0a 0a 45 48 20 |ctly to |it...EH |
|00002a40| 6f 62 6a 65 63 74 73 20 | 6d 61 6b 65 20 69 74 20 |objects |make it |
|00002a50| 74 68 72 6f 75 67 68 20 | 75 6e 77 69 6e 64 69 6e |through |unwindin|
|00002a60| 67 2c 20 62 75 74 20 61 | 72 65 20 73 75 62 6a 65 |g, but a|re subje|
|00002a70| 63 74 20 74 6f 20 62 65 | 69 6e 67 0a 6f 76 65 72 |ct to be|ing.over|
|00002a80| 77 72 69 74 74 65 6e 20 | 61 73 20 74 68 65 79 20 |written |as they |
|00002a90| 61 72 65 20 73 74 69 6c | 6c 20 70 61 73 74 20 74 |are stil|l past t|
|00002aa0| 68 65 20 74 6f 70 20 6f | 66 20 73 74 61 63 6b 2e |he top o|f stack.|
|00002ab0| 20 20 44 6f 6e 27 74 20 | 74 68 72 6f 77 0a 61 75 | Don't |throw.au|
|00002ac0| 74 6f 6d 61 74 69 63 20 | 6f 62 6a 65 63 74 73 20 |tomatic |objects |
|00002ad0| 69 66 20 74 68 69 73 20 | 69 73 20 61 20 70 72 6f |if this |is a pro|
|00002ae0| 62 6c 65 6d 2e 0a 0a 45 | 78 63 65 70 74 69 6f 6e |blem...E|xception|
|00002af0| 73 20 69 6e 20 63 61 74 | 63 68 20 68 61 6e 64 6c |s in cat|ch handl|
|00002b00| 65 72 73 20 6e 6f 77 20 | 67 6f 20 74 6f 20 6f 75 |ers now |go to ou|
|00002b10| 74 65 72 20 62 6c 6f 63 | 6b 2e 0a 0a 44 41 54 41 |ter bloc|k...DATA|
|00002b20| 5d 03 00 00 46 72 65 65 | 20 53 74 6f 72 65 0a 50 |]...Free| Store.P|
|00002b30| 72 65 76 69 6f 75 73 3a | 20 3c 45 78 63 65 70 74 |revious:| <Except|
|00002b40| 69 6f 6e 20 48 61 6e 64 | 6c 69 6e 67 3d 3e 45 78 |ion Hand|ling=>Ex|
|00002b50| 63 65 70 74 69 6f 6e 48 | 3e 20 2a 20 4e 65 78 74 |ceptionH|> * Next|
|00002b60| 3a 20 3c 43 6f 6e 63 65 | 70 74 20 49 6e 64 65 78 |: <Conce|pt Index|
|00002b70| 3d 3e 43 6f 6e 63 65 70 | 74 49 6e 64 3e 20 2a 20 |=>Concep|tInd> * |
|00002b80| 55 70 3a 20 3c 54 6f 70 | 3d 3e 21 52 6f 6f 74 3e |Up: <Top|=>!Root>|
|00002b90| 0a 0a 23 57 72 61 70 20 | 6f 6e 0a 7b 66 48 33 7d |..#Wrap |on.{fH3}|
|00002ba0| 46 72 65 65 20 53 74 6f | 72 65 7b 66 7d 0a 0a 6f |Free Sto|re{f}..o|
|00002bb0| 70 65 72 61 74 6f 72 20 | 6e 65 77 20 5b 5d 20 61 |perator |new [] a|
|00002bc0| 64 64 73 20 61 20 6d 61 | 67 69 63 20 63 6f 6f 6b |dds a ma|gic cook|
|00002bd0| 69 65 20 74 6f 20 74 68 | 65 20 62 65 67 69 6e 6e |ie to th|e beginn|
|00002be0| 69 6e 67 20 6f 66 20 61 | 72 72 61 79 73 20 66 6f |ing of a|rrays fo|
|00002bf0| 72 20 77 68 69 63 68 0a | 74 68 65 20 6e 75 6d 62 |r which.|the numb|
|00002c00| 65 72 20 6f 66 20 65 6c | 65 6d 65 6e 74 73 20 77 |er of el|ements w|
|00002c10| 69 6c 6c 20 62 65 20 6e | 65 65 64 65 64 20 62 79 |ill be n|eeded by|
|00002c20| 20 6f 70 65 72 61 74 6f | 72 20 64 65 6c 65 74 65 | operato|r delete|
|00002c30| 20 5b 5d 2e 20 20 54 68 | 65 73 65 20 61 72 65 0a | []. Th|ese are.|
|00002c40| 61 72 72 61 79 73 20 6f | 66 20 6f 62 6a 65 63 74 |arrays o|f object|
|00002c50| 73 20 77 69 74 68 20 64 | 65 73 74 72 75 63 74 6f |s with d|estructo|
|00002c60| 72 73 20 61 6e 64 20 61 | 72 72 61 79 73 20 6f 66 |rs and a|rrays of|
|00002c70| 20 6f 62 6a 65 63 74 73 | 20 74 68 61 74 20 64 65 | objects| that de|
|00002c80| 66 69 6e 65 0a 6f 70 65 | 72 61 74 6f 72 20 64 65 |fine.ope|rator de|
|00002c90| 6c 65 74 65 20 5b 5d 20 | 77 69 74 68 20 74 68 65 |lete [] |with the|
|00002ca0| 20 6f 70 74 69 6f 6e 61 | 6c 20 73 69 7a 65 5c 5f | optiona|l size\_|
|00002cb0| 74 20 61 72 67 75 6d 65 | 6e 74 2e 20 20 54 68 69 |t argume|nt. Thi|
|00002cc0| 73 20 63 6f 6f 6b 69 65 | 20 63 61 6e 0a 62 65 20 |s cookie| can.be |
|00002cd0| 65 78 61 6d 69 6e 65 64 | 20 66 72 6f 6d 20 61 20 |examined| from a |
|00002ce0| 70 72 6f 67 72 61 6d 20 | 61 73 20 66 6f 6c 6c 6f |program |as follo|
|00002cf0| 77 73 3a 0a 0a 23 57 72 | 61 70 20 6f 66 66 0a 23 |ws:..#Wr|ap off.#|
|00002d00| 66 43 6f 64 65 0a 74 79 | 70 65 64 65 66 20 75 6e |fCode.ty|pedef un|
|00002d10| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 73 69 7a 65 |signed l|ong size|
|00002d20| 5c 5f 74 3b 0a 65 78 74 | 65 72 6e 20 22 43 22 20 |\_t;.ext|ern "C" |
|00002d30| 69 6e 74 20 70 72 69 6e | 74 66 20 28 63 6f 6e 73 |int prin|tf (cons|
|00002d40| 74 20 63 68 61 72 20 5c | 2a 2c 20 2e 2e 2e 29 3b |t char \|*, ...);|
|00002d50| 0a 0a 73 69 7a 65 5c 5f | 74 20 6e 65 6c 74 73 20 |..size\_|t nelts |
|00002d60| 28 76 6f 69 64 20 5c 2a | 70 29 0a 5c 7b 0a 20 20 |(void \*|p).\{. |
|00002d70| 73 74 72 75 63 74 20 63 | 6f 6f 6b 69 65 20 5c 7b |struct c|ookie \{|
|00002d80| 0a 20 20 20 20 73 69 7a | 65 5c 5f 74 20 6e 65 6c |. siz|e\_t nel|
|00002d90| 74 73 20 5c 5f 5c 5f 61 | 74 74 72 69 62 75 74 65 |ts \_\_a|ttribute|
|00002da0| 5c 5f 5c 5f 20 28 28 61 | 6c 69 67 6e 65 64 20 28 |\_\_ ((a|ligned (|
|00002db0| 73 69 7a 65 6f 66 20 28 | 64 6f 75 62 6c 65 29 29 |sizeof (|double))|
|00002dc0| 29 29 3b 0a 20 20 5c 7d | 3b 0a 0a 20 20 63 6f 6f |));. \}|;.. coo|
|00002dd0| 6b 69 65 20 5c 2a 63 70 | 20 3d 20 28 63 6f 6f 6b |kie \*cp| = (cook|
|00002de0| 69 65 20 5c 2a 29 70 3b | 0a 20 20 2d 2d 63 70 3b |ie \*)p;|. --cp;|
|00002df0| 0a 0a 20 20 72 65 74 75 | 72 6e 20 63 70 2d 5c 3e |.. retu|rn cp-\>|
|00002e00| 6e 65 6c 74 73 3b 0a 5c | 7d 0a 0a 73 74 72 75 63 |nelts;.\|}..struc|
|00002e10| 74 20 41 20 5c 7b 0a 20 | 20 7e 41 28 29 20 5c 7b |t A \{. | ~A() \{|
|00002e20| 20 5c 7d 0a 5c 7d 3b 0a | 0a 6d 61 69 6e 28 29 0a | \}.\};.|.main().|
|00002e30| 5c 7b 0a 20 20 41 20 5c | 2a 61 70 20 3d 20 6e 65 |\{. A \|*ap = ne|
|00002e40| 77 20 41 5b 33 5d 3b 0a | 20 20 70 72 69 6e 74 66 |w A[3];.| printf|
|00002e50| 20 28 22 25 6c 64 5c 5c | 6e 22 2c 20 6e 65 6c 74 | ("%ld\\|n", nelt|
|00002e60| 73 20 28 61 70 29 29 3b | 0a 5c 7d 0a 23 66 0a 23 |s (ap));|.\}.#f.#|
|00002e70| 57 72 61 70 20 6f 6e 0a | 0a 00 00 00 44 41 54 41 |Wrap on.|....DATA|
|00002e80| 9b 05 00 00 47 6c 6f 73 | 73 61 72 79 0a 50 72 65 |....Glos|sary.Pre|
|00002e90| 76 69 6f 75 73 3a 20 3c | 49 6d 70 6c 65 6d 65 6e |vious: <|Implemen|
|00002ea0| 74 61 74 69 6f 6e 20 53 | 70 65 63 69 66 69 63 73 |tation S|pecifics|
|00002eb0| 3d 3e 49 6d 70 6c 65 6d | 65 6e 74 61 3e 20 2a 20 |=>Implem|enta> * |
|00002ec0| 4e 65 78 74 3a 20 3c 4d | 61 63 72 6f 73 3d 3e 4d |Next: <M|acros=>M|
|00002ed0| 61 63 72 6f 73 3e 20 2a | 20 55 70 3a 20 3c 54 6f |acros> *| Up: <To|
|00002ee0| 70 3d 3e 21 52 6f 6f 74 | 3e 0a 0a 23 57 72 61 70 |p=>!Root|>..#Wrap|
|00002ef0| 20 6f 6e 0a 7b 66 48 33 | 7d 47 6c 6f 73 73 61 72 | on.{fH3|}Glossar|
|00002f00| 79 7b 66 7d 0a 0a 23 49 | 6e 64 65 6e 74 20 2b 34 |y{f}..#I|ndent +4|
|00002f10| 0a 23 49 6e 64 65 6e 74 | 0a 62 69 6e 66 6f 0a 23 |.#Indent|.binfo.#|
|00002f20| 49 6e 64 65 6e 74 20 2b | 34 0a 54 68 65 20 6d 61 |Indent +|4.The ma|
|00002f30| 69 6e 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |in data |structur|
|00002f40| 65 20 69 6e 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 |e in the| compile|
|00002f50| 72 20 75 73 65 64 20 74 | 6f 20 72 65 70 72 65 73 |r used t|o repres|
|00002f60| 65 6e 74 20 74 68 65 0a | 69 6e 68 65 72 69 74 61 |ent the.|inherita|
|00002f70| 6e 63 65 20 72 65 6c 61 | 74 69 6f 6e 73 68 69 70 |nce rela|tionship|
|00002f80| 73 20 62 65 74 77 65 65 | 6e 20 63 6c 61 73 73 65 |s betwee|n classe|
|00002f90| 73 2e 20 20 54 68 65 20 | 64 61 74 61 20 69 6e 20 |s. The |data in |
|00002fa0| 74 68 65 20 62 69 6e 66 | 6f 20 63 61 6e 20 62 65 |the binf|o can be|
|00002fb0| 0a 61 63 63 65 73 73 65 | 64 20 62 79 20 74 68 65 |.accesse|d by the|
|00002fc0| 20 42 49 4e 46 4f 5c 5f | 20 61 63 63 65 73 73 6f | BINFO\_| accesso|
|00002fd0| 72 20 6d 61 63 72 6f 73 | 2e 0a 0a 23 49 6e 64 65 |r macros|...#Inde|
|00002fe0| 6e 74 0a 76 74 61 62 6c | 65 0a 23 49 6e 64 65 6e |nt.vtabl|e.#Inden|
|00002ff0| 74 20 2b 34 0a 23 49 6e | 64 65 6e 74 0a 76 69 72 |t +4.#In|dent.vir|
|00003000| 74 75 61 6c 20 66 75 6e | 63 74 69 6f 6e 20 74 61 |tual fun|ction ta|
|00003010| 62 6c 65 0a 23 49 6e 64 | 65 6e 74 20 2b 34 0a 0a |ble.#Ind|ent +4..|
|00003020| 54 68 65 20 76 69 72 74 | 75 61 6c 20 66 75 6e 63 |The virt|ual func|
|00003030| 74 69 6f 6e 20 74 61 62 | 6c 65 20 68 6f 6c 64 73 |tion tab|le holds|
|00003040| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 75 73 65 | informa|tion use|
|00003050| 64 20 69 6e 20 76 69 72 | 74 75 61 6c 20 66 75 6e |d in vir|tual fun|
|00003060| 63 74 69 6f 6e 0a 64 69 | 73 70 61 74 63 68 69 6e |ction.di|spatchin|
|00003070| 67 2e 20 20 49 6e 20 74 | 68 65 20 63 6f 6d 70 69 |g. In t|he compi|
|00003080| 6c 65 72 2c 20 74 68 65 | 79 20 61 72 65 20 75 73 |ler, the|y are us|
|00003090| 75 61 6c 6c 79 20 72 65 | 66 65 72 72 65 64 20 74 |ually re|ferred t|
|000030a0| 6f 20 61 73 20 76 74 61 | 62 6c 65 73 2c 0a 6f 72 |o as vta|bles,.or|
|000030b0| 20 76 74 62 6c 73 2e 20 | 20 54 68 65 20 66 69 72 | vtbls. | The fir|
|000030c0| 73 74 20 69 6e 64 65 78 | 20 69 73 20 6e 6f 74 20 |st index| is not |
|000030d0| 75 73 65 64 20 69 6e 20 | 74 68 65 20 6e 6f 72 6d |used in |the norm|
|000030e0| 61 6c 20 77 61 79 2c 20 | 49 20 62 65 6c 69 65 76 |al way, |I believ|
|000030f0| 65 20 69 74 0a 69 73 20 | 70 72 6f 62 61 62 6c 79 |e it.is |probably|
|00003100| 20 75 73 65 64 20 66 6f | 72 20 74 68 65 20 76 69 | used fo|r the vi|
|00003110| 72 74 75 61 6c 20 64 65 | 73 74 72 75 63 74 6f 72 |rtual de|structor|
|00003120| 2e 0a 0a 23 49 6e 64 65 | 6e 74 0a 76 66 69 65 6c |...#Inde|nt.vfiel|
|00003130| 64 0a 23 49 6e 64 65 6e | 74 20 2b 34 0a 0a 76 66 |d.#Inden|t +4..vf|
|00003140| 69 65 6c 64 73 20 63 61 | 6e 20 62 65 20 74 68 6f |ields ca|n be tho|
|00003150| 75 67 68 74 20 6f 66 20 | 61 73 20 74 68 65 20 62 |ught of |as the b|
|00003160| 61 73 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ase info|rmation |
|00003170| 6e 65 65 64 65 64 20 74 | 6f 20 62 75 69 6c 64 0a |needed t|o build.|
|00003180| 76 74 61 62 6c 65 73 2e | 20 20 46 6f 72 20 65 76 |vtables.| For ev|
|00003190| 65 72 79 20 76 74 61 62 | 6c 65 20 74 68 61 74 20 |ery vtab|le that |
|000031a0| 65 78 69 73 74 73 20 66 | 6f 72 20 61 20 63 6c 61 |exists f|or a cla|
|000031b0| 73 73 2c 20 74 68 65 72 | 65 20 69 73 20 61 20 76 |ss, ther|e is a v|
|000031c0| 66 69 65 6c 64 2e 0a 53 | 65 65 20 61 6c 73 6f 20 |field..S|ee also |
|000031d0| 76 74 61 62 6c 65 20 61 | 6e 64 20 76 69 72 74 75 |vtable a|nd virtu|
|000031e0| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 74 61 62 6c |al funct|ion tabl|
|000031f0| 65 20 70 6f 69 6e 74 65 | 72 2e 20 20 57 68 65 6e |e pointe|r. When|
|00003200| 20 61 20 74 79 70 65 20 | 69 73 20 75 73 65 64 0a | a type |is used.|
|00003210| 61 73 20 61 20 62 61 73 | 65 20 63 6c 61 73 73 20 |as a bas|e class |
|00003220| 74 6f 20 61 6e 6f 74 68 | 65 72 20 74 79 70 65 2c |to anoth|er type,|
|00003230| 20 74 68 65 20 76 69 72 | 74 75 61 6c 20 66 75 6e | the vir|tual fun|
|00003240| 63 74 69 6f 6e 20 74 61 | 62 6c 65 20 66 6f 72 20 |ction ta|ble for |
|00003250| 74 68 65 0a 64 65 72 69 | 76 65 64 20 63 6c 61 73 |the.deri|ved clas|
|00003260| 73 20 63 61 6e 20 62 65 | 20 62 61 73 65 64 20 75 |s can be| based u|
|00003270| 70 6f 6e 20 74 68 65 20 | 76 74 61 62 6c 65 20 66 |pon the |vtable f|
|00003280| 6f 72 20 74 68 65 20 62 | 61 73 65 20 63 6c 61 73 |or the b|ase clas|
|00003290| 73 2c 20 6a 75 73 74 0a | 65 78 74 65 6e 64 65 64 |s, just.|extended|
|000032a0| 20 74 6f 20 69 6e 63 6c | 75 64 65 20 74 68 65 20 | to incl|ude the |
|000032b0| 61 64 64 69 74 69 6f 6e | 61 6c 20 76 69 72 74 75 |addition|al virtu|
|000032c0| 61 6c 20 6d 65 74 68 6f | 64 73 20 64 65 63 6c 61 |al metho|ds decla|
|000032d0| 72 65 64 20 69 6e 20 74 | 68 65 0a 64 65 72 69 76 |red in t|he.deriv|
|000032e0| 65 64 20 63 6c 61 73 73 | 2e 20 20 54 68 65 20 76 |ed class|. The v|
|000032f0| 69 72 74 75 61 6c 20 66 | 75 6e 63 74 69 6f 6e 20 |irtual f|unction |
|00003300| 74 61 62 6c 65 20 66 72 | 6f 6d 20 61 20 76 69 72 |table fr|om a vir|
|00003310| 74 75 61 6c 20 62 61 73 | 65 20 63 6c 61 73 73 20 |tual bas|e class |
|00003320| 69 73 0a 6e 65 76 65 72 | 20 72 65 75 73 65 64 20 |is.never| reused |
|00003330| 69 6e 20 61 20 64 65 72 | 69 76 65 64 20 63 6c 61 |in a der|ived cla|
|00003340| 73 73 2e 20 20 7b 66 43 | 6f 64 65 7d 69 73 5c 5f |ss. {fC|ode}is\_|
|00003350| 6e 6f 72 6d 61 6c 7b 66 | 7d 20 64 65 70 65 6e 64 |normal{f|} depend|
|00003360| 73 20 75 70 6f 6e 20 74 | 68 69 73 2e 0a 0a 23 49 |s upon t|his...#I|
|00003370| 6e 64 65 6e 74 0a 76 69 | 72 74 75 61 6c 20 66 75 |ndent.vi|rtual fu|
|00003380| 6e 63 74 69 6f 6e 20 74 | 61 62 6c 65 20 70 6f 69 |nction t|able poi|
|00003390| 6e 74 65 72 0a 23 49 6e | 64 65 6e 74 20 2b 34 0a |nter.#In|dent +4.|
|000033a0| 0a 54 68 65 73 65 20 61 | 72 65 20 7b 66 43 6f 64 |.These a|re {fCod|
|000033b0| 65 7d 46 49 45 4c 44 5c | 5f 44 45 43 4c 7b 66 7d |e}FIELD\|_DECL{f}|
|000033c0| 73 20 74 68 61 74 20 61 | 72 65 20 70 6f 69 6e 74 |s that a|re point|
|000033d0| 65 72 20 74 79 70 65 73 | 20 74 68 61 74 20 70 6f |er types| that po|
|000033e0| 69 6e 74 20 74 6f 0a 76 | 74 61 62 6c 65 73 2e 20 |int to.v|tables. |
|000033f0| 20 53 65 65 20 61 6c 73 | 6f 20 76 74 61 62 6c 65 | See als|o vtable|
|00003400| 20 61 6e 64 20 76 66 69 | 65 6c 64 2e 0a 0a 23 49 | and vfi|eld...#I|
|00003410| 6e 64 65 6e 74 0a 0a 00 | 44 49 52 24 80 02 00 00 |ndent...|DIR$....|
|00003420| 40 02 00 00 80 00 00 00 | 46 ff ff ff d3 0e e5 2a |@.......|F......*|
|00003430| 9c 03 00 00 33 00 00 00 | 00 00 00 00 21 52 6f 6f |....3...|....!Roo|
|00003440| 74 00 00 00 1c 04 00 00 | 46 ff ff ff 32 18 e5 2a |t.......|F...2..*|
|00003450| 42 04 00 00 33 00 00 00 | 00 00 00 00 41 63 63 65 |B...3...|....Acce|
|00003460| 73 73 43 6f 6e 74 00 00 | c0 09 00 00 46 ff ff ff |ssCont..|....F...|
|00003470| 07 17 e5 2a db 01 00 00 | 33 00 00 00 00 00 00 00 |...*....|3.......|
|00003480| 43 6f 64 69 6e 67 43 6f | 6e 76 00 00 9c 0b 00 00 |CodingCo|nv......|
|00003490| 46 ff ff ff 8d 1c e5 2a | 3a 01 00 00 33 00 00 00 |F......*|:...3...|
|000034a0| 00 00 00 00 43 6f 6e 63 | 65 70 74 49 6e 64 00 00 |....Conc|eptInd..|
|000034b0| d8 0c 00 00 46 ff ff ff | b8 1a e5 2a 5e 04 00 00 |....F...|...*^...|
|000034c0| 33 00 00 00 00 00 00 00 | 43 6f 70 79 69 6e 67 4f |3.......|CopyingO|
|000034d0| 62 6a 00 00 38 11 00 00 | 46 ff ff ff 15 19 e5 2a |bj..8...|F......*|
|000034e0| 88 05 00 00 33 00 00 00 | 00 00 00 00 45 72 72 6f |....3...|....Erro|
|000034f0| 72 52 65 70 6f 72 00 00 | c0 16 00 00 46 ff ff ff |rRepor..|....F...|
|00003500| 89 1b e5 2a 5c 14 00 00 | 33 00 00 00 00 00 00 00 |...*\...|3.......|
|00003510| 45 78 63 65 70 74 69 6f | 6e 48 00 00 1c 2b 00 00 |Exceptio|nH...+..|
|00003520| 46 ff ff ff 07 1c e5 2a | 5d 03 00 00 33 00 00 00 |F......*|]...3...|
|00003530| 00 00 00 00 46 72 65 65 | 53 74 6f 72 65 00 00 00 |....Free|Store...|
|00003540| 7c 2e 00 00 46 ff ff ff | 0b 13 e5 2a 9b 05 00 00 ||...F...|...*....|
|00003550| 33 00 00 00 00 00 00 00 | 47 6c 6f 73 73 61 72 79 |3.......|Glossary|
|00003560| 00 00 00 00 98 36 00 00 | 46 ff ff ff 3f 12 e5 2a |.....6..|F...?..*|
|00003570| 31 0e 00 00 13 00 00 00 | 00 00 00 00 49 6d 70 6c |1.......|....Impl|
|00003580| 65 6d 65 6e 74 61 00 00 | cc 44 00 00 46 ff ff ff |ementa..|.D..F...|
|00003590| c6 0f e5 2a bc 05 00 00 | 13 00 00 00 00 00 00 00 |...*....|........|
|000035a0| 4c 69 6d 69 74 61 74 69 | 6f 6e 00 00 88 4a 00 00 |Limitati|on...J..|
|000035b0| 46 ff ff ff ef 15 e5 2a | 41 47 00 00 13 00 00 00 |F......*|AG......|
|000035c0| 00 00 00 00 4d 61 63 72 | 6f 73 00 00 cc 91 00 00 |....Macr|os......|
|000035d0| 46 ff ff ff 22 1a e5 2a | 8a 0e 00 00 13 00 00 00 |F..."..*|........|
|000035e0| 00 00 00 00 50 61 72 73 | 65 72 00 00 58 a0 00 00 |....Pars|er..X...|
|000035f0| 46 ff ff ff d5 10 e5 2a | 87 0c 00 00 13 00 00 00 |F......*|........|
|00003600| 00 00 00 00 52 6f 75 74 | 69 6e 65 73 00 00 00 00 |....Rout|ines....|
|00003610| e0 ac 00 00 46 ff ff ff | 8e 17 e5 2a 2c 04 00 00 |....F...|...*,...|
|00003620| 13 00 00 00 00 00 00 00 | 54 65 6d 70 6c 61 74 65 |........|Template|
|00003630| 73 00 00 00 60 08 00 00 | 46 ff ff ff 8f 16 e5 2a |s...`...|F......*|
|00003640| 44 01 00 00 13 00 00 00 | 00 00 00 00 54 79 70 69 |D.......|....Typi|
|00003650| 63 61 6c 42 65 68 00 00 | ff ff ff ff ff ff ff ff |calBeh..|........|
|00003660| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00003670| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00003680| ff ff ff ff ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00003690| ff ff ff ff ff ff ff ff | 44 41 54 41 31 0e 00 00 |........|DATA1...|
|000036a0| 49 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 53 |Implemen|tation S|
|000036b0| 70 65 63 69 66 69 63 73 | 0a 50 72 65 76 69 6f 75 |pecifics|.Previou|
|000036c0| 73 3a 20 3c 52 6f 75 74 | 69 6e 65 73 3d 3e 52 6f |s: <Rout|ines=>Ro|
|000036d0| 75 74 69 6e 65 73 3e 20 | 2a 20 4e 65 78 74 3a 20 |utines> |* Next: |
|000036e0| 3c 47 6c 6f 73 73 61 72 | 79 3d 3e 47 6c 6f 73 73 |<Glossar|y=>Gloss|
|000036f0| 61 72 79 3e 20 2a 20 55 | 70 3a 20 3c 54 6f 70 3d |ary> * U|p: <Top=|
|00003700| 3e 21 52 6f 6f 74 3e 0a | 0a 23 57 72 61 70 20 6f |>!Root>.|.#Wrap o|
|00003710| 6e 0a 7b 66 48 33 7d 49 | 6d 70 6c 65 6d 65 6e 74 |n.{fH3}I|mplement|
|00003720| 61 74 69 6f 6e 20 53 70 | 65 63 69 66 69 63 73 7b |ation Sp|ecifics{|
|00003730| 66 7d 0a 0a 23 49 6e 64 | 65 6e 74 20 2b 34 0a 0a |f}..#Ind|ent +4..|
|00003740| 20 8f 20 0a 54 68 65 20 | 67 6c 6f 62 61 6c 20 6c | . .The |global l|
|00003750| 69 73 74 20 7b 66 43 6f | 64 65 7d 63 75 72 72 65 |ist {fCo|de}curre|
|00003760| 6e 74 5c 5f 6d 65 6d 62 | 65 72 5c 5f 69 6e 69 74 |nt\_memb|er\_init|
|00003770| 5c 5f 6c 69 73 74 7b 66 | 7d 20 63 6f 6e 74 61 69 |\_list{f|} contai|
|00003780| 6e 73 20 74 68 65 20 6c | 69 73 74 20 6f 66 0a 6d |ns the l|ist of.m|
|00003790| 65 6d 2d 69 6e 69 74 69 | 61 6c 69 7a 65 72 73 20 |em-initi|alizers |
|000037a0| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 61 20 63 |specifie|d in a c|
|000037b0| 6f 6e 73 74 72 75 63 74 | 6f 72 20 64 65 63 6c 61 |onstruct|or decla|
|000037c0| 72 61 74 69 6f 6e 2e 20 | 20 46 6f 72 20 65 78 61 |ration. | For exa|
|000037d0| 6d 70 6c 65 3a 0a 0a 23 | 57 72 61 70 20 6f 66 66 |mple:..#|Wrap off|
|000037e0| 0a 23 66 43 6f 64 65 0a | 66 6f 6f 3a 3a 66 6f 6f |.#fCode.|foo::foo|
|000037f0| 28 29 20 3a 20 61 28 31 | 29 2c 20 62 28 32 29 20 |() : a(1|), b(2) |
|00003800| 5c 7b 5c 7d 0a 23 66 0a | 23 57 72 61 70 20 6f 6e |\{\}.#f.|#Wrap on|
|00003810| 0a 0a 77 69 6c 6c 20 69 | 6e 69 74 69 61 6c 69 7a |..will i|nitializ|
|00003820| 65 20 7b 66 45 6d 70 68 | 61 73 69 73 7d 61 7b 66 |e {fEmph|asis}a{f|
|00003830| 7d 20 77 69 74 68 20 31 | 20 61 6e 64 20 7b 66 45 |} with 1| and {fE|
|00003840| 6d 70 68 61 73 69 73 7d | 62 7b 66 7d 20 77 69 74 |mphasis}|b{f} wit|
|00003850| 68 20 32 2e 0a 7b 66 43 | 6f 64 65 7d 65 78 70 61 |h 2..{fC|ode}expa|
|00003860| 6e 64 5c 5f 6d 65 6d 62 | 65 72 5c 5f 69 6e 69 74 |nd\_memb|er\_init|
|00003870| 7b 66 7d 20 70 6c 61 63 | 65 73 20 65 61 63 68 20 |{f} plac|es each |
|00003880| 69 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 20 28 |initiali|zation (|
|00003890| 61 20 77 69 74 68 20 31 | 29 20 6f 6e 20 74 68 65 |a with 1|) on the|
|000038a0| 0a 67 6c 6f 62 61 6c 20 | 6c 69 73 74 2e 20 20 54 |.global |list. T|
|000038b0| 68 65 6e 2c 20 77 68 65 | 6e 20 74 68 65 20 66 6e |hen, whe|n the fn|
|000038c0| 64 65 63 6c 20 69 73 20 | 62 65 69 6e 67 20 70 72 |decl is |being pr|
|000038d0| 6f 63 65 73 73 65 64 2c | 0a 7b 66 43 6f 64 65 7d |ocessed,|.{fCode}|
|000038e0| 65 6d 69 74 5c 5f 62 61 | 73 65 5c 5f 69 6e 69 74 |emit\_ba|se\_init|
|000038f0| 7b 66 7d 20 72 75 6e 73 | 20 64 6f 77 6e 20 74 68 |{f} runs| down th|
|00003900| 65 20 6c 69 73 74 2c 20 | 69 6e 69 74 69 61 6c 69 |e list, |initiali|
|00003910| 7a 69 6e 67 20 74 68 65 | 6d 2e 20 20 49 74 20 75 |zing the|m. It u|
|00003920| 73 65 64 20 74 6f 0a 62 | 65 20 74 68 65 20 63 61 |sed to.b|e the ca|
|00003930| 73 65 20 74 68 61 74 20 | 67 2b 2b 20 66 69 72 73 |se that |g++ firs|
|00003940| 74 20 72 61 6e 20 64 6f | 77 6e 20 7b 66 43 6f 64 |t ran do|wn {fCod|
|00003950| 65 7d 63 75 72 72 65 6e | 74 5c 5f 6d 65 6d 62 65 |e}curren|t\_membe|
|00003960| 72 5c 5f 69 6e 69 74 5c | 5f 6c 69 73 74 7b 66 7d |r\_init\|_list{f}|
|00003970| 2c 0a 74 68 65 6e 20 72 | 61 6e 20 64 6f 77 6e 20 |,.then r|an down |
|00003980| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 6d 65 6d 62 |the list| of memb|
|00003990| 65 72 73 20 69 6e 69 74 | 69 61 6c 69 7a 69 6e 67 |ers init|ializing|
|000039a0| 20 74 68 65 20 6f 6e 65 | 73 20 74 68 61 74 20 77 | the one|s that w|
|000039b0| 65 72 65 6e 27 74 0a 65 | 78 70 6c 69 63 69 74 6c |eren't.e|xplicitl|
|000039c0| 79 20 69 6e 69 74 69 61 | 6c 69 7a 65 64 2e 20 20 |y initia|lized. |
|000039d0| 54 68 69 6e 67 73 20 77 | 65 72 65 20 72 65 77 72 |Things w|ere rewr|
|000039e0| 69 74 74 65 6e 20 74 6f | 20 70 65 72 66 6f 72 6d |itten to| perform|
|000039f0| 20 74 68 65 0a 69 6e 69 | 74 69 61 6c 69 7a 61 74 | the.ini|tializat|
|00003a00| 69 6f 6e 73 20 69 6e 20 | 6f 72 64 65 72 20 6f 66 |ions in |order of|
|00003a10| 20 64 65 63 6c 61 72 61 | 74 69 6f 6e 20 69 6e 20 | declara|tion in |
|00003a20| 74 68 65 20 63 6c 61 73 | 73 2e 20 20 53 6f 2c 20 |the clas|s. So, |
|00003a30| 66 6f 72 20 74 68 65 20 | 61 62 6f 76 65 0a 65 78 |for the |above.ex|
|00003a40| 61 6d 70 6c 65 2c 20 7b | 66 45 6d 70 68 61 73 69 |ample, {|fEmphasi|
|00003a50| 73 7d 61 7b 66 7d 20 61 | 6e 64 20 7b 66 45 6d 70 |s}a{f} a|nd {fEmp|
|00003a60| 68 61 73 69 73 7d 62 7b | 66 7d 20 77 69 6c 6c 20 |hasis}b{|f} will |
|00003a70| 62 65 20 69 6e 69 74 69 | 61 6c 69 7a 65 64 20 69 |be initi|alized i|
|00003a80| 6e 20 74 68 65 20 6f 72 | 64 65 72 20 74 68 61 74 |n the or|der that|
|00003a90| 0a 74 68 65 79 20 77 65 | 72 65 20 64 65 63 6c 61 |.they we|re decla|
|00003aa0| 72 65 64 3a 0a 0a 23 57 | 72 61 70 20 6f 66 66 0a |red:..#W|rap off.|
|00003ab0| 23 66 43 6f 64 65 0a 63 | 6c 61 73 73 20 66 6f 6f |#fCode.c|lass foo|
|00003ac0| 20 5c 7b 20 70 75 62 6c | 69 63 3a 20 69 6e 74 20 | \{ publ|ic: int |
|00003ad0| 62 3b 20 69 6e 74 20 61 | 3b 20 66 6f 6f 20 28 29 |b; int a|; foo ()|
|00003ae0| 3b 20 5c 7d 3b 0a 23 66 | 0a 23 57 72 61 70 20 6f |; \};.#f|.#Wrap o|
|00003af0| 6e 0a 0a 54 68 75 73 2c | 20 7b 66 45 6d 70 68 61 |n..Thus,| {fEmpha|
|00003b00| 73 69 73 7d 62 7b 66 7d | 20 77 69 6c 6c 20 62 65 |sis}b{f}| will be|
|00003b10| 20 69 6e 69 74 69 61 6c | 69 7a 65 64 20 77 69 74 | initial|ized wit|
|00003b20| 68 20 32 20 66 69 72 73 | 74 2c 20 74 68 65 6e 20 |h 2 firs|t, then |
|00003b30| 7b 66 45 6d 70 68 61 73 | 69 73 7d 61 7b 66 7d 20 |{fEmphas|is}a{f} |
|00003b40| 77 69 6c 6c 20 62 65 0a | 69 6e 69 74 69 61 6c 69 |will be.|initiali|
|00003b50| 7a 65 64 20 77 69 74 68 | 20 31 2c 20 72 65 67 61 |zed with| 1, rega|
|00003b60| 72 64 6c 65 73 73 20 6f | 66 20 68 6f 77 20 74 68 |rdless o|f how th|
|00003b70| 65 79 27 72 65 20 6c 69 | 73 74 65 64 20 69 6e 20 |ey're li|sted in |
|00003b80| 74 68 65 20 6d 65 6d 2d | 69 6e 69 74 69 61 6c 69 |the mem-|initiali|
|00003b90| 7a 65 72 2e 0a 0a 0a 20 | 8f 20 0a 49 6e 20 65 61 |zer.... |. .In ea|
|00003ba0| 72 6c 79 20 31 39 39 33 | 2c 20 74 68 65 20 61 72 |rly 1993|, the ar|
|00003bb0| 67 75 6d 65 6e 74 20 6d | 61 74 63 68 69 6e 67 20 |gument m|atching |
|00003bc0| 73 63 68 65 6d 65 20 69 | 6e 20 47 4e 55 20 43 2b |scheme i|n GNU C+|
|00003bd0| 2b 20 63 68 61 6e 67 65 | 64 0a 73 69 67 6e 69 66 |+ change|d.signif|
|00003be0| 69 63 61 6e 74 6c 79 2e | 20 20 54 68 65 20 6f 72 |icantly.| The or|
|00003bf0| 69 67 69 6e 61 6c 20 63 | 6f 64 65 20 77 61 73 20 |iginal c|ode was |
|00003c00| 63 6f 6d 70 6c 65 74 65 | 6c 79 20 72 65 70 6c 61 |complete|ly repla|
|00003c10| 63 65 64 20 77 69 74 68 | 20 61 20 6e 65 77 0a 6d |ced with| a new.m|
|00003c20| 65 74 68 6f 64 20 74 68 | 61 74 20 77 69 6c 6c 2c |ethod th|at will,|
|00003c30| 20 68 6f 70 65 66 75 6c | 6c 79 2c 20 62 65 20 65 | hopeful|ly, be e|
|00003c40| 61 73 69 65 72 20 74 6f | 20 75 6e 64 65 72 73 74 |asier to| underst|
|00003c50| 61 6e 64 20 61 6e 64 20 | 6d 61 6b 65 20 66 69 78 |and and |make fix|
|00003c60| 69 6e 67 0a 73 70 65 63 | 69 66 69 63 20 63 61 73 |ing.spec|ific cas|
|00003c70| 65 73 20 6d 75 63 68 20 | 65 61 73 69 65 72 2e 0a |es much |easier..|
|00003c80| 0a 54 68 65 20 7b 66 45 | 6d 70 68 61 73 69 73 7d |.The {fE|mphasis}|
|00003c90| 2d 66 61 6e 73 69 2d 6f | 76 65 72 6c 6f 61 64 69 |-fansi-o|verloadi|
|00003ca0| 6e 67 7b 66 7d 20 6f 70 | 74 69 6f 6e 20 69 73 20 |ng{f} op|tion is |
|00003cb0| 75 73 65 64 20 74 6f 20 | 65 6e 61 62 6c 65 20 74 |used to |enable t|
|00003cc0| 68 65 20 6e 65 77 20 63 | 6f 64 65 3b 20 61 74 0a |he new c|ode; at.|
|00003cd0| 73 6f 6d 65 20 70 6f 69 | 6e 74 20 69 6e 20 74 68 |some poi|nt in th|
|00003ce0| 65 20 66 75 74 75 72 65 | 2c 20 69 74 20 77 69 6c |e future|, it wil|
|00003cf0| 6c 20 62 65 63 6f 6d 65 | 20 74 68 65 20 64 65 66 |l become| the def|
|00003d00| 61 75 6c 74 20 62 65 68 | 61 76 69 6f 72 20 6f 66 |ault beh|avior of|
|00003d10| 20 74 68 65 0a 63 6f 6d | 70 69 6c 65 72 2e 0a 0a | the.com|piler...|
|00003d20| 54 68 65 20 66 69 6c 65 | 20 7b 66 43 69 74 65 7d |The file| {fCite}|
|00003d30| 63 70 2d 63 61 6c 6c 2e | 63 7b 66 7d 20 63 6f 6e |cp-call.|c{f} con|
|00003d40| 74 61 69 6e 73 20 61 6c | 6c 20 6f 66 20 74 68 65 |tains al|l of the|
|00003d50| 20 6e 65 77 20 77 6f 72 | 6b 2c 20 69 6e 20 74 68 | new wor|k, in th|
|00003d60| 65 20 66 75 6e 63 74 69 | 6f 6e 73 0a 7b 66 43 6f |e functi|ons.{fCo|
|00003d70| 64 65 7d 72 61 6e 6b 5c | 5f 66 6f 72 5c 5f 6f 76 |de}rank\|_for\_ov|
|00003d80| 65 72 6c 6f 61 64 7b 66 | 7d 2c 20 7b 66 43 6f 64 |erload{f|}, {fCod|
|00003d90| 65 7d 63 6f 6d 70 75 74 | 65 5c 5f 68 61 72 73 68 |e}comput|e\_harsh|
|00003da0| 6e 65 73 73 7b 66 7d 2c | 0a 7b 66 43 6f 64 65 7d |ness{f},|.{fCode}|
|00003db0| 63 6f 6d 70 75 74 65 5c | 5f 63 6f 6e 76 65 72 73 |compute\|_convers|
|00003dc0| 69 6f 6e 5c 5f 63 6f 73 | 74 73 7b 66 7d 2c 20 61 |ion\_cos|ts{f}, a|
|00003dd0| 6e 64 20 7b 66 43 6f 64 | 65 7d 69 64 65 61 6c 5c |nd {fCod|e}ideal\|
|00003de0| 5f 63 61 6e 64 69 64 61 | 74 65 7b 66 7d 2e 0a 0a |_candida|te{f}...|
|00003df0| 49 6e 73 74 65 61 64 20 | 6f 66 20 75 73 69 6e 67 |Instead |of using|
|00003e00| 20 6f 62 73 63 75 72 65 | 20 6e 75 6d 65 72 69 63 | obscure| numeric|
|00003e10| 61 6c 20 76 61 6c 75 65 | 73 2c 20 74 68 65 20 71 |al value|s, the q|
|00003e20| 75 61 6c 69 74 79 20 6f | 66 20 61 6e 20 61 72 67 |uality o|f an arg|
|00003e30| 75 6d 65 6e 74 0a 6d 61 | 74 63 68 20 69 73 20 6e |ument.ma|tch is n|
|00003e40| 6f 77 20 72 65 70 72 65 | 73 65 6e 74 65 64 20 62 |ow repre|sented b|
|00003e50| 79 20 63 6c 65 61 72 2c | 20 69 6e 64 69 76 69 64 |y clear,| individ|
|00003e60| 75 61 6c 20 63 6f 64 65 | 73 2e 20 20 54 68 65 20 |ual code|s. The |
|00003e70| 6e 65 77 20 64 61 74 61 | 0a 73 74 72 75 63 74 75 |new data|.structu|
|00003e80| 72 65 20 7b 66 43 6f 64 | 65 7d 73 74 72 75 63 74 |re {fCod|e}struct|
|00003e90| 20 68 61 72 73 68 6e 65 | 73 73 7b 66 7d 20 28 69 | harshne|ss{f} (i|
|00003ea0| 74 20 75 73 65 64 20 74 | 6f 20 62 65 20 61 6e 20 |t used t|o be an |
|00003eb0| 7b 66 43 6f 64 65 7d 75 | 6e 73 69 67 6e 65 64 7b |{fCode}u|nsigned{|
|00003ec0| 66 7d 0a 6e 75 6d 62 65 | 72 29 20 63 6f 6e 74 61 |f}.numbe|r) conta|
|00003ed0| 69 6e 73 3a 0a 0a 23 49 | 6e 64 65 6e 74 20 2b 34 |ins:..#I|ndent +4|
|00003ee0| 0a 20 61 2e 20 61 72 67 | 75 6d 65 6e 74 73 3b 0a |. a. arg|uments;.|
|00003ef0| 20 62 2e 20 64 65 63 69 | 64 65 73 20 77 68 69 63 | b. deci|des whic|
|00003f00| 68 20 66 75 6e 63 74 69 | 6f 6e 20 73 68 6f 75 6c |h functi|on shoul|
|00003f10| 64 20 62 65 20 63 61 6c | 6c 65 64 20 28 6f 6e 65 |d be cal|led (one|
|00003f20| 20 69 73 20 60 60 63 6c | 6f 73 65 72 27 27 20 74 | is ``cl|oser'' t|
|00003f30| 68 61 6e 0a 61 6e 6f 74 | 68 65 72 29 3b 0a 20 63 |han.anot|her);. c|
|00003f40| 2e 20 0a 23 49 6e 64 65 | 6e 74 0a 0a 54 68 65 20 |. .#Inde|nt..The |
|00003f50| 7b 66 45 6d 70 68 61 73 | 69 73 7d 63 6f 64 65 7b |{fEmphas|is}code{|
|00003f60| 66 7d 20 66 69 65 6c 64 | 20 69 73 20 61 20 6e 75 |f} field| is a nu|
|00003f70| 6d 62 65 72 20 77 69 74 | 68 20 61 20 67 69 76 65 |mber wit|h a give|
|00003f80| 6e 20 62 69 74 20 73 65 | 74 20 66 6f 72 20 65 61 |n bit se|t for ea|
|00003f90| 63 68 20 74 79 70 65 20 | 6f 66 0a 63 6f 64 65 2c |ch type |of.code,|
|00003fa0| 20 4f 52 27 64 20 74 6f | 67 65 74 68 65 72 2e 20 | OR'd to|gether. |
|00003fb0| 20 54 68 65 20 6e 65 77 | 20 63 6f 64 65 73 20 61 | The new| codes a|
|00003fc0| 72 65 3a 0a 0a 23 49 6e | 64 65 6e 74 20 2b 34 0a |re:..#In|dent +4.|
|00003fd0| 0a 20 8f 20 54 68 65 20 | 61 72 67 75 6d 65 6e 74 |. . The |argument|
|00003fe0| 20 77 61 73 20 6e 6f 74 | 20 61 20 70 65 72 6d 69 | was not| a permi|
|00003ff0| 73 73 69 62 6c 65 20 6d | 61 74 63 68 2e 0a 0a 0a |ssible m|atch....|
|00004000| 20 8f 20 43 75 72 72 65 | 6e 74 6c 79 2c 20 74 68 | . Curre|ntly, th|
|00004010| 69 73 20 69 73 20 6f 6e | 6c 79 20 75 73 65 64 20 |is is on|ly used |
|00004020| 62 79 20 7b 66 43 6f 64 | 65 7d 63 6f 6d 70 75 74 |by {fCod|e}comput|
|00004030| 65 5c 5f 63 6f 6e 76 65 | 72 73 69 6f 6e 5c 5f 63 |e\_conve|rsion\_c|
|00004040| 6f 73 74 73 7b 66 7d 2c | 20 74 6f 0a 64 69 73 74 |osts{f},| to.dist|
|00004050| 69 6e 67 75 69 73 68 20 | 77 68 65 6e 20 61 20 6e |inguish |when a n|
|00004060| 6f 6e 2d 7b 66 43 6f 64 | 65 7d 63 6f 6e 73 74 7b |on-{fCod|e}const{|
|00004070| 66 7d 20 6d 65 6d 62 65 | 72 20 66 75 6e 63 74 69 |f} membe|r functi|
|00004080| 6f 6e 20 69 73 20 63 61 | 6c 6c 65 64 20 66 72 6f |on is ca|lled fro|
|00004090| 6d 20 61 0a 7b 66 43 6f | 64 65 7d 63 6f 6e 73 74 |m a.{fCo|de}const|
|000040a0| 7b 66 7d 20 6d 65 6d 62 | 65 72 20 66 75 6e 63 74 |{f} memb|er funct|
|000040b0| 69 6f 6e 2e 0a 0a 0a 20 | 8f 20 41 20 6d 61 74 63 |ion.... |. A matc|
|000040c0| 68 20 61 67 61 69 6e 73 | 74 20 61 6e 20 65 6c 6c |h agains|t an ell|
|000040d0| 69 70 73 69 73 20 7b 66 | 45 6d 70 68 61 73 69 73 |ipsis {f|Emphasis|
|000040e0| 7d 2e 2e 2e 7b 66 7d 20 | 69 73 20 63 6f 6e 73 69 |}...{f} |is consi|
|000040f0| 64 65 72 65 64 20 77 6f | 72 73 65 20 74 68 61 6e |dered wo|rse than|
|00004100| 20 61 6c 6c 20 6f 74 68 | 65 72 73 2e 0a 0a 0a 20 | all oth|ers.... |
|00004110| 8f 20 55 73 65 64 20 66 | 6f 72 20 61 20 6d 61 74 |. Used f|or a mat|
|00004120| 63 68 20 69 6e 76 6f 6c | 76 69 6e 67 20 61 20 75 |ch invol|ving a u|
|00004130| 73 65 72 2d 64 65 66 69 | 6e 65 64 20 63 6f 6e 76 |ser-defi|ned conv|
|00004140| 65 72 73 69 6f 6e 2e 0a | 0a 0a 20 8f 20 41 20 6d |ersion..|.. . A m|
|00004150| 61 74 63 68 20 69 6e 76 | 6f 6c 76 69 6e 67 20 61 |atch inv|olving a|
|00004160| 20 73 74 61 6e 64 61 72 | 64 20 63 6f 6e 76 65 72 | standar|d conver|
|00004170| 73 69 6f 6e 2e 0a 0a 0a | 20 8f 20 41 20 6d 61 74 |sion....| . A mat|
|00004180| 63 68 20 69 6e 76 6f 6c | 76 69 6e 67 20 61 6e 20 |ch invol|ving an |
|00004190| 69 6e 74 65 67 72 61 6c | 20 70 72 6f 6d 6f 74 69 |integral| promoti|
|000041a0| 6f 6e 2e 20 20 46 6f 72 | 20 74 68 65 73 65 2c 20 |on. For| these, |
|000041b0| 74 68 65 0a 7b 66 43 6f | 64 65 7d 69 6e 74 5c 5f |the.{fCo|de}int\_|
|000041c0| 70 65 6e 61 6c 74 79 7b | 66 7d 20 66 69 65 6c 64 |penalty{|f} field|
|000041d0| 20 69 73 20 75 73 65 64 | 20 74 6f 20 68 61 6e 64 | is used| to hand|
|000041e0| 6c 65 20 74 68 65 20 41 | 52 4d 27 73 20 72 75 6c |le the A|RM's rul|
|000041f0| 65 20 28 58 58 58 20 63 | 69 74 65 29 0a 74 68 61 |e (XXX c|ite).tha|
|00004200| 74 20 61 20 73 6d 61 6c | 6c 65 72 20 7b 66 43 6f |t a smal|ler {fCo|
|00004210| 64 65 7d 75 6e 73 69 67 | 6e 65 64 7b 66 7d 20 74 |de}unsig|ned{f} t|
|00004220| 79 70 65 20 73 68 6f 75 | 6c 64 20 70 72 6f 6d 6f |ype shou|ld promo|
|00004230| 74 65 20 74 6f 20 61 20 | 7b 66 43 6f 64 65 7d 69 |te to a |{fCode}i|
|00004240| 6e 74 7b 66 7d 2c 20 6e | 6f 74 0a 74 6f 20 61 6e |nt{f}, n|ot.to an|
|00004250| 20 7b 66 43 6f 64 65 7d | 75 6e 73 69 67 6e 65 64 | {fCode}|unsigned|
|00004260| 20 69 6e 74 7b 66 7d 2e | 0a 0a 0a 20 8f 20 55 73 | int{f}.|... . Us|
|00004270| 65 64 20 74 6f 20 6d 61 | 72 6b 20 75 73 65 20 6f |ed to ma|rk use o|
|00004280| 66 20 71 75 61 6c 69 66 | 69 65 72 73 20 6c 69 6b |f qualif|iers lik|
|00004290| 65 20 7b 66 43 6f 64 65 | 7d 63 6f 6e 73 74 7b 66 |e {fCode|}const{f|
|000042a0| 7d 20 61 6e 64 20 7b 66 | 43 6f 64 65 7d 76 6f 6c |} and {f|Code}vol|
|000042b0| 61 74 69 6c 65 7b 66 7d | 2e 0a 0a 0a 20 8f 20 55 |atile{f}|.... . U|
|000042c0| 73 65 64 20 66 6f 72 20 | 74 72 69 76 69 61 6c 20 |sed for |trivial |
|000042d0| 63 6f 6e 76 65 72 73 69 | 6f 6e 73 2e 20 20 54 68 |conversi|ons. Th|
|000042e0| 65 20 7b 66 45 6d 70 68 | 61 73 69 73 7d 69 6e 74 |e {fEmph|asis}int|
|000042f0| 5c 5f 70 65 6e 61 6c 74 | 79 7b 66 7d 20 66 69 65 |\_penalt|y{f} fie|
|00004300| 6c 64 20 69 73 20 75 73 | 65 64 20 62 79 0a 7b 66 |ld is us|ed by.{f|
|00004310| 43 6f 64 65 7d 63 6f 6e | 76 65 72 74 5c 5f 68 61 |Code}con|vert\_ha|
|00004320| 72 73 68 6e 65 73 73 7b | 66 7d 20 74 6f 20 63 6f |rshness{|f} to co|
|00004330| 6d 6d 75 6e 69 63 61 74 | 65 20 66 75 72 74 68 65 |mmunicat|e furthe|
|00004340| 72 20 70 65 6e 61 6c 74 | 79 20 69 6e 66 6f 72 6d |r penalt|y inform|
|00004350| 61 74 69 6f 6e 20 62 61 | 63 6b 0a 74 6f 20 7b 66 |ation ba|ck.to {f|
|00004360| 43 6f 64 65 7d 62 75 69 | 6c 64 5c 5f 6f 76 65 72 |Code}bui|ld\_over|
|00004370| 6c 6f 61 64 5c 5f 63 61 | 6c 6c 5c 5f 72 65 61 6c |load\_ca|ll\_real|
|00004380| 7b 66 7d 20 77 68 65 6e | 20 64 65 63 69 64 69 6e |{f} when| decidin|
|00004390| 67 20 77 68 69 63 68 20 | 66 75 6e 63 74 69 6f 6e |g which |function|
|000043a0| 20 73 68 6f 75 6c 64 0a | 62 65 20 63 61 6c 6c 2e | should.|be call.|
|000043b0| 0a 0a 23 49 6e 64 65 6e | 74 0a 0a 54 68 65 20 66 |..#Inden|t..The f|
|000043c0| 75 6e 63 74 69 6f 6e 73 | 20 7b 66 43 6f 64 65 7d |unctions| {fCode}|
|000043d0| 63 6f 6e 76 65 72 74 5c | 5f 74 6f 5c 5f 61 67 67 |convert\|_to\_agg|
|000043e0| 72 7b 66 7d 20 61 6e 64 | 20 7b 66 43 6f 64 65 7d |r{f} and| {fCode}|
|000043f0| 62 75 69 6c 64 5c 5f 6d | 65 74 68 6f 64 5c 5f 63 |build\_m|ethod\_c|
|00004400| 61 6c 6c 7b 66 7d 20 75 | 73 65 0a 7b 66 43 6f 64 |all{f} u|se.{fCod|
|00004410| 65 7d 63 6f 6d 70 75 74 | 65 5c 5f 63 6f 6e 76 65 |e}comput|e\_conve|
|00004420| 72 73 69 6f 6e 5c 5f 63 | 6f 73 74 73 7b 66 7d 20 |rsion\_c|osts{f} |
|00004430| 74 6f 20 72 61 74 65 20 | 65 61 63 68 20 61 72 67 |to rate |each arg|
|00004440| 75 6d 65 6e 74 27 73 20 | 73 75 69 74 61 62 69 6c |ument's |suitabil|
|00004450| 69 74 79 20 66 6f 72 0a | 61 20 67 69 76 65 6e 20 |ity for.|a given |
|00004460| 63 61 6e 64 69 64 61 74 | 65 20 66 75 6e 63 74 69 |candidat|e functi|
|00004470| 6f 6e 20 28 74 68 61 74 | 27 73 20 68 6f 77 20 77 |on (that|'s how w|
|00004480| 65 20 67 65 74 20 74 68 | 65 20 6c 69 73 74 20 6f |e get th|e list o|
|00004490| 66 20 63 61 6e 64 69 64 | 61 74 65 73 20 66 6f 72 |f candid|ates for|
|000044a0| 0a 7b 66 43 6f 64 65 7d | 69 64 65 61 6c 5c 5f 63 |.{fCode}|ideal\_c|
|000044b0| 61 6e 64 69 64 61 74 65 | 7b 66 7d 29 2e 0a 0a 0a |andidate|{f})....|
|000044c0| 23 49 6e 64 65 6e 74 0a | 0a 00 00 00 44 41 54 41 |#Indent.|....DATA|
|000044d0| bc 05 00 00 4c 69 6d 69 | 74 61 74 69 6f 6e 73 20 |....Limi|tations |
|000044e0| 6f 66 20 67 2b 2b 0a 50 | 72 65 76 69 6f 75 73 3a |of g++.P|revious:|
|000044f0| 20 3c 54 6f 70 3d 3e 21 | 52 6f 6f 74 3e 20 2a 20 | <Top=>!|Root> * |
|00004500| 4e 65 78 74 3a 20 3c 52 | 6f 75 74 69 6e 65 73 3d |Next: <R|outines=|
|00004510| 3e 52 6f 75 74 69 6e 65 | 73 3e 20 2a 20 55 70 3a |>Routine|s> * Up:|
|00004520| 20 3c 54 6f 70 3d 3e 21 | 52 6f 6f 74 3e 0a 0a 23 | <Top=>!|Root>..#|
|00004530| 57 72 61 70 20 6f 6e 0a | 7b 66 48 33 7d 4c 69 6d |Wrap on.|{fH3}Lim|
|00004540| 69 74 61 74 69 6f 6e 73 | 20 6f 66 20 67 2b 2b 7b |itations| of g++{|
|00004550| 66 7d 0a 0a 23 49 6e 64 | 65 6e 74 20 2b 34 0a 0a |f}..#Ind|ent +4..|
|00004560| 20 8f 20 4c 69 6d 69 74 | 61 74 69 6f 6e 73 20 6f | . Limit|ations o|
|00004570| 6e 20 69 6e 70 75 74 20 | 73 6f 75 72 63 65 20 63 |n input |source c|
|00004580| 6f 64 65 3a 20 32 34 30 | 20 6e 65 73 74 69 6e 67 |ode: 240| nesting|
|00004590| 20 6c 65 76 65 6c 73 20 | 77 69 74 68 20 74 68 65 | levels |with the|
|000045a0| 20 70 61 72 73 65 72 0a | 73 74 61 63 6b 73 69 7a | parser.|stacksiz|
|000045b0| 65 20 28 59 59 53 54 41 | 43 4b 53 49 5a 45 29 20 |e (YYSTA|CKSIZE) |
|000045c0| 73 65 74 20 74 6f 20 35 | 30 30 20 28 74 68 65 20 |set to 5|00 (the |
|000045d0| 64 65 66 61 75 6c 74 29 | 2c 20 61 6e 64 20 72 65 |default)|, and re|
|000045e0| 71 75 69 72 65 73 20 61 | 72 6f 75 6e 64 0a 31 36 |quires a|round.16|
|000045f0| 2e 34 6b 20 73 77 61 70 | 20 73 70 61 63 65 20 70 |.4k swap| space p|
|00004600| 65 72 20 6e 65 73 74 69 | 6e 67 20 6c 65 76 65 6c |er nesti|ng level|
|00004610| 2e 20 20 54 68 65 20 70 | 61 72 73 65 72 20 6e 65 |. The p|arser ne|
|00004620| 65 64 73 20 61 62 6f 75 | 74 20 32 2e 30 39 20 5c |eds abou|t 2.09 \|
|00004630| 2a 0a 6e 75 6d 62 65 72 | 20 6f 66 20 6e 65 73 74 |*.number| of nest|
|00004640| 69 6e 67 20 6c 65 76 65 | 6c 73 20 77 6f 72 74 68 |ing leve|ls worth|
|00004650| 20 6f 66 20 73 74 61 63 | 6b 73 70 61 63 65 2e 0a | of stac|kspace..|
|00004660| 0a 0a 20 8f 20 49 20 73 | 75 73 70 65 63 74 20 74 |.. . I s|uspect t|
|00004670| 68 65 72 65 20 61 72 65 | 20 6f 74 68 65 72 20 75 |here are| other u|
|00004680| 73 65 73 20 6f 66 20 70 | 75 73 68 64 65 63 6c 5c |ses of p|ushdecl\|
|00004690| 5f 63 6c 61 73 73 5c 5f | 6c 65 76 65 6c 20 74 68 |_class\_|level th|
|000046a0| 61 74 20 64 6f 20 6e 6f | 74 20 63 61 6c 6c 0a 73 |at do no|t call.s|
|000046b0| 65 74 5c 5f 69 64 65 6e | 74 69 66 69 65 72 5c 5f |et\_iden|tifier\_|
|000046c0| 74 79 70 65 5c 5f 76 61 | 6c 75 65 20 69 6e 20 74 |type\_va|lue in t|
|000046d0| 61 6e 64 65 6d 20 77 69 | 74 68 20 74 68 65 20 63 |andem wi|th the c|
|000046e0| 61 6c 6c 20 74 6f 0a 70 | 75 73 68 64 65 63 6c 5c |all to.p|ushdecl\|
|000046f0| 5f 63 6c 61 73 73 5c 5f | 6c 65 76 65 6c 2e 20 20 |_class\_|level. |
|00004700| 49 74 20 77 6f 75 6c 64 | 20 73 65 65 6d 20 74 6f |It would| seem to|
|00004710| 20 62 65 20 61 6e 20 6f | 6d 69 73 73 69 6f 6e 2e | be an o|mission.|
|00004720| 0a 0a 0a 20 8f 20 41 63 | 63 65 73 73 20 63 68 65 |... . Ac|cess che|
|00004730| 63 6b 69 6e 67 20 69 73 | 20 75 6e 69 6d 70 6c 65 |cking is| unimple|
|00004740| 6d 65 6e 74 65 64 20 66 | 6f 72 20 6e 65 73 74 65 |mented f|or neste|
|00004750| 64 20 74 79 70 65 73 2e | 0a 0a 0a 20 8f 20 7b 66 |d types.|... . {f|
|00004760| 43 6f 64 65 7d 76 6f 6c | 61 74 69 6c 65 7b 66 7d |Code}vol|atile{f}|
|00004770| 20 69 73 20 6e 6f 74 20 | 69 6d 70 6c 65 6d 65 6e | is not |implemen|
|00004780| 74 65 64 20 69 6e 20 67 | 65 6e 65 72 61 6c 2e 0a |ted in g|eneral..|
|00004790| 0a 0a 20 8f 20 50 6f 69 | 6e 74 65 72 73 20 74 6f |.. . Poi|nters to|
|000047a0| 20 6d 65 6d 62 65 72 73 | 20 61 72 65 20 6f 6e 6c | members| are onl|
|000047b0| 79 20 6d 69 6e 69 6d 61 | 6c 6c 79 20 73 75 70 70 |y minima|lly supp|
|000047c0| 6f 72 74 65 64 2c 20 61 | 6e 64 20 74 68 65 72 65 |orted, a|nd there|
|000047d0| 20 61 72 65 20 70 6c 61 | 63 65 73 0a 77 68 65 72 | are pla|ces.wher|
|000047e0| 65 20 74 68 65 20 67 72 | 61 6d 6d 61 72 20 64 6f |e the gr|ammar do|
|000047f0| 65 73 6e 27 74 20 65 76 | 65 6e 20 70 72 6f 70 65 |esn't ev|en prope|
|00004800| 72 6c 79 20 61 63 63 65 | 70 74 20 74 68 65 6d 20 |rly acce|pt them |
|00004810| 79 65 74 2e 0a 0a 0a 20 | 8f 20 7b 66 43 6f 64 65 |yet.... |. {fCode|
|00004820| 7d 74 68 69 73 7b 66 7d | 20 77 69 6c 6c 20 62 65 |}this{f}| will be|
|00004830| 20 77 72 6f 6e 67 20 69 | 6e 20 76 69 72 74 75 61 | wrong i|n virtua|
|00004840| 6c 20 6d 65 6d 62 65 72 | 73 20 66 75 6e 63 74 69 |l member|s functi|
|00004850| 6f 6e 73 20 64 65 66 69 | 6e 65 64 20 69 6e 20 61 |ons defi|ned in a|
|00004860| 0a 76 69 72 74 75 61 6c | 20 62 61 73 65 20 63 6c |.virtual| base cl|
|00004870| 61 73 73 2c 20 77 68 65 | 6e 20 74 68 65 79 20 61 |ass, whe|n they a|
|00004880| 72 65 20 6f 76 65 72 72 | 69 64 64 65 6e 20 69 6e |re overr|idden in|
|00004890| 20 61 20 64 65 72 69 76 | 65 64 20 63 6c 61 73 73 | a deriv|ed class|
|000048a0| 2c 20 77 68 65 6e 0a 63 | 61 6c 6c 65 64 20 76 69 |, when.c|alled vi|
|000048b0| 61 20 61 20 6e 6f 6e 2d | 6c 65 66 74 20 6d 6f 73 |a a non-|left mos|
|000048c0| 74 20 6f 62 6a 65 63 74 | 2e 0a 0a 41 6e 20 65 78 |t object|...An ex|
|000048d0| 61 6d 70 6c 65 20 77 6f | 75 6c 64 20 62 65 3a 0a |ample wo|uld be:.|
|000048e0| 0a 23 57 72 61 70 20 6f | 66 66 0a 23 66 43 6f 64 |.#Wrap o|ff.#fCod|
|000048f0| 65 0a 65 78 74 65 72 6e | 20 22 43 22 20 69 6e 74 |e.extern| "C" int|
|00004900| 20 70 72 69 6e 74 66 28 | 63 6f 6e 73 74 20 63 68 | printf(|const ch|
|00004910| 61 72 5c 2a 2c 20 2e 2e | 2e 29 3b 0a 73 74 72 75 |ar\*, ..|.);.stru|
|00004920| 63 74 20 41 20 5c 7b 20 | 76 69 72 74 75 61 6c 20 |ct A \{ |virtual |
|00004930| 76 6f 69 64 20 66 28 29 | 20 5c 7b 20 5c 7d 20 5c |void f()| \{ \} \|
|00004940| 7d 3b 0a 73 74 72 75 63 | 74 20 42 20 3a 20 76 69 |};.struc|t B : vi|
|00004950| 72 74 75 61 6c 20 41 20 | 5c 7b 20 69 6e 74 20 62 |rtual A |\{ int b|
|00004960| 3b 20 42 28 29 20 3a 20 | 62 28 30 29 20 5c 7b 5c |; B() : |b(0) \{\|
|00004970| 7d 20 76 6f 69 64 20 66 | 28 29 20 5c 7b 20 62 2b |} void f|() \{ b+|
|00004980| 2b 3b 20 5c 7d 20 5c 7d | 3b 0a 73 74 72 75 63 74 |+; \} \}|;.struct|
|00004990| 20 43 20 3a 20 42 20 5c | 7b 5c 7d 3b 0a 73 74 72 | C : B \|{\};.str|
|000049a0| 75 63 74 20 44 20 3a 20 | 42 20 5c 7b 5c 7d 3b 0a |uct D : |B \{\};.|
|000049b0| 73 74 72 75 63 74 20 45 | 20 3a 20 43 2c 20 44 20 |struct E| : C, D |
|000049c0| 5c 7b 5c 7d 3b 0a 69 6e | 74 20 6d 61 69 6e 28 29 |\{\};.in|t main()|
|000049d0| 0a 5c 7b 0a 20 20 45 20 | 65 3b 0a 20 20 43 26 20 |.\{. E |e;. C& |
|000049e0| 63 20 3d 20 65 3b 20 44 | 26 20 64 20 3d 20 65 3b |c = e; D|& d = e;|
|000049f0| 0a 20 20 63 2e 66 28 29 | 3b 20 64 2e 66 28 29 3b |. c.f()|; d.f();|
|00004a00| 0a 20 20 70 72 69 6e 74 | 66 20 28 22 43 3a 3a 62 |. print|f ("C::b|
|00004a10| 20 3d 20 25 64 2c 20 44 | 3a 3a 62 20 3d 20 25 64 | = %d, D|::b = %d|
|00004a20| 5c 5c 6e 22 2c 20 65 2e | 43 3a 3a 62 2c 20 65 2e |\\n", e.|C::b, e.|
|00004a30| 44 3a 3a 62 29 3b 0a 20 | 20 72 65 74 75 72 6e 20 |D::b);. | return |
|00004a40| 30 3b 0a 5c 7d 0a 23 66 | 0a 23 57 72 61 70 20 6f |0;.\}.#f|.#Wrap o|
|00004a50| 6e 0a 0a 54 68 69 73 20 | 77 69 6c 6c 20 70 72 69 |n..This |will pri|
|00004a60| 6e 74 20 6f 75 74 20 32 | 2c 20 30 2c 20 69 6e 73 |nt out 2|, 0, ins|
|00004a70| 74 65 61 64 20 6f 66 20 | 31 2c 31 2e 0a 0a 0a 23 |tead of |1,1....#|
|00004a80| 49 6e 64 65 6e 74 0a 0a | 44 41 54 41 41 47 00 00 |Indent..|DATAAG..|
|00004a90| 4d 61 63 72 6f 73 0a 50 | 72 65 76 69 6f 75 73 3a |Macros.P|revious:|
|00004aa0| 20 3c 47 6c 6f 73 73 61 | 72 79 3d 3e 47 6c 6f 73 | <Glossa|ry=>Glos|
|00004ab0| 73 61 72 79 3e 20 2a 20 | 4e 65 78 74 3a 20 3c 54 |sary> * |Next: <T|
|00004ac0| 79 70 69 63 61 6c 20 42 | 65 68 61 76 69 6f 72 3d |ypical B|ehavior=|
|00004ad0| 3e 54 79 70 69 63 61 6c | 42 65 68 3e 20 2a 20 55 |>Typical|Beh> * U|
|00004ae0| 70 3a 20 3c 54 6f 70 3d | 3e 21 52 6f 6f 74 3e 0a |p: <Top=|>!Root>.|
|00004af0| 0a 23 57 72 61 70 20 6f | 6e 0a 7b 66 48 33 7d 4d |.#Wrap o|n.{fH3}M|
|00004b00| 61 63 72 6f 73 7b 66 7d | 0a 0a 54 68 69 73 20 73 |acros{f}|..This s|
|00004b10| 65 63 74 69 6f 6e 20 64 | 65 73 63 72 69 62 65 73 |ection d|escribes|
|00004b20| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 20 6d 61 63 | some of| the mac|
|00004b30| 72 6f 73 20 75 73 65 64 | 20 6f 6e 20 74 72 65 65 |ros used| on tree|
|00004b40| 73 2e 20 20 54 68 65 20 | 6c 69 73 74 0a 73 68 6f |s. The |list.sho|
|00004b50| 75 6c 64 20 62 65 20 61 | 6c 70 68 61 62 65 74 69 |uld be a|lphabeti|
|00004b60| 63 61 6c 2e 20 20 45 76 | 65 6e 74 75 61 6c 6c 79 |cal. Ev|entually|
|00004b70| 20 61 6c 6c 20 6d 61 63 | 72 6f 73 20 73 68 6f 75 | all mac|ros shou|
|00004b80| 6c 64 20 62 65 20 64 6f | 63 75 6d 65 6e 74 65 64 |ld be do|cumented|
|00004b90| 0a 68 65 72 65 2e 20 20 | 54 68 65 72 65 20 61 72 |.here. |There ar|
|00004ba0| 65 20 73 6f 6d 65 20 70 | 6f 73 74 73 63 72 69 70 |e some p|ostscrip|
|00004bb0| 74 20 64 72 61 77 69 6e | 67 73 20 74 68 61 74 20 |t drawin|gs that |
|00004bc0| 63 61 6e 20 62 65 20 75 | 73 65 64 20 74 6f 20 62 |can be u|sed to b|
|00004bd0| 65 74 74 65 72 0a 75 6e | 64 65 72 73 74 6e 61 64 |etter.un|derstnad|
|00004be0| 20 66 72 6f 6d 20 6f 66 | 20 74 68 65 20 6d 6f 72 | from of| the mor|
|00004bf0| 65 20 63 6f 6d 70 6c 65 | 78 20 64 61 74 61 20 73 |e comple|x data s|
|00004c00| 74 72 75 63 74 75 72 65 | 73 2c 20 63 6f 6e 74 61 |tructure|s, conta|
|00004c10| 63 74 20 4d 69 6b 65 20 | 53 74 75 6d 70 0a 28 7b |ct Mike |Stump.({|
|00004c20| 66 43 6f 64 65 7d 6d 72 | 73 40 63 79 67 6e 75 73 |fCode}mr|s@cygnus|
|00004c30| 2e 63 6f 6d 7b 66 7d 29 | 20 66 6f 72 20 69 6e 66 |.com{f})| for inf|
|00004c40| 6f 72 6d 61 74 69 6f 6e | 20 61 62 6f 75 74 20 74 |ormation| about t|
|00004c50| 68 65 6d 2e 0a 0a 23 49 | 6e 64 65 6e 74 20 2b 34 |hem...#I|ndent +4|
|00004c60| 0a 23 49 6e 64 65 6e 74 | 0a 7b 66 43 6f 64 65 7d |.#Indent|.{fCode}|
|00004c70| 42 49 4e 46 4f 5c 5f 42 | 41 53 45 54 59 50 45 53 |BINFO\_B|ASETYPES|
|00004c80| 7b 66 7d 0a 23 49 6e 64 | 65 6e 74 20 2b 34 0a 41 |{f}.#Ind|ent +4.A|
|00004c90| 20 76 65 63 74 6f 72 20 | 6f 66 20 61 64 64 69 74 | vector |of addit|
|00004ca0| 69 6f 6e 61 6c 20 62 69 | 6e 66 6f 73 20 66 6f 72 |ional bi|nfos for|
|00004cb0| 20 74 68 65 20 74 79 70 | 65 73 20 69 6e 68 65 72 | the typ|es inher|
|00004cc0| 69 74 65 64 20 62 79 20 | 74 68 69 73 20 62 61 73 |ited by |this bas|
|00004cd0| 65 74 79 70 65 2e 0a 54 | 68 65 20 62 69 6e 66 6f |etype..T|he binfo|
|00004ce0| 73 20 61 72 65 20 66 75 | 6c 6c 79 20 75 6e 73 68 |s are fu|lly unsh|
|00004cf0| 61 72 65 64 20 28 65 78 | 63 65 70 74 20 66 6f 72 |ared (ex|cept for|
|00004d00| 20 76 69 72 74 75 61 6c | 20 62 61 73 65 73 2c 20 | virtual| bases, |
|00004d10| 69 6e 20 77 68 69 63 68 | 0a 63 61 73 65 20 74 68 |in which|.case th|
|00004d20| 65 20 62 69 6e 66 6f 20 | 73 74 72 75 63 74 75 72 |e binfo |structur|
|00004d30| 65 20 69 73 20 73 68 61 | 72 65 64 29 2e 0a 0a 20 |e is sha|red)... |
|00004d40| 20 20 49 66 20 74 68 69 | 73 20 62 61 73 65 74 79 | If thi|s basety|
|00004d50| 70 65 20 64 65 73 63 72 | 69 62 65 73 20 74 79 70 |pe descr|ibes typ|
|00004d60| 65 20 44 20 61 73 20 69 | 6e 68 65 72 69 74 65 64 |e D as i|nherited|
|00004d70| 20 69 6e 20 43 2c 0a 20 | 20 20 61 6e 64 20 69 66 | in C,. | and if|
|00004d80| 20 74 68 65 20 62 61 73 | 65 74 79 70 65 73 20 6f | the bas|etypes o|
|00004d90| 66 20 44 20 61 72 65 20 | 45 20 61 6e 66 20 46 2c |f D are |E anf F,|
|00004da0| 0a 20 20 20 74 68 65 6e | 20 74 68 69 73 20 76 65 |. then| this ve|
|00004db0| 63 74 6f 72 20 63 6f 6e | 74 61 69 6e 73 20 62 69 |ctor con|tains bi|
|00004dc0| 6e 66 6f 73 20 66 6f 72 | 20 69 6e 68 65 72 69 74 |nfos for| inherit|
|00004dd0| 61 6e 63 65 20 6f 66 20 | 45 20 61 6e 64 20 46 20 |ance of |E and F |
|00004de0| 62 79 20 43 2e 0a 0a 48 | 61 73 20 76 61 6c 75 65 |by C...H|as value|
|00004df0| 73 20 6f 66 3a 0a 0a 09 | 54 52 45 45 5c 5f 56 45 |s of:...|TREE\_VE|
|00004e00| 43 73 0a 0a 0a 23 49 6e | 64 65 6e 74 0a 7b 66 43 |Cs...#In|dent.{fC|
|00004e10| 6f 64 65 7d 42 49 4e 46 | 4f 5c 5f 49 4e 48 45 52 |ode}BINF|O\_INHER|
|00004e20| 49 54 41 4e 43 45 5c 5f | 43 48 41 49 4e 7b 66 7d |ITANCE\_|CHAIN{f}|
|00004e30| 0a 23 49 6e 64 65 6e 74 | 20 2b 34 0a 54 65 6d 70 |.#Indent| +4.Temp|
|00004e40| 6f 72 61 72 69 6c 79 20 | 75 73 65 64 20 74 6f 20 |orarily |used to |
|00004e50| 72 65 70 72 65 73 65 6e | 74 20 73 70 65 63 69 66 |represen|t specif|
|00004e60| 69 63 20 69 6e 68 65 72 | 69 74 61 6e 63 65 73 2e |ic inher|itances.|
|00004e70| 20 20 49 74 20 75 73 75 | 61 6c 6c 79 20 70 6f 69 | It usu|ally poi|
|00004e80| 6e 74 73 0a 74 6f 20 74 | 68 65 20 62 69 6e 66 6f |nts.to t|he binfo|
|00004e90| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00004ea0| 20 74 68 65 20 6c 65 73 | 73 65 72 20 64 65 72 69 | the les|ser deri|
|00004eb0| 76 65 64 20 74 79 70 65 | 2c 20 62 75 74 20 69 74 |ved type|, but it|
|00004ec0| 20 63 61 6e 20 62 65 0a | 72 65 76 65 72 73 65 64 | can be.|reversed|
|00004ed0| 20 62 79 20 72 65 76 65 | 72 73 65 5c 5f 70 61 74 | by reve|rse\_pat|
|00004ee0| 68 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 3a |h. For |example:|
|00004ef0| 0a 0a 23 57 72 61 70 20 | 6f 66 66 0a 23 66 43 6f |..#Wrap |off.#fCo|
|00004f00| 64 65 0a 09 5a 20 5a 62 | 59 09 6c 65 61 73 74 20 |de..Z Zb|Y.least |
|00004f10| 64 65 72 69 76 65 64 0a | 09 7c 0a 09 59 20 59 62 |derived.|.|..Y Yb|
|00004f20| 58 0a 09 7c 0a 09 58 20 | 58 62 09 6d 6f 73 74 20 |X..|..X |Xb.most |
|00004f30| 64 65 72 69 76 65 64 0a | 0a 54 59 50 45 5c 5f 42 |derived.|.TYPE\_B|
|00004f40| 49 4e 46 4f 20 28 58 29 | 20 3d 3d 20 58 62 0a 42 |INFO (X)| == Xb.B|
|00004f50| 49 4e 46 4f 5c 5f 49 4e | 48 45 52 49 54 41 4e 43 |INFO\_IN|HERITANC|
|00004f60| 45 5c 5f 43 48 41 49 4e | 20 28 58 62 29 20 3d 3d |E\_CHAIN| (Xb) ==|
|00004f70| 20 59 62 58 0a 42 49 4e | 46 4f 5c 5f 49 4e 48 45 | YbX.BIN|FO\_INHE|
|00004f80| 52 49 54 41 4e 43 45 5c | 5f 43 48 41 49 4e 20 28 |RITANCE\|_CHAIN (|
|00004f90| 59 62 29 20 3d 3d 20 5a | 62 59 0a 42 49 4e 46 4f |Yb) == Z|bY.BINFO|
|00004fa0| 5c 5f 49 4e 48 45 52 49 | 54 41 4e 43 45 5c 5f 43 |\_INHERI|TANCE\_C|
|00004fb0| 48 41 49 4e 20 28 5a 62 | 29 20 3d 3d 20 30 0a 23 |HAIN (Zb|) == 0.#|
|00004fc0| 66 0a 23 57 72 61 70 20 | 6f 6e 0a 0a 4e 6f 74 20 |f.#Wrap |on..Not |
|00004fd0| 73 75 72 65 20 69 73 20 | 74 68 65 20 61 62 6f 76 |sure is |the abov|
|00004fe0| 65 20 69 73 20 72 65 61 | 6c 6c 79 20 74 72 75 65 |e is rea|lly true|
|00004ff0| 2c 20 67 65 74 5c 5f 62 | 61 73 65 5c 5f 64 69 73 |, get\_b|ase\_dis|
|00005000| 74 61 6e 63 65 20 68 61 | 73 20 69 73 20 70 6f 69 |tance ha|s is poi|
|00005010| 6e 74 0a 74 6f 77 61 72 | 64 73 20 74 68 65 20 6d |nt.towar|ds the m|
|00005020| 6f 73 74 20 64 65 72 69 | 76 65 64 20 74 79 70 65 |ost deri|ved type|
|00005030| 2c 20 6f 70 70 6f 73 69 | 74 65 20 66 72 6f 6d 20 |, opposi|te from |
|00005040| 61 62 6f 76 65 2e 0a 0a | 53 65 74 20 62 79 20 62 |above...|Set by b|
|00005050| 75 69 6c 64 5c 5f 76 62 | 61 73 65 5c 5f 70 61 74 |uild\_vb|ase\_pat|
|00005060| 68 2c 20 72 65 63 75 72 | 73 69 76 65 5c 5f 62 6f |h, recur|sive\_bo|
|00005070| 75 6e 64 65 64 5c 5f 62 | 61 73 65 74 79 70 65 5c |unded\_b|asetype\|
|00005080| 5f 70 2c 0a 67 65 74 5c | 5f 62 61 73 65 5c 5f 64 |_p,.get\|_base\_d|
|00005090| 69 73 74 61 6e 63 65 2c | 20 6c 6f 6f 6b 75 70 5c |istance,| lookup\|
|000050a0| 5f 66 69 65 6c 64 2c 20 | 6c 6f 6f 6b 75 70 5c 5f |_field, |lookup\_|
|000050b0| 66 6e 66 69 65 6c 64 73 | 2c 20 61 6e 64 20 72 65 |fnfields|, and re|
|000050c0| 76 65 72 73 65 5c 5f 70 | 61 74 68 2e 0a 0a 57 68 |verse\_p|ath...Wh|
|000050d0| 61 74 20 74 68 69 6e 67 | 73 20 63 61 6e 20 74 68 |at thing|s can th|
|000050e0| 69 73 20 62 65 20 75 73 | 65 64 20 6f 6e 3a 0a 0a |is be us|ed on:..|
|000050f0| 09 54 52 45 45 5c 5f 56 | 45 43 73 20 74 68 61 74 |.TREE\_V|ECs that|
|00005100| 20 61 72 65 20 62 69 6e | 66 6f 73 0a 0a 0a 23 49 | are bin|fos...#I|
|00005110| 6e 64 65 6e 74 0a 7b 66 | 43 6f 64 65 7d 42 49 4e |ndent.{f|Code}BIN|
|00005120| 46 4f 5c 5f 4f 46 46 53 | 45 54 7b 66 7d 0a 23 49 |FO\_OFFS|ET{f}.#I|
|00005130| 6e 64 65 6e 74 20 2b 34 | 0a 54 68 65 20 6f 66 66 |ndent +4|.The off|
|00005140| 73 65 74 20 77 68 65 72 | 65 20 74 68 69 73 20 62 |set wher|e this b|
|00005150| 61 73 65 74 79 70 65 20 | 61 70 70 65 61 72 73 20 |asetype |appears |
|00005160| 69 6e 20 69 74 73 20 63 | 6f 6e 74 61 69 6e 69 6e |in its c|ontainin|
|00005170| 67 20 74 79 70 65 2e 0a | 42 49 4e 46 4f 5c 5f 4f |g type..|BINFO\_O|
|00005180| 46 46 53 45 54 20 73 6c | 6f 74 20 68 6f 6c 64 73 |FFSET sl|ot holds|
|00005190| 20 74 68 65 20 6f 66 66 | 73 65 74 20 28 69 6e 20 | the off|set (in |
|000051a0| 62 79 74 65 73 29 20 66 | 72 6f 6d 20 74 68 65 20 |bytes) f|rom the |
|000051b0| 62 61 73 65 20 6f 66 20 | 74 68 65 0a 63 6f 6d 70 |base of |the.comp|
|000051c0| 6c 65 74 65 20 6f 62 6a | 65 63 74 20 74 6f 20 74 |lete obj|ect to t|
|000051d0| 68 65 20 62 61 73 65 20 | 6f 66 20 74 68 65 20 70 |he base |of the p|
|000051e0| 61 72 74 20 6f 66 20 74 | 68 65 20 6f 62 6a 65 63 |art of t|he objec|
|000051f0| 74 20 74 68 61 74 20 69 | 73 20 61 6c 6c 6f 63 61 |t that i|s alloca|
|00005200| 74 65 64 0a 6f 6e 20 62 | 65 68 61 6c 66 20 6f 66 |ted.on b|ehalf of|
|00005210| 20 74 68 69 73 20 60 74 | 79 70 65 27 2e 20 20 54 | this `t|ype'. T|
|00005220| 68 69 73 20 69 73 20 61 | 6c 77 61 79 73 20 30 20 |his is a|lways 0 |
|00005230| 65 78 63 65 70 74 20 77 | 68 65 6e 20 74 68 65 72 |except w|hen ther|
|00005240| 65 20 69 73 0a 6d 75 6c | 74 69 70 6c 65 20 69 6e |e is.mul|tiple in|
|00005250| 68 65 72 69 74 61 6e 63 | 65 2e 0a 0a 55 73 65 64 |heritanc|e...Used|
|00005260| 20 6f 6e 20 54 52 45 45 | 5c 5f 56 45 43 5c 5f 45 | on TREE|\_VEC\_E|
|00005270| 4c 54 73 20 6f 66 20 74 | 68 65 20 62 69 6e 66 6f |LTs of t|he binfo|
|00005280| 73 20 42 49 4e 46 4f 5c | 5f 42 41 53 45 54 59 50 |s BINFO\|_BASETYP|
|00005290| 45 53 20 28 2e 2e 2e 29 | 20 66 6f 72 20 65 78 61 |ES (...)| for exa|
|000052a0| 6d 70 6c 65 2e 0a 0a 0a | 23 49 6e 64 65 6e 74 0a |mple....|#Indent.|
|000052b0| 7b 66 43 6f 64 65 7d 42 | 49 4e 46 4f 5c 5f 56 49 |{fCode}B|INFO\_VI|
|000052c0| 52 54 55 41 4c 53 7b 66 | 7d 0a 23 49 6e 64 65 6e |RTUALS{f|}.#Inden|
|000052d0| 74 20 2b 34 0a 41 20 75 | 6e 69 71 75 65 20 6c 69 |t +4.A u|nique li|
|000052e0| 73 74 20 6f 66 20 66 75 | 6e 63 74 69 6f 6e 73 20 |st of fu|nctions |
|000052f0| 66 6f 72 20 74 68 65 20 | 76 69 72 74 75 61 6c 20 |for the |virtual |
|00005300| 66 75 6e 63 74 69 6f 6e | 20 74 61 62 6c 65 2e 20 |function| table. |
|00005310| 20 53 65 65 20 61 6c 73 | 6f 0a 54 59 50 45 5c 5f | See als|o.TYPE\_|
|00005320| 42 49 4e 46 4f 5c 5f 56 | 49 52 54 55 41 4c 53 2e |BINFO\_V|IRTUALS.|
|00005330| 0a 0a 57 68 61 74 20 74 | 68 69 6e 67 73 20 63 61 |..What t|hings ca|
|00005340| 6e 20 74 68 69 73 20 62 | 65 20 75 73 65 64 20 6f |n this b|e used o|
|00005350| 6e 3a 0a 0a 09 54 52 45 | 45 5c 5f 56 45 43 73 20 |n:...TRE|E\_VECs |
|00005360| 74 68 61 74 20 61 72 65 | 20 62 69 6e 66 6f 73 0a |that are| binfos.|
|00005370| 0a 0a 23 49 6e 64 65 6e | 74 0a 7b 66 43 6f 64 65 |..#Inden|t.{fCode|
|00005380| 7d 42 49 4e 46 4f 5c 5f | 56 54 41 42 4c 45 7b 66 |}BINFO\_|VTABLE{f|
|00005390| 7d 0a 23 49 6e 64 65 6e | 74 20 2b 34 0a 55 73 65 |}.#Inden|t +4.Use|
|000053a0| 64 20 74 6f 20 66 69 6e | 64 20 74 68 65 20 56 41 |d to fin|d the VA|
|000053b0| 52 5c 5f 44 45 43 4c 20 | 74 68 61 74 20 69 73 20 |R\_DECL |that is |
|000053c0| 74 68 65 20 76 69 72 74 | 75 61 6c 20 66 75 6e 63 |the virt|ual func|
|000053d0| 74 69 6f 6e 20 74 61 62 | 6c 65 20 61 73 73 6f 63 |tion tab|le assoc|
|000053e0| 69 61 74 65 64 0a 77 69 | 74 68 20 74 68 69 73 20 |iated.wi|th this |
|000053f0| 62 69 6e 66 6f 2e 20 20 | 53 65 65 20 61 6c 73 6f |binfo. |See also|
|00005400| 20 54 59 50 45 5c 5f 42 | 49 4e 46 4f 5c 5f 56 54 | TYPE\_B|INFO\_VT|
|00005410| 41 42 4c 45 2e 20 20 54 | 6f 20 67 65 74 20 74 68 |ABLE. T|o get th|
|00005420| 65 20 76 69 72 74 75 61 | 6c 0a 66 75 6e 63 74 69 |e virtua|l.functi|
|00005430| 6f 6e 20 74 61 62 6c 65 | 20 70 6f 69 6e 74 65 72 |on table| pointer|
|00005440| 2c 20 73 65 65 20 43 4c | 41 53 53 54 59 50 45 5c |, see CL|ASSTYPE\|
|00005450| 5f 56 46 49 45 4c 44 2e | 0a 0a 57 68 61 74 20 74 |_VFIELD.|..What t|
|00005460| 68 69 6e 67 73 20 63 61 | 6e 20 74 68 69 73 20 62 |hings ca|n this b|
|00005470| 65 20 75 73 65 64 20 6f | 6e 3a 0a 0a 09 54 52 45 |e used o|n:...TRE|
|00005480| 45 5c 5f 56 45 43 73 20 | 74 68 61 74 20 61 72 65 |E\_VECs |that are|
|00005490| 20 62 69 6e 66 6f 73 0a | 0a 48 61 73 20 76 61 6c | binfos.|.Has val|
|000054a0| 75 65 73 20 6f 66 3a 0a | 0a 09 56 41 52 5c 5f 44 |ues of:.|..VAR\_D|
|000054b0| 45 43 4c 73 20 74 68 61 | 74 20 61 72 65 20 76 69 |ECLs tha|t are vi|
|000054c0| 72 74 75 61 6c 20 66 75 | 6e 63 74 69 6f 6e 20 74 |rtual fu|nction t|
|000054d0| 61 62 6c 65 73 0a 0a 0a | 23 49 6e 64 65 6e 74 0a |ables...|#Indent.|
|000054e0| 7b 66 43 6f 64 65 7d 42 | 4c 4f 43 4b 5c 5f 53 55 |{fCode}B|LOCK\_SU|
|000054f0| 50 45 52 43 4f 4e 54 45 | 58 54 7b 66 7d 0a 23 49 |PERCONTE|XT{f}.#I|
|00005500| 6e 64 65 6e 74 20 2b 34 | 0a 49 6e 20 74 68 65 20 |ndent +4|.In the |
|00005510| 6f 75 74 65 72 6d 6f 73 | 74 20 73 63 6f 70 65 20 |outermos|t scope |
|00005520| 6f 66 20 65 61 63 68 20 | 66 75 6e 63 74 69 6f 6e |of each |function|
|00005530| 2c 20 69 74 20 70 6f 69 | 6e 74 73 20 74 6f 20 74 |, it poi|nts to t|
|00005540| 68 65 20 46 55 4e 43 54 | 49 4f 4e 5c 5f 44 45 43 |he FUNCT|ION\_DEC|
|00005550| 4c 0a 6e 6f 64 65 2e 20 | 20 49 74 20 61 69 64 73 |L.node. | It aids|
|00005560| 20 69 6e 20 62 65 74 74 | 65 72 20 44 57 41 52 46 | in bett|er DWARF|
|00005570| 20 73 75 70 70 6f 72 74 | 20 6f 66 20 69 6e 6c 69 | support| of inli|
|00005580| 6e 65 20 66 75 6e 63 74 | 69 6f 6e 73 2e 0a 0a 0a |ne funct|ions....|
|00005590| 23 49 6e 64 65 6e 74 0a | 7b 66 43 6f 64 65 7d 43 |#Indent.|{fCode}C|
|000055a0| 4c 41 53 53 54 59 50 45 | 5c 5f 54 41 47 53 7b 66 |LASSTYPE|\_TAGS{f|
|000055b0| 7d 0a 23 49 6e 64 65 6e | 74 20 2b 34 0a 43 4c 41 |}.#Inden|t +4.CLA|
|000055c0| 53 53 54 59 50 45 5c 5f | 54 41 47 53 20 69 73 20 |SSTYPE\_|TAGS is |
|000055d0| 61 20 6c 69 6e 6b 65 64 | 20 28 76 69 61 20 54 52 |a linked| (via TR|
|000055e0| 45 45 5c 5f 43 48 41 49 | 4e 29 20 6c 69 73 74 20 |EE\_CHAI|N) list |
|000055f0| 6f 66 20 6d 65 6d 62 65 | 72 20 63 6c 61 73 73 65 |of membe|r classe|
|00005600| 73 20 6f 66 20 61 0a 63 | 6c 61 73 73 2e 20 54 52 |s of a.c|lass. TR|
|00005610| 45 45 5c 5f 50 55 52 50 | 4f 53 45 20 69 73 20 74 |EE\_PURP|OSE is t|
|00005620| 68 65 20 6e 61 6d 65 2c | 20 54 52 45 45 5c 5f 56 |he name,| TREE\_V|
|00005630| 41 4c 55 45 20 69 73 20 | 74 68 65 20 74 79 70 65 |ALUE is |the type|
|00005640| 20 28 70 75 73 68 63 6c | 61 73 73 20 73 63 61 6e | (pushcl|ass scan|
|00005650| 73 0a 74 68 65 73 65 20 | 61 6e 64 20 63 61 6c 6c |s.these |and call|
|00005660| 73 20 70 75 73 68 74 61 | 67 20 6f 6e 20 74 68 65 |s pushta|g on the|
|00005670| 6d 2e 29 0a 0a 66 69 6e | 69 73 68 5c 5f 73 74 72 |m.)..fin|ish\_str|
|00005680| 75 63 74 20 73 63 61 6e | 73 20 74 68 65 73 65 20 |uct scan|s these |
|00005690| 74 6f 20 70 72 6f 64 75 | 63 65 20 54 59 50 45 5c |to produ|ce TYPE\|
|000056a0| 5f 44 45 43 4c 73 20 74 | 6f 20 61 64 64 20 74 6f |_DECLs t|o add to|
|000056b0| 20 74 68 65 0a 54 59 50 | 45 5c 5f 46 49 45 4c 44 | the.TYP|E\_FIELD|
|000056c0| 53 20 6f 66 20 74 68 65 | 20 74 79 70 65 2e 0a 0a |S of the| type...|
|000056d0| 49 74 20 69 73 20 65 78 | 70 65 63 74 65 64 20 74 |It is ex|pected t|
|000056e0| 68 61 74 20 6e 61 6d 65 | 20 66 6f 75 6e 64 20 69 |hat name| found i|
|000056f0| 6e 20 74 68 65 20 54 52 | 45 45 5c 5f 50 55 52 50 |n the TR|EE\_PURP|
|00005700| 4f 53 45 20 73 6c 6f 74 | 20 69 73 20 75 6e 69 71 |OSE slot| is uniq|
|00005710| 75 65 2c 0a 72 65 73 6f | 6c 76 65 5c 5f 73 63 6f |ue,.reso|lve\_sco|
|00005720| 70 65 5c 5f 74 6f 5c 5f | 6e 61 6d 65 20 69 73 20 |pe\_to\_|name is |
|00005730| 6f 6e 65 20 73 75 63 68 | 20 70 6c 61 63 65 20 74 |one such| place t|
|00005740| 68 61 74 20 64 65 70 65 | 6e 64 73 20 75 70 6f 6e |hat depe|nds upon|
|00005750| 20 74 68 69 73 0a 75 6e | 69 71 75 65 6e 65 73 73 | this.un|iqueness|
|00005760| 2e 0a 0a 0a 23 49 6e 64 | 65 6e 74 0a 7b 66 43 6f |....#Ind|ent.{fCo|
|00005770| 64 65 7d 43 4c 41 53 53 | 54 59 50 45 5c 5f 4d 45 |de}CLASS|TYPE\_ME|
|00005780| 54 48 4f 44 5c 5f 56 45 | 43 7b 66 7d 0a 23 49 6e |THOD\_VE|C{f}.#In|
|00005790| 64 65 6e 74 20 2b 34 0a | 54 68 65 20 66 6f 6c 6c |dent +4.|The foll|
|000057a0| 6f 77 69 6e 67 20 69 73 | 20 74 72 75 65 20 61 66 |owing is| true af|
|000057b0| 74 65 72 20 66 69 6e 69 | 73 68 5c 5f 73 74 72 75 |ter fini|sh\_stru|
|000057c0| 63 74 20 68 61 73 20 62 | 65 65 6e 20 63 61 6c 6c |ct has b|een call|
|000057d0| 65 64 20 28 6f 6e 20 74 | 68 65 0a 63 6c 61 73 73 |ed (on t|he.class|
|000057e0| 3f 29 20 62 75 74 20 6e | 6f 74 20 62 65 66 6f 72 |?) but n|ot befor|
|000057f0| 65 2e 20 20 42 65 66 6f | 72 65 20 66 69 6e 69 73 |e. Befo|re finis|
|00005800| 68 5c 5f 73 74 72 75 63 | 74 20 69 73 20 63 61 6c |h\_struc|t is cal|
|00005810| 6c 65 64 2c 20 74 68 69 | 6e 67 73 20 61 72 65 0a |led, thi|ngs are.|
|00005820| 64 69 66 66 65 72 65 6e | 74 20 74 6f 20 73 6f 6d |differen|t to som|
|00005830| 65 20 65 78 74 65 6e 74 | 2e 20 20 43 6f 6e 74 61 |e extent|. Conta|
|00005840| 69 6e 73 20 61 20 54 52 | 45 45 5c 5f 56 45 43 20 |ins a TR|EE\_VEC |
|00005850| 6f 66 20 6d 65 74 68 6f | 64 73 20 6f 66 20 74 68 |of metho|ds of th|
|00005860| 65 20 63 6c 61 73 73 2e | 0a 54 68 65 20 54 52 45 |e class.|.The TRE|
|00005870| 45 5c 5f 56 45 43 5c 5f | 4c 45 4e 47 54 48 20 69 |E\_VEC\_|LENGTH i|
|00005880| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|00005890| 64 69 66 66 65 72 65 6e | 74 6c 79 20 6e 61 6d 65 |differen|tly name|
|000058a0| 64 20 6d 65 74 68 6f 64 | 73 20 70 6c 75 73 20 6f |d method|s plus o|
|000058b0| 6e 65 0a 66 6f 72 20 74 | 68 65 20 30 74 68 20 65 |ne.for t|he 0th e|
|000058c0| 6e 74 72 79 2e 20 20 54 | 68 65 20 30 74 68 20 65 |ntry. T|he 0th e|
|000058d0| 6e 74 72 79 20 69 73 20 | 61 6c 77 61 79 73 20 61 |ntry is |always a|
|000058e0| 6c 6c 6f 63 61 74 65 64 | 2c 20 61 6e 64 20 72 65 |llocated|, and re|
|000058f0| 73 65 72 76 65 64 20 66 | 6f 72 0a 63 74 6f 72 73 |served f|or.ctors|
|00005900| 20 61 6e 64 20 64 74 6f | 72 73 2e 20 20 49 66 20 | and dto|rs. If |
|00005910| 74 68 65 72 65 20 61 72 | 65 20 6e 6f 6e 65 2c 20 |there ar|e none, |
|00005920| 54 52 45 45 5c 5f 56 45 | 43 5c 5f 45 4c 54 28 4e |TREE\_VE|C\_ELT(N|
|00005930| 2c 30 29 20 3d 3d 20 4e | 55 4c 4c 5c 5f 54 52 45 |,0) == N|ULL\_TRE|
|00005940| 45 2e 0a 45 61 63 68 20 | 65 6e 74 72 79 20 6f 66 |E..Each |entry of|
|00005950| 20 74 68 65 20 54 52 45 | 45 5c 5f 56 45 43 20 69 | the TRE|E\_VEC i|
|00005960| 73 20 61 20 46 55 4e 43 | 54 49 4f 4e 5c 5f 44 45 |s a FUNC|TION\_DE|
|00005970| 43 4c 2e 20 20 46 6f 72 | 20 65 61 63 68 20 46 55 |CL. For| each FU|
|00005980| 4e 43 54 49 4f 4e 5c 5f | 44 45 43 4c 2c 0a 74 68 |NCTION\_|DECL,.th|
|00005990| 65 72 65 20 69 73 20 61 | 20 44 45 43 4c 5c 5f 43 |ere is a| DECL\_C|
|000059a0| 48 41 49 4e 20 73 6c 6f | 74 2e 20 20 49 66 20 74 |HAIN slo|t. If t|
|000059b0| 68 65 20 46 55 4e 43 54 | 49 4f 4e 5c 5f 44 45 43 |he FUNCT|ION\_DEC|
|000059c0| 4c 20 69 73 20 74 68 65 | 20 6c 61 73 74 20 6f 6e |L is the| last on|
|000059d0| 65 20 77 69 74 68 20 61 | 0a 67 69 76 65 6e 20 6e |e with a|.given n|
|000059e0| 61 6d 65 2c 20 74 68 65 | 20 44 45 43 4c 5c 5f 43 |ame, the| DECL\_C|
|000059f0| 48 41 49 4e 20 73 6c 6f | 74 20 69 73 20 4e 55 4c |HAIN slo|t is NUL|
|00005a00| 4c 5c 5f 54 52 45 45 2e | 20 20 4f 74 68 65 72 77 |L\_TREE.| Otherw|
|00005a10| 69 73 65 20 69 74 20 69 | 73 20 74 68 65 20 6e 65 |ise it i|s the ne|
|00005a20| 78 74 0a 6d 65 74 68 6f | 64 20 74 68 61 74 20 68 |xt.metho|d that h|
|00005a30| 61 73 20 74 68 65 20 73 | 61 6d 65 20 6e 61 6d 65 |as the s|ame name|
|00005a40| 20 28 62 75 74 20 61 20 | 64 69 66 66 65 72 65 6e | (but a |differen|
|00005a50| 74 20 73 69 67 6e 61 74 | 75 72 65 29 2e 20 20 49 |t signat|ure). I|
|00005a60| 74 20 77 6f 75 6c 64 0a | 73 65 65 6d 20 74 68 61 |t would.|seem tha|
|00005a70| 74 20 69 74 20 69 73 20 | 6e 6f 74 20 74 72 75 65 |t it is |not true|
|00005a80| 20 74 68 61 74 20 62 65 | 63 61 75 73 65 20 74 68 | that be|cause th|
|00005a90| 65 20 44 45 43 4c 5c 5f | 43 48 41 49 4e 20 73 6c |e DECL\_|CHAIN sl|
|00005aa0| 6f 74 20 69 73 20 75 73 | 65 64 20 69 6e 0a 74 68 |ot is us|ed in.th|
|00005ab0| 69 73 20 77 61 79 2c 20 | 77 65 20 63 61 6e 6e 6f |is way, |we canno|
|00005ac0| 74 20 63 61 6c 6c 20 70 | 75 73 68 64 65 63 6c 20 |t call p|ushdecl |
|00005ad0| 74 6f 20 70 75 74 20 74 | 68 65 20 6d 65 74 68 6f |to put t|he metho|
|00005ae0| 64 20 69 6e 20 74 68 65 | 20 67 6c 6f 62 61 6c 20 |d in the| global |
|00005af0| 73 63 6f 70 65 0a 28 63 | 61 75 73 65 20 74 68 61 |scope.(c|ause tha|
|00005b00| 74 20 77 6f 75 6c 64 20 | 6f 76 65 72 77 72 69 74 |t would |overwrit|
|00005b10| 65 20 74 68 65 20 54 52 | 45 45 5c 5f 43 48 41 49 |e the TR|EE\_CHAI|
|00005b20| 4e 20 73 6c 6f 74 29 2c | 20 62 65 63 61 75 73 65 |N slot),| because|
|00005b30| 20 74 68 65 79 20 75 73 | 65 0a 64 69 66 66 65 72 | they us|e.differ|
|00005b40| 65 6e 74 20 5c 5f 43 48 | 41 49 4e 73 2e 20 20 66 |ent \_CH|AINs. f|
|00005b50| 69 6e 69 73 68 5c 5f 73 | 74 72 75 63 74 5c 5f 6d |inish\_s|truct\_m|
|00005b60| 65 74 68 6f 64 73 20 73 | 65 74 75 70 73 20 75 70 |ethods s|etups up|
|00005b70| 20 6f 6e 65 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 | one ver|sion of |
|00005b80| 74 68 65 0a 54 52 45 45 | 5c 5f 43 48 41 49 4e 20 |the.TREE|\_CHAIN |
|00005b90| 73 6c 6f 74 73 20 6f 6e | 20 74 68 65 20 46 55 4e |slots on| the FUN|
|00005ba0| 43 54 49 4f 4e 5c 5f 44 | 45 43 4c 73 2e 0a 0a 66 |CTION\_D|ECLs...f|
|00005bb0| 72 69 65 6e 64 73 20 61 | 72 65 20 6b 65 70 74 20 |riends a|re kept |
|00005bc0| 69 6e 20 54 52 45 45 5c | 5f 4c 49 53 54 73 2c 20 |in TREE\|_LISTs, |
|00005bd0| 73 6f 20 74 68 61 74 20 | 74 68 65 72 65 27 73 20 |so that |there's |
|00005be0| 6e 6f 20 6e 65 65 64 20 | 74 6f 20 75 73 65 20 74 |no need |to use t|
|00005bf0| 68 65 69 72 0a 54 52 45 | 45 5c 5f 43 48 41 49 4e |heir.TRE|E\_CHAIN|
|00005c00| 20 73 6c 6f 74 20 66 6f | 72 20 61 6e 79 74 68 69 | slot fo|r anythi|
|00005c10| 6e 67 2e 0a 0a 48 61 73 | 20 76 61 6c 75 65 73 20 |ng...Has| values |
|00005c20| 6f 66 3a 0a 0a 09 54 52 | 45 45 5c 5f 56 45 43 73 |of:...TR|EE\_VECs|
|00005c30| 0a 09 0a 0a 23 49 6e 64 | 65 6e 74 0a 7b 66 43 6f |....#Ind|ent.{fCo|
|00005c40| 64 65 7d 43 4c 41 53 53 | 54 59 50 45 5c 5f 56 46 |de}CLASS|TYPE\_VF|
|00005c50| 49 45 4c 44 7b 66 7d 0a | 23 49 6e 64 65 6e 74 20 |IELD{f}.|#Indent |
|00005c60| 2b 34 0a 53 65 65 6d 73 | 20 74 6f 20 62 65 20 69 |+4.Seems| to be i|
|00005c70| 6e 20 74 68 65 20 70 72 | 6f 63 65 73 73 20 6f 66 |n the pr|ocess of|
|00005c80| 20 62 65 69 6e 67 20 72 | 65 6e 61 6d 65 64 20 54 | being r|enamed T|
|00005c90| 59 50 45 5c 5f 56 46 49 | 45 4c 44 2e 20 20 55 73 |YPE\_VFI|ELD. Us|
|00005ca0| 65 20 6f 6e 20 74 79 70 | 65 73 0a 74 6f 20 67 65 |e on typ|es.to ge|
|00005cb0| 74 20 74 68 65 20 6d 61 | 69 6e 20 76 69 72 74 75 |t the ma|in virtu|
|00005cc0| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 74 61 62 6c |al funct|ion tabl|
|00005cd0| 65 20 70 6f 69 6e 74 65 | 72 2e 20 20 54 6f 20 67 |e pointe|r. To g|
|00005ce0| 65 74 20 74 68 65 20 76 | 69 72 74 75 61 6c 0a 66 |et the v|irtual.f|
|00005cf0| 75 6e 63 74 69 6f 6e 20 | 74 61 62 6c 65 20 75 73 |unction |table us|
|00005d00| 65 20 42 49 4e 46 4f 5c | 5f 56 54 41 42 4c 45 20 |e BINFO\|_VTABLE |
|00005d10| 28 54 59 50 45 5c 5f 42 | 49 4e 46 4f 20 28 29 29 |(TYPE\_B|INFO ())|
|00005d20| 2e 0a 0a 48 61 73 20 76 | 61 6c 75 65 73 20 6f 66 |...Has v|alues of|
|00005d30| 3a 0a 0a 09 46 49 45 4c | 44 5c 5f 44 45 43 4c 73 |:...FIEL|D\_DECLs|
|00005d40| 20 74 68 61 74 20 61 72 | 65 20 76 69 72 74 75 61 | that ar|e virtua|
|00005d50| 6c 20 66 75 6e 63 74 69 | 6f 6e 20 74 61 62 6c 65 |l functi|on table|
|00005d60| 20 70 6f 69 6e 74 65 72 | 73 0a 0a 57 68 61 74 20 | pointer|s..What |
|00005d70| 74 68 69 6e 67 73 20 63 | 61 6e 20 74 68 69 73 20 |things c|an this |
|00005d80| 62 65 20 75 73 65 64 20 | 6f 6e 3a 0a 0a 09 52 45 |be used |on:...RE|
|00005d90| 43 4f 52 44 5c 5f 54 59 | 50 45 73 0a 0a 0a 23 49 |CORD\_TY|PEs...#I|
|00005da0| 6e 64 65 6e 74 0a 7b 66 | 43 6f 64 65 7d 44 45 43 |ndent.{f|Code}DEC|
|00005db0| 4c 5c 5f 43 4c 41 53 53 | 5c 5f 43 4f 4e 54 45 58 |L\_CLASS|\_CONTEX|
|00005dc0| 54 7b 66 7d 0a 23 49 6e | 64 65 6e 74 20 2b 34 0a |T{f}.#In|dent +4.|
|00005dd0| 49 64 65 6e 74 69 66 69 | 65 73 20 74 68 65 20 63 |Identifi|es the c|
|00005de0| 6f 6e 74 65 78 74 20 74 | 68 61 74 20 74 68 65 20 |ontext t|hat the |
|00005df0| 5c 5f 44 45 43 4c 20 77 | 61 73 20 66 6f 75 6e 64 |\_DECL w|as found|
|00005e00| 20 69 6e 2e 20 20 46 6f | 72 20 76 69 72 74 75 61 | in. Fo|r virtua|
|00005e10| 6c 20 66 75 6e 63 74 69 | 6f 6e 0a 74 61 62 6c 65 |l functi|on.table|
|00005e20| 73 2c 20 69 74 20 70 6f | 69 6e 74 73 20 74 6f 20 |s, it po|ints to |
|00005e30| 74 68 65 20 74 79 70 65 | 20 61 73 73 6f 63 69 61 |the type| associa|
|00005e40| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 76 69 72 |ted with| the vir|
|00005e50| 74 75 61 6c 20 66 75 6e | 63 74 69 6f 6e 0a 74 61 |tual fun|ction.ta|
|00005e60| 62 6c 65 2e 20 20 53 65 | 65 20 61 6c 73 6f 20 44 |ble. Se|e also D|
|00005e70| 45 43 4c 5c 5f 43 4f 4e | 54 45 58 54 2c 20 44 45 |ECL\_CON|TEXT, DE|
|00005e80| 43 4c 5c 5f 46 49 45 4c | 44 5c 5f 43 4f 4e 54 45 |CL\_FIEL|D\_CONTE|
|00005e90| 58 54 20 61 6e 64 20 44 | 45 43 4c 5c 5f 46 43 4f |XT and D|ECL\_FCO|
|00005ea0| 4e 54 45 58 54 2e 0a 0a | 54 68 65 20 64 69 66 66 |NTEXT...|The diff|
|00005eb0| 65 72 65 6e 63 65 20 62 | 65 74 77 65 65 6e 20 74 |erence b|etween t|
|00005ec0| 68 69 73 20 61 6e 64 20 | 44 45 43 4c 5c 5f 43 4f |his and |DECL\_CO|
|00005ed0| 4e 54 45 58 54 2c 20 69 | 73 20 74 68 61 74 20 66 |NTEXT, i|s that f|
|00005ee0| 6f 72 20 76 69 72 74 75 | 61 6c 73 0a 66 75 6e 63 |or virtu|als.func|
|00005ef0| 74 69 6f 6e 73 20 6c 69 | 6b 65 3a 0a 0a 23 57 72 |tions li|ke:..#Wr|
|00005f00| 61 70 20 6f 66 66 0a 23 | 66 43 6f 64 65 0a 73 74 |ap off.#|fCode.st|
|00005f10| 72 75 63 74 20 41 0a 5c | 7b 0a 20 20 76 69 72 74 |ruct A.\|{. virt|
|00005f20| 75 61 6c 20 69 6e 74 20 | 66 20 28 29 3b 0a 5c 7d |ual int |f ();.\}|
|00005f30| 3b 0a 0a 73 74 72 75 63 | 74 20 42 20 3a 20 41 0a |;..struc|t B : A.|
|00005f40| 5c 7b 0a 20 20 69 6e 74 | 20 66 20 28 29 3b 0a 5c |\{. int| f ();.\|
|00005f50| 7d 3b 0a 0a 44 45 43 4c | 5c 5f 43 4f 4e 54 45 58 |};..DECL|\_CONTEX|
|00005f60| 54 20 28 41 3a 3a 66 29 | 20 3d 3d 20 41 0a 44 45 |T (A::f)| == A.DE|
|00005f70| 43 4c 5c 5f 43 4c 41 53 | 53 5c 5f 43 4f 4e 54 45 |CL\_CLAS|S\_CONTE|
|00005f80| 58 54 20 28 41 3a 3a 66 | 29 20 3d 3d 20 41 0a 0a |XT (A::f|) == A..|
|00005f90| 44 45 43 4c 5c 5f 43 4f | 4e 54 45 58 54 20 28 42 |DECL\_CO|NTEXT (B|
|00005fa0| 3a 3a 66 29 20 3d 3d 20 | 41 0a 44 45 43 4c 5c 5f |::f) == |A.DECL\_|
|00005fb0| 43 4c 41 53 53 5c 5f 43 | 4f 4e 54 45 58 54 20 28 |CLASS\_C|ONTEXT (|
|00005fc0| 42 3a 3a 66 29 20 3d 3d | 20 42 0a 23 66 0a 23 57 |B::f) ==| B.#f.#W|
|00005fd0| 72 61 70 20 6f 6e 0a 0a | 48 61 73 20 76 61 6c 75 |rap on..|Has valu|
|00005fe0| 65 73 20 6f 66 3a 0a 0a | 09 52 45 43 4f 52 44 5c |es of:..|.RECORD\|
|00005ff0| 5f 54 59 50 45 73 2c 20 | 6f 72 20 55 4e 49 4f 4e |_TYPEs, |or UNION|
|00006000| 5c 5f 54 59 50 45 73 0a | 0a 57 68 61 74 20 74 68 |\_TYPEs.|.What th|
|00006010| 69 6e 67 73 20 63 61 6e | 20 74 68 69 73 20 62 65 |ings can| this be|
|00006020| 20 75 73 65 64 20 6f 6e | 3a 0a 0a 09 54 59 50 45 | used on|:...TYPE|
|00006030| 5c 5f 44 45 43 4c 73 2c | 20 5c 5f 44 45 43 4c 73 |\_DECLs,| \_DECLs|
|00006040| 0a 0a 0a 23 49 6e 64 65 | 6e 74 0a 7b 66 43 6f 64 |...#Inde|nt.{fCod|
|00006050| 65 7d 44 45 43 4c 5c 5f | 43 4f 4e 54 45 58 54 7b |e}DECL\_|CONTEXT{|
|00006060| 66 7d 0a 23 49 6e 64 65 | 6e 74 20 2b 34 0a 49 64 |f}.#Inde|nt +4.Id|
|00006070| 65 6e 74 69 66 69 65 73 | 20 74 68 65 20 63 6f 6e |entifies| the con|
|00006080| 74 65 78 74 20 74 68 61 | 74 20 74 68 65 20 5c 5f |text tha|t the \_|
|00006090| 44 45 43 4c 20 77 61 73 | 20 66 6f 75 6e 64 20 69 |DECL was| found i|
|000060a0| 6e 2e 20 20 43 61 6e 20 | 62 65 20 75 73 65 64 20 |n. Can |be used |
|000060b0| 6f 6e 0a 76 69 72 74 75 | 61 6c 20 66 75 6e 63 74 |on.virtu|al funct|
|000060c0| 69 6f 6e 20 74 61 62 6c | 65 73 20 74 6f 20 66 69 |ion tabl|es to fi|
|000060d0| 6e 64 20 74 68 65 20 74 | 79 70 65 20 61 73 73 6f |nd the t|ype asso|
|000060e0| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|000060f0| 76 69 72 74 75 61 6c 0a | 66 75 6e 63 74 69 6f 6e |virtual.|function|
|00006100| 20 74 61 62 6c 65 2c 20 | 62 75 74 20 73 69 6e 63 | table, |but sinc|
|00006110| 65 20 74 68 65 79 20 61 | 72 65 20 46 49 45 4c 44 |e they a|re FIELD|
|00006120| 5c 5f 44 45 43 4c 73 2c | 20 44 45 43 4c 5c 5f 46 |\_DECLs,| DECL\_F|
|00006130| 49 45 4c 44 5c 5f 43 4f | 4e 54 45 58 54 20 69 73 |IELD\_CO|NTEXT is|
|00006140| 20 61 0a 62 65 74 74 65 | 72 20 61 63 63 65 73 73 | a.bette|r access|
|00006150| 20 6d 65 74 68 6f 64 2e | 20 20 49 6e 74 65 72 6e | method.| Intern|
|00006160| 61 6c 6c 79 20 74 68 65 | 20 73 61 6d 65 20 61 73 |ally the| same as|
|00006170| 20 44 45 43 4c 5c 5f 46 | 49 45 4c 44 5c 5f 43 4f | DECL\_F|IELD\_CO|
|00006180| 4e 54 45 58 54 2c 20 73 | 6f 0a 64 6f 6e 27 74 20 |NTEXT, s|o.don't |
|00006190| 75 73 20 62 6f 74 68 2e | 20 20 53 65 65 20 61 6c |us both.| See al|
|000061a0| 73 6f 20 44 45 43 4c 5c | 5f 46 49 45 4c 44 5c 5f |so DECL\|_FIELD\_|
|000061b0| 43 4f 4e 54 45 58 54 2c | 20 44 45 43 4c 5c 5f 46 |CONTEXT,| DECL\_F|
|000061c0| 43 4f 4e 54 45 58 54 20 | 61 6e 64 0a 44 45 43 4c |CONTEXT |and.DECL|
|000061d0| 5c 5f 43 4c 41 53 53 5c | 5f 43 4f 4e 54 45 58 54 |\_CLASS\|_CONTEXT|
|000061e0| 2e 0a 0a 48 61 73 20 76 | 61 6c 75 65 73 20 6f 66 |...Has v|alues of|
|000061f0| 3a 0a 0a 09 52 45 43 4f | 52 44 5c 5f 54 59 50 45 |:...RECO|RD\_TYPE|
|00006200| 73 0a 0a 0a 57 68 61 74 | 20 74 68 69 6e 67 73 20 |s...What| things |
|00006210| 63 61 6e 20 74 68 69 73 | 20 62 65 20 75 73 65 64 |can this| be used|
|00006220| 20 6f 6e 3a 0a 0a 23 57 | 72 61 70 20 6f 66 66 0a | on:..#W|rap off.|
|00006230| 56 41 52 5c 5f 44 45 43 | 4c 73 20 74 68 61 74 20 |VAR\_DEC|Ls that |
|00006240| 61 72 65 20 76 69 72 74 | 75 61 6c 20 66 75 6e 63 |are virt|ual func|
|00006250| 74 69 6f 6e 20 74 61 62 | 6c 65 73 0a 5c 5f 44 45 |tion tab|les.\_DE|
|00006260| 43 4c 73 0a 23 57 72 61 | 70 20 6f 6e 0a 0a 0a 23 |CLs.#Wra|p on...#|
|00006270| 49 6e 64 65 6e 74 0a 7b | 66 43 6f 64 65 7d 44 45 |Indent.{|fCode}DE|
|00006280| 43 4c 5c 5f 46 49 45 4c | 44 5c 5f 43 4f 4e 54 45 |CL\_FIEL|D\_CONTE|
|00006290| 58 54 7b 66 7d 0a 23 49 | 6e 64 65 6e 74 20 2b 34 |XT{f}.#I|ndent +4|
|000062a0| 0a 49 64 65 6e 74 69 66 | 69 65 73 20 74 68 65 20 |.Identif|ies the |
|000062b0| 63 6f 6e 74 65 78 74 20 | 74 68 61 74 20 74 68 65 |context |that the|
|000062c0| 20 46 49 45 4c 44 5c 5f | 44 45 43 4c 20 77 61 73 | FIELD\_|DECL was|
|000062d0| 20 66 6f 75 6e 64 20 69 | 6e 2e 20 20 49 6e 74 65 | found i|n. Inte|
|000062e0| 72 6e 61 6c 6c 79 20 74 | 68 65 0a 73 61 6d 65 20 |rnally t|he.same |
|000062f0| 61 73 20 44 45 43 4c 5c | 5f 43 4f 4e 54 45 58 54 |as DECL\|_CONTEXT|
|00006300| 2c 20 73 6f 20 64 6f 6e | 27 74 20 75 73 20 62 6f |, so don|'t us bo|
|00006310| 74 68 2e 20 20 53 65 65 | 20 61 6c 73 6f 20 44 45 |th. See| also DE|
|00006320| 43 4c 5c 5f 43 4f 4e 54 | 45 58 54 2c 0a 44 45 43 |CL\_CONT|EXT,.DEC|
|00006330| 4c 5c 5f 46 43 4f 4e 54 | 45 58 54 20 61 6e 64 20 |L\_FCONT|EXT and |
|00006340| 44 45 43 4c 5c 5f 43 4c | 41 53 53 5c 5f 43 4f 4e |DECL\_CL|ASS\_CON|
|00006350| 54 45 58 54 2e 0a 0a 48 | 61 73 20 76 61 6c 75 65 |TEXT...H|as value|
|00006360| 73 20 6f 66 3a 0a 0a 09 | 52 45 43 4f 52 44 5c 5f |s of:...|RECORD\_|
|00006370| 54 59 50 45 73 0a 0a 57 | 68 61 74 20 74 68 69 6e |TYPEs..W|hat thin|
|00006380| 67 73 20 63 61 6e 20 74 | 68 69 73 20 62 65 20 75 |gs can t|his be u|
|00006390| 73 65 64 20 6f 6e 3a 0a | 0a 23 57 72 61 70 20 6f |sed on:.|.#Wrap o|
|000063a0| 66 66 0a 46 49 45 4c 44 | 5c 5f 44 45 43 4c 73 20 |ff.FIELD|\_DECLs |
|000063b0| 74 68 61 74 20 61 72 65 | 20 76 69 72 74 75 61 6c |that are| virtual|
|000063c0| 20 66 75 6e 63 74 69 6f | 6e 20 70 6f 69 6e 74 65 | functio|n pointe|
|000063d0| 72 73 0a 46 49 45 4c 44 | 5c 5f 44 45 43 4c 73 0a |rs.FIELD|\_DECLs.|
|000063e0| 23 57 72 61 70 20 6f 6e | 0a 0a 0a 23 49 6e 64 65 |#Wrap on|...#Inde|
|000063f0| 6e 74 0a 7b 66 43 6f 64 | 65 7d 44 45 43 4c 5c 5f |nt.{fCod|e}DECL\_|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.