home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LHArc Archive
(archive/lha).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LHArc Archive (archive/lha)
| magic
| Supported |
100%
| file
| LHarc 1.x/ARX archive data [lh0], with "Src\Afc\BeBox_Example1.e"
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| LHARC/LZARK compressed archive (generic)
| default
| |
100%
| lsar
| LZH
| default
| |
100%
| gt2
| LZH Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| detectItEasy
| Archive: LHA archive (.LHA)(-lh0-)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 2e 0d 2d 6c 68 30 2d 9e | 0b 00 00 9e 0b 00 00 f7 |..-lh0-.|........|
|00000010| a9 29 23 02 00 18 53 72 | 63 5c 41 66 63 5c 42 65 |.)#...Sr|c\Afc\Be|
|00000020| 42 6f 78 5f 45 78 61 6d | 70 6c 65 31 2e 65 9b 13 |Box_Exam|ple1.e..|
|00000030| 2f 2a 0a 0a 20 20 24 56 | 45 52 3a 20 42 65 42 6f |/*.. $V|ER: BeBo|
|00000040| 78 20 45 78 61 6d 70 6c | 65 20 31 20 2d 20 28 43 |x Exampl|e 1 - (C|
|00000050| 29 43 6f 70 79 72 69 67 | 68 74 20 41 6d 69 67 61 |)Copyrig|ht Amiga|
|00000060| 20 46 6f 75 6e 64 61 74 | 69 6f 6e 20 43 6c 61 73 | Foundat|ion Clas|
|00000070| 73 65 73 0a 0a 20 20 57 | 72 69 74 74 65 6e 20 42 |ses.. W|ritten B|
|00000080| 79 3a 20 20 20 46 61 62 | 69 6f 20 52 6f 74 6f 6e |y: Fab|io Roton|
|00000090| 64 6f 0a 0a 20 20 54 68 | 69 73 20 65 78 61 6d 70 |do.. Th|is examp|
|000000a0| 6c 65 20 6a 75 73 74 20 | 73 68 6f 77 73 20 73 6f |le just |shows so|
|000000b0| 6d 65 20 66 65 61 74 75 | 72 65 73 20 6f 66 20 74 |me featu|res of t|
|000000c0| 68 65 20 42 65 42 6f 78 | 20 63 6c 61 73 73 2e 0a |he BeBox| class..|
|000000d0| 0a 20 20 50 6c 65 61 73 | 65 2c 20 6e 6f 74 65 20 |. Pleas|e, note |
|000000e0| 74 68 65 20 22 6d 79 64 | 72 61 77 22 20 66 75 6e |the "myd|raw" fun|
|000000f0| 63 74 69 6f 6e 2e 0a 0a | 2a 2f 0a 0a 4d 4f 44 55 |ction...|*/..MODU|
|00000100| 4c 45 20 27 61 66 63 2f | 65 78 70 6c 61 69 6e 5f |LE 'afc/|explain_|
|00000110| 65 78 63 65 70 74 69 6f | 6e 27 2c 20 27 61 66 63 |exceptio|n', 'afc|
|00000120| 2f 62 65 62 6f 78 27 2c | 0a 20 20 20 20 20 20 20 |/bebox',|. |
|00000130| 27 69 6e 74 75 69 74 69 | 6f 6e 2f 69 6e 74 75 69 |'intuiti|on/intui|
|00000140| 74 69 6f 6e 27 2c 20 27 | 69 6e 74 75 69 74 69 6f |tion', '|intuitio|
|00000150| 6e 2f 73 63 72 65 65 6e | 73 27 0a 0a 50 52 4f 43 |n/screen|s'..PROC|
|00000160| 20 6d 61 69 6e 28 29 20 | 48 41 4e 44 4c 45 0a 20 | main() |HANDLE. |
|00000170| 20 44 45 46 20 62 62 3d | 4e 49 4c 3a 50 54 52 20 | DEF bb=|NIL:PTR |
|00000180| 54 4f 20 62 65 62 6f 78 | 0a 20 20 44 45 46 20 73 |TO bebox|. DEF s|
|00000190| 63 72 3d 4e 49 4c 3a 50 | 54 52 20 54 4f 20 73 63 |cr=NIL:P|TR TO sc|
|000001a0| 72 65 65 6e 0a 20 20 44 | 45 46 20 77 69 6e 3d 4e |reen. D|EF win=N|
|000001b0| 49 4c 3a 50 54 52 20 54 | 4f 20 77 69 6e 64 6f 77 |IL:PTR T|O window|
|000001c0| 0a 0a 20 20 4e 45 57 20 | 62 62 2e 62 65 62 6f 78 |.. NEW |bb.bebox|
|000001d0| 28 29 20 20 20 20 2d 3e | 20 43 6c 61 73 73 20 69 |() ->| Class i|
|000001e0| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 0a 0a 0a |nitializ|ation...|
|000001f0| 0a 20 20 49 46 20 28 73 | 63 72 3a 3d 4c 6f 63 6b |. IF (s|cr:=Lock|
|00000200| 50 75 62 53 63 72 65 65 | 6e 28 27 57 6f 72 6b 62 |PubScree|n('Workb|
|00000210| 65 6e 63 68 27 29 29 3d | 4e 49 4c 20 54 48 45 4e |ench'))=|NIL THEN|
|00000220| 20 52 61 69 73 65 28 22 | 73 63 72 22 29 0a 0a 20 | Raise("|scr").. |
|00000230| 20 49 46 20 28 77 69 6e | 3a 3d 4f 70 65 6e 57 69 | IF (win|:=OpenWi|
|00000240| 6e 64 6f 77 54 61 67 4c | 69 73 74 28 4e 49 4c 2c |ndowTagL|ist(NIL,|
|00000250| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000260| 20 20 20 5b 57 41 5f 4c | 45 46 54 2c 20 20 20 20 | [WA_L|EFT, |
|00000270| 30 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0,. | |
|00000280| 20 20 20 20 20 20 57 41 | 5f 54 4f 50 2c 20 20 20 | WA|_TOP, |
|00000290| 20 20 30 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 | 0,. | |
|000002a0| 20 20 20 20 20 20 20 20 | 57 41 5f 57 49 44 54 48 | |WA_WIDTH|
|000002b0| 2c 20 73 63 72 2e 77 69 | 64 74 68 2c 0a 20 20 20 |, scr.wi|dth,. |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000002d0| 57 41 5f 48 45 49 47 48 | 54 2c 20 73 63 72 2e 68 |WA_HEIGH|T, scr.h|
|000002e0| 65 69 67 68 74 2c 0a 20 | 20 20 20 20 20 20 20 20 |eight,. | |
|000002f0| 20 20 20 20 20 20 20 20 | 20 20 57 41 5f 46 4c 41 | | WA_FLA|
|00000300| 47 53 2c 20 57 46 4c 47 | 5f 42 4f 52 44 45 52 4c |GS, WFLG|_BORDERL|
|00000310| 45 53 53 20 4f 52 20 57 | 46 4c 47 5f 42 41 43 4b |ESS OR W|FLG_BACK|
|00000320| 44 52 4f 50 20 4f 52 20 | 57 46 4c 47 5f 4e 4f 43 |DROP OR |WFLG_NOC|
|00000330| 41 52 45 52 45 46 52 45 | 53 48 2c 0a 2d 3e 20 20 |AREREFRE|SH,.-> |
|00000340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000350| 20 57 41 5f 43 55 53 54 | 4f 4d 53 43 52 45 45 4e | WA_CUST|OMSCREEN|
|00000360| 2c 20 73 63 72 2c 0a 20 | 20 20 20 20 20 20 20 20 |, scr,. | |
|00000370| 20 20 20 20 20 20 20 20 | 20 20 30 2c 30 5d 29 29 | | 0,0]))|
|00000380| 3d 4e 49 4c 20 54 48 45 | 4e 20 52 61 69 73 65 28 |=NIL THE|N Raise(|
|00000390| 22 77 69 6e 22 29 0a 0a | 0a 20 20 62 62 2e 73 65 |"win")..|. bb.se|
|000003a0| 74 61 74 74 72 73 28 5b | 42 42 5f 50 4f 53 58 2c |tattrs([|BB_POSX,|
|000003b0| 20 20 20 20 31 30 2c 0a | 20 20 20 20 20 20 20 20 | 10,.| |
|000003c0| 20 20 20 20 20 20 20 42 | 42 5f 50 4f 53 59 2c 20 | B|B_POSY, |
|000003d0| 20 20 20 31 30 2c 0a 20 | 20 20 20 20 20 20 20 20 | 10,. | |
|000003e0| 20 20 20 20 20 20 42 42 | 5f 57 49 44 54 48 2c 20 | BB|_WIDTH, |
|000003f0| 20 31 30 30 2c 0a 20 20 | 20 20 20 20 20 20 20 20 | 100,. | |
|00000400| 20 20 20 20 20 42 42 5f | 48 45 49 47 48 54 2c 20 | BB_|HEIGHT, |
|00000410| 31 30 30 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |100,. | |
|00000420| 20 20 20 20 42 42 5f 52 | 50 4f 52 54 2c 20 20 73 | BB_R|PORT, s|
|00000430| 63 72 2e 72 61 73 74 70 | 6f 72 74 2c 0a 20 20 20 |cr.rastp|ort,. |
|00000440| 20 20 20 20 20 20 20 20 | 20 20 20 20 42 42 5f 4d | | BB_M|
|00000450| 41 58 58 2c 20 20 20 73 | 63 72 2e 77 69 64 74 68 |AXX, s|cr.width|
|00000460| 2d 31 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |-1,. | |
|00000470| 20 20 20 42 42 5f 4d 41 | 58 59 2c 20 20 20 73 63 | BB_MA|XY, sc|
|00000480| 72 2e 68 65 69 67 68 74 | 2d 31 2c 0a 20 20 20 20 |r.height|-1,. |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 42 42 5f 55 53 | | BB_US|
|000004a0| 45 52 45 4c 2c 20 54 52 | 55 45 2c 0a 20 20 20 20 |EREL, TR|UE,. |
|000004b0| 20 20 20 20 20 20 20 20 | 20 20 20 42 42 5f 44 52 | | BB_DR|
|000004c0| 41 57 2c 20 20 20 7b 6d | 79 64 72 61 77 7d 2c 0a |AW, {m|ydraw},.|
|000004d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 30 | | 0|
|000004e0| 2c 30 5d 29 0a 0a 0a 0a | 0a 20 20 62 62 2e 64 72 |,0])....|. bb.dr|
|000004f0| 61 77 28 29 20 2d 3e 20 | 54 68 65 20 66 69 72 73 |aw() -> |The firs|
|00000500| 74 20 64 72 61 77 20 6f | 6e 20 74 68 65 20 77 69 |t draw o|n the wi|
|00000510| 6e 64 6f 77 2e 0a 0a 20 | 20 4c 4f 4f 50 0a 0a 20 |ndow... | LOOP.. |
|00000520| 20 20 20 52 45 50 45 41 | 54 0a 20 20 20 20 20 20 | REPEA|T. |
|00000530| 44 65 6c 61 79 28 33 29 | 0a 20 20 20 20 20 20 49 |Delay(3)|. I|
|00000540| 46 20 4d 6f 75 73 65 28 | 29 3d 32 20 54 48 45 4e |F Mouse(|)=2 THEN|
|00000550| 20 52 61 69 73 65 28 22 | 48 41 4c 54 22 29 0a 20 | Raise("|HALT"). |
|00000560| 20 20 20 55 4e 54 49 4c | 20 28 4d 6f 75 73 65 28 | UNTIL| (Mouse(|
|00000570| 29 3d 31 20 41 4e 44 20 | 62 62 2e 63 68 65 63 6b |)=1 AND |bb.check|
|00000580| 28 4d 6f 75 73 65 58 28 | 77 69 6e 29 2c 20 4d 6f |(MouseX(|win), Mo|
|00000590| 75 73 65 59 28 77 69 6e | 29 29 29 0a 0a 20 20 20 |useY(win|))).. |
|000005a0| 20 57 48 49 4c 45 20 28 | 4d 6f 75 73 65 28 29 3d | WHILE (|Mouse()=|
|000005b0| 31 29 0a 20 20 20 20 20 | 20 62 62 2e 73 65 74 61 |1). | bb.seta|
|000005c0| 74 74 72 73 28 5b 42 42 | 5f 50 4f 53 58 2c 20 4d |ttrs([BB|_POSX, M|
|000005d0| 6f 75 73 65 58 28 77 69 | 6e 29 2c 20 42 42 5f 50 |ouseX(wi|n), BB_P|
|000005e0| 4f 53 59 2c 20 4d 6f 75 | 73 65 59 28 77 69 6e 29 |OSY, Mou|seY(win)|
|000005f0| 2c 20 30 2c 30 5d 29 0a | 20 20 20 20 20 20 62 62 |, 0,0]).| bb|
|00000600| 2e 64 72 61 77 28 29 0a | 20 20 20 20 45 4e 44 57 |.draw().| ENDW|
|00000610| 48 49 4c 45 0a 0a 20 20 | 45 4e 44 4c 4f 4f 50 0a |HILE.. |ENDLOOP.|
|00000620| 0a 20 20 62 62 2e 64 72 | 61 77 28 46 41 4c 53 45 |. bb.dr|aw(FALSE|
|00000630| 29 0a 0a 2f 2a 0a 20 20 | 62 62 2e 73 65 74 61 74 |)../*. |bb.setat|
|00000640| 74 72 73 28 5b 42 42 5f | 4d 41 58 58 2c 20 20 20 |trs([BB_|MAXX, |
|00000650| 31 30 30 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |100,. | |
|00000660| 20 20 20 20 42 42 5f 4d | 41 58 59 2c 20 20 20 31 | BB_M|AXY, 1|
|00000670| 30 30 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |00,. | |
|00000680| 20 20 20 42 42 5f 57 49 | 44 54 48 2c 20 20 20 38 | BB_WI|DTH, 8|
|00000690| 30 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0,. | |
|000006a0| 20 20 42 42 5f 48 45 49 | 47 48 54 2c 20 20 31 30 | BB_HEI|GHT, 10|
|000006b0| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|000006c0| 20 42 42 5f 50 4f 53 58 | 2c 20 20 20 20 35 30 2c | BB_POSX|, 50,|
|000006d0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000006e0| 42 42 5f 50 4f 53 59 2c | 20 20 20 20 20 30 2c 0a |BB_POSY,| 0,.|
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4e | | N|
|00000700| 49 4c 2c 20 4e 49 4c 5d | 29 0a 2a 2f 0a 0a 45 58 |IL, NIL]|).*/..EX|
|00000710| 43 45 50 54 20 44 4f 0a | 20 20 45 4e 44 20 62 62 |CEPT DO.| END bb|
|00000720| 0a 0a 20 20 49 46 20 77 | 69 6e 20 54 48 45 4e 20 |.. IF w|in THEN |
|00000730| 43 6c 6f 73 65 57 69 6e | 64 6f 77 28 77 69 6e 29 |CloseWin|dow(win)|
|00000740| 0a 20 20 49 46 20 73 63 | 72 20 54 48 45 4e 20 55 |. IF sc|r THEN U|
|00000750| 6e 6c 6f 63 6b 50 75 62 | 53 63 72 65 65 6e 20 28 |nlockPub|Screen (|
|00000760| 4e 49 4c 2c 20 73 63 72 | 29 0a 0a 20 20 49 46 20 |NIL, scr|).. IF |
|00000770| 65 78 63 65 70 74 69 6f | 6e 3c 3e 22 48 41 4c 54 |exceptio|n<>"HALT|
|00000780| 22 20 54 48 45 4e 20 65 | 78 70 6c 61 69 6e 5f 65 |" THEN e|xplain_e|
|00000790| 78 63 65 70 74 69 6f 6e | 28 29 0a 45 4e 44 50 52 |xception|().ENDPR|
|000007a0| 4f 43 0a 0a 50 52 4f 43 | 20 6d 79 64 72 61 77 28 |OC..PROC| mydraw(|
|000007b0| 64 61 74 61 3a 50 54 52 | 20 54 4f 20 62 65 62 6f |data:PTR| TO bebo|
|000007c0| 78 5f 64 61 74 61 2c 20 | 6d 6f 64 65 29 0a 20 20 |x_data, |mode). |
|000007d0| 53 65 74 44 72 4d 64 28 | 64 61 74 61 2e 72 70 2c |SetDrMd(|data.rp,|
|000007e0| 20 32 29 0a 0a 20 20 49 | 46 20 6d 6f 64 65 20 54 | 2).. I|F mode T|
|000007f0| 48 45 4e 20 49 46 20 28 | 64 61 74 61 2e 6f 6c 64 |HEN IF (|data.old|
|00000800| 78 3d 64 61 74 61 2e 78 | 29 20 41 4e 44 20 28 64 |x=data.x|) AND (d|
|00000810| 61 74 61 2e 6f 6c 64 79 | 20 3d 20 64 61 74 61 2e |ata.oldy| = data.|
|00000820| 79 29 20 54 48 45 4e 20 | 52 45 54 55 52 4e 0a 0a |y) THEN |RETURN..|
|00000830| 20 20 49 46 20 64 61 74 | 61 2e 6f 6c 64 78 3c 3e | IF dat|a.oldx<>|
|00000840| 2d 31 0a 20 20 20 20 4d | 6f 76 65 28 64 61 74 61 |-1. M|ove(data|
|00000850| 2e 72 70 2c 20 64 61 74 | 61 2e 6f 6c 64 78 2c 20 |.rp, dat|a.oldx, |
|00000860| 64 61 74 61 2e 6f 6c 64 | 79 29 0a 20 20 20 20 53 |data.old|y). S|
|00000870| 65 74 41 50 65 6e 28 64 | 61 74 61 2e 72 70 2c 20 |etAPen(d|ata.rp, |
|00000880| 64 61 74 61 2e 6f 6c 64 | 63 6f 6c 29 0a 0a 20 20 |data.old|col).. |
|00000890| 20 20 44 72 61 77 28 64 | 61 74 61 2e 72 70 2c 20 | Draw(d|ata.rp, |
|000008a0| 64 61 74 61 2e 6f 6c 64 | 78 20 2b 20 64 61 74 61 |data.old|x + data|
|000008b0| 2e 6f 6c 64 77 2c 20 64 | 61 74 61 2e 6f 6c 64 79 |.oldw, d|ata.oldy|
|000008c0| 29 0a 20 20 20 20 44 72 | 61 77 28 64 61 74 61 2e |). Dr|aw(data.|
|000008d0| 72 70 2c 20 64 61 74 61 | 2e 6f 6c 64 78 20 2b 20 |rp, data|.oldx + |
|000008e0| 64 61 74 61 2e 6f 6c 64 | 77 2c 20 64 61 74 61 2e |data.old|w, data.|
|000008f0| 6f 6c 64 79 20 2b 20 64 | 61 74 61 2e 6f 6c 64 68 |oldy + d|ata.oldh|
|00000900| 29 0a 20 20 20 20 44 72 | 61 77 28 64 61 74 61 2e |). Dr|aw(data.|
|00000910| 72 70 2c 20 64 61 74 61 | 2e 6f 6c 64 78 2c 20 64 |rp, data|.oldx, d|
|00000920| 61 74 61 2e 6f 6c 64 79 | 20 2b 20 64 61 74 61 2e |ata.oldy| + data.|
|00000930| 6f 6c 64 68 29 0a 20 20 | 20 20 44 72 61 77 28 64 |oldh). | Draw(d|
|00000940| 61 74 61 2e 72 70 2c 20 | 64 61 74 61 2e 6f 6c 64 |ata.rp, |data.old|
|00000950| 78 2c 20 64 61 74 61 2e | 6f 6c 64 79 29 0a 0a 20 |x, data.|oldy).. |
|00000960| 20 20 20 44 72 61 77 28 | 64 61 74 61 2e 72 70 2c | Draw(|data.rp,|
|00000970| 20 64 61 74 61 2e 6f 6c | 64 78 20 2b 20 64 61 74 | data.ol|dx + dat|
|00000980| 61 2e 6f 6c 64 77 2c 20 | 64 61 74 61 2e 6f 6c 64 |a.oldw, |data.old|
|00000990| 79 20 2b 20 64 61 74 61 | 2e 6f 6c 64 68 29 0a 20 |y + data|.oldh). |
|000009a0| 20 20 20 4d 6f 76 65 28 | 64 61 74 61 2e 72 70 2c | Move(|data.rp,|
|000009b0| 20 64 61 74 61 2e 6f 6c | 64 78 20 2b 20 64 61 74 | data.ol|dx + dat|
|000009c0| 61 2e 6f 6c 64 77 2c 20 | 64 61 74 61 2e 6f 6c 64 |a.oldw, |data.old|
|000009d0| 79 29 0a 20 20 20 20 44 | 72 61 77 28 64 61 74 61 |y). D|raw(data|
|000009e0| 2e 72 70 2c 20 64 61 74 | 61 2e 6f 6c 64 78 2c 20 |.rp, dat|a.oldx, |
|000009f0| 64 61 74 61 2e 6f 6c 64 | 79 20 2b 20 64 61 74 61 |data.old|y + data|
|00000a00| 2e 6f 6c 64 68 29 0a 20 | 20 20 20 64 61 74 61 2e |.oldh). | data.|
|00000a10| 6f 6c 64 78 3a 3d 2d 31 | 0a 20 20 45 4e 44 49 46 |oldx:=-1|. ENDIF|
|00000a20| 0a 0a 20 20 49 46 20 6d | 6f 64 65 0a 20 20 20 20 |.. IF m|ode. |
|00000a30| 4d 6f 76 65 28 64 61 74 | 61 2e 72 70 2c 20 64 61 |Move(dat|a.rp, da|
|00000a40| 74 61 2e 78 2c 20 64 61 | 74 61 2e 79 29 0a 20 20 |ta.x, da|ta.y). |
|00000a50| 20 20 53 65 74 41 50 65 | 6e 28 64 61 74 61 2e 72 | SetAPe|n(data.r|
|00000a60| 70 2c 20 64 61 74 61 2e | 63 6f 6c 29 0a 20 20 20 |p, data.|col). |
|00000a70| 20 44 72 61 77 28 64 61 | 74 61 2e 72 70 2c 20 64 | Draw(da|ta.rp, d|
|00000a80| 61 74 61 2e 78 20 2b 20 | 64 61 74 61 2e 77 2c 20 |ata.x + |data.w, |
|00000a90| 64 61 74 61 2e 79 29 0a | 20 20 20 20 44 72 61 77 |data.y).| Draw|
|00000aa0| 28 64 61 74 61 2e 72 70 | 2c 20 64 61 74 61 2e 78 |(data.rp|, data.x|
|00000ab0| 20 2b 20 64 61 74 61 2e | 77 2c 20 64 61 74 61 2e | + data.|w, data.|
|00000ac0| 79 20 2b 20 64 61 74 61 | 2e 68 29 0a 20 20 20 20 |y + data|.h). |
|00000ad0| 44 72 61 77 28 64 61 74 | 61 2e 72 70 2c 20 64 61 |Draw(dat|a.rp, da|
|00000ae0| 74 61 2e 78 2c 20 64 61 | 74 61 2e 79 20 2b 20 64 |ta.x, da|ta.y + d|
|00000af0| 61 74 61 2e 68 29 0a 20 | 20 20 20 44 72 61 77 28 |ata.h). | Draw(|
|00000b00| 64 61 74 61 2e 72 70 2c | 20 64 61 74 61 2e 78 2c |data.rp,| data.x,|
|00000b10| 20 64 61 74 61 2e 79 29 | 0a 0a 20 20 20 20 44 72 | data.y)|.. Dr|
|00000b20| 61 77 28 64 61 74 61 2e | 72 70 2c 20 64 61 74 61 |aw(data.|rp, data|
|00000b30| 2e 78 20 2b 20 64 61 74 | 61 2e 77 2c 20 64 61 74 |.x + dat|a.w, dat|
|00000b40| 61 2e 79 20 2b 20 64 61 | 74 61 2e 68 29 0a 20 20 |a.y + da|ta.h). |
|00000b50| 20 20 4d 6f 76 65 28 64 | 61 74 61 2e 72 70 2c 20 | Move(d|ata.rp, |
|00000b60| 64 61 74 61 2e 78 20 2b | 20 64 61 74 61 2e 77 2c |data.x +| data.w,|
|00000b70| 20 64 61 74 61 2e 79 29 | 0a 20 20 20 20 44 72 61 | data.y)|. Dra|
|00000b80| 77 28 64 61 74 61 2e 72 | 70 2c 20 64 61 74 61 2e |w(data.r|p, data.|
|00000b90| 78 2c 20 64 61 74 61 2e | 79 20 2b 20 64 61 74 61 |x, data.|y + data|
|00000ba0| 2e 68 29 0a 0a 20 20 45 | 4e 44 49 46 0a 0a 20 20 |.h).. E|NDIF.. |
|00000bb0| 53 65 74 44 72 4d 64 28 | 64 61 74 61 2e 72 70 2c |SetDrMd(|data.rp,|
|00000bc0| 20 30 29 0a 0a 45 4e 44 | 50 52 4f 43 0a 0a 2e 1a | 0)..END|PROC....|
|00000bd0| 2d 6c 68 30 2d 7c 05 00 | 00 7c 05 00 00 29 ae 29 |-lh0-|..|.|...).)|
|00000be0| 23 02 00 18 53 72 63 5c | 41 66 63 5c 43 68 61 6e |#...Src\|Afc\Chan|
|00000bf0| 67 65 5f 45 78 61 6d 70 | 6c 65 2e 65 4c 43 2f 2a |ge_Examp|le.eLC/*|
|00000c00| 0a 2a 2a 20 53 74 72 69 | 6e 67 4e 6f 64 65 20 45 |.** Stri|ngNode E|
|00000c10| 78 61 6d 70 6c 65 2d 35 | 0a 2a 2a 0a 2a 2a 20 61 |xample-5|.**.** a|
|00000c20| 64 64 28 29 2c 20 73 65 | 61 72 63 68 28 29 2c 20 |dd(), se|arch(), |
|00000c30| 63 6c 65 61 72 28 29 20 | 41 4e 44 20 63 68 61 6e |clear() |AND chan|
|00000c40| 67 65 28 29 20 6d 65 74 | 68 6f 64 73 2e 0a 2a 2a |ge() met|hods..**|
|00000c50| 0a 2a 2a 20 28 43 29 43 | 6f 70 79 72 69 67 68 74 |.** (C)C|opyright|
|00000c60| 20 31 39 39 36 2f 39 37 | 20 41 6d 69 67 61 20 46 | 1996/97| Amiga F|
|00000c70| 6f 75 6e 64 61 74 69 6f | 6e 20 43 6c 61 73 73 65 |oundatio|n Classe|
|00000c80| 73 0a 2a 2a 0a 2a 2a 20 | 53 65 65 3a 20 68 74 74 |s.**.** |See: htt|
|00000c90| 70 3a 2f 2f 77 77 77 2e | 69 6e 74 65 72 63 6f 6d |p://www.|intercom|
|00000ca0| 2e 69 74 2f 7e 66 73 6f | 66 74 2f 61 66 63 2e 68 |.it/~fso|ft/afc.h|
|00000cb0| 74 6d 6c 0a 2a 2a 0a 2a | 2a 20 20 20 20 20 20 46 |tml.**.*|* F|
|00000cc0| 4f 52 20 6d 6f 72 65 20 | 69 6e 66 6f 20 61 62 6f |OR more |info abo|
|00000cd0| 75 74 20 41 46 43 20 41 | 4e 44 20 6d 6f 72 65 20 |ut AFC A|ND more |
|00000ce0| 6d 6f 64 75 6c 65 73 0a | 2a 2f 0a 0a 4d 4f 44 55 |modules.|*/..MODU|
|00000cf0| 4c 45 20 27 61 66 63 2f | 53 74 72 69 6e 67 4e 6f |LE 'afc/|StringNo|
|00000d00| 64 65 27 2c 20 20 20 2d | 3e 20 4f 75 72 20 4d 41 |de', -|> Our MA|
|00000d10| 47 49 43 20 4d 4f 44 55 | 4c 45 0a 20 20 20 20 20 |GIC MODU|LE. |
|00000d20| 20 20 27 61 66 63 2f 65 | 78 70 6c 61 69 6e 5f 65 | 'afc/e|xplain_e|
|00000d30| 78 63 65 70 74 69 6f 6e | 27 0a 0a 50 52 4f 43 20 |xception|'..PROC |
|00000d40| 6d 61 69 6e 28 29 20 48 | 41 4e 44 4c 45 0a 20 20 |main() H|ANDLE. |
|00000d50| 44 45 46 20 6e 3a 50 54 | 52 20 54 4f 20 73 74 72 |DEF n:PT|R TO str|
|00000d60| 69 6e 67 6e 6f 64 65 20 | 20 20 20 20 20 2d 3e 20 |ingnode | -> |
|00000d70| 54 68 69 73 20 69 73 20 | 6f 75 72 20 4f 42 4a 45 |This is |our OBJE|
|00000d80| 43 54 20 69 6e 73 74 61 | 6e 63 65 0a 0a 20 20 4e |CT insta|nce.. N|
|00000d90| 45 57 20 6e 2e 73 74 72 | 69 6e 67 6e 6f 64 65 28 |EW n.str|ingnode(|
|00000da0| 29 20 20 20 20 20 20 20 | 20 20 20 20 2d 3e 20 4f |) | -> O|
|00000db0| 42 4a 45 43 54 20 69 6e | 69 74 69 61 6c 69 7a 61 |BJECT in|itializa|
|00000dc0| 74 69 6f 6e 0a 0a 20 20 | 6e 2e 61 64 64 28 27 5a |tion.. |n.add('Z|
|00000dd0| 6f 72 72 6f 27 29 20 20 | 20 20 20 20 20 20 20 20 |orro') | |
|00000de0| 20 20 20 20 2d 3e 20 48 | 65 72 65 20 77 65 20 61 | -> H|ere we a|
|00000df0| 64 64 20 73 6f 6d 65 20 | 69 74 65 6d 73 2e 2e 2e |dd some |items...|
|00000e00| 0a 20 20 6e 2e 61 64 64 | 28 27 42 61 74 6d 61 6e |. n.add|('Batman|
|00000e10| 27 29 0a 20 20 6e 2e 61 | 64 64 28 27 53 75 70 65 |'). n.a|dd('Supe|
|00000e20| 72 6d 61 6e 27 29 0a 20 | 20 6e 2e 61 64 64 28 27 |rman'). | n.add('|
|00000e30| 47 6f 6c 64 20 44 72 61 | 6b 65 27 29 0a 20 20 6e |Gold Dra|ke'). n|
|00000e40| 2e 61 64 64 28 27 4d 61 | 6e 64 72 61 6b 65 27 29 |.add('Ma|ndrake')|
|00000e50| 0a 20 20 6e 2e 61 64 64 | 28 27 4d 4f 4d 4d 59 27 |. n.add|('MOMMY'|
|00000e60| 29 0a 0a 20 20 73 68 77 | 61 6c 6c 28 6e 29 20 20 |).. shw|all(n) |
|00000e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e80| 20 2d 3e 20 48 65 72 65 | 20 77 65 20 73 65 65 20 | -> Here| we see |
|00000e90| 74 68 65 6d 0a 0a 20 20 | 6e 2e 73 65 61 72 63 68 |them.. |n.search|
|00000ea0| 28 27 6d 6f 6d 6d 27 29 | 20 20 20 20 20 20 20 20 |('momm')| |
|00000eb0| 20 20 20 20 20 2d 3e 20 | 54 68 65 20 73 65 61 72 | -> |The sear|
|00000ec0| 63 68 20 69 73 20 43 41 | 53 45 20 69 6e 73 65 6e |ch is CA|SE insen|
|00000ed0| 73 69 74 69 76 65 20 41 | 4e 44 20 6d 61 74 63 68 |sitive A|ND match|
|00000ee0| 20 74 68 65 20 66 69 72 | 73 74 20 6f 6e 65 20 3b | the fir|st one ;|
|00000ef0| 29 0a 20 20 57 72 69 74 | 65 46 28 27 43 75 72 72 |). Writ|eF('Curr|
|00000f00| 65 6e 74 3a 5c 73 5c 6e | 27 2c 20 6e 2e 6f 62 6a |ent:\s\n|', n.obj|
|00000f10| 28 29 29 20 2d 3e 20 48 | 65 72 65 20 77 65 20 61 |()) -> H|ere we a|
|00000f20| 72 65 21 0a 0a 20 20 6e | 2e 63 68 61 6e 67 65 28 |re!.. n|.change(|
|00000f30| 27 4d 79 20 4d 6f 6d 6d | 79 27 29 20 20 20 20 20 |'My Momm|y') |
|00000f40| 20 20 2d 3e 20 57 6f 77 | 21 20 4e 6f 77 20 4d 4f | -> Wow|! Now MO|
|00000f50| 4d 4d 59 20 69 73 20 4d | 79 20 4d 6f 6d 6d 79 21 |MMY is M|y Mommy!|
|00000f60| 21 21 0a 20 20 73 68 77 | 61 6c 6c 28 6e 29 0a 0a |!!. shw|all(n)..|
|00000f70| 20 20 6e 2e 63 6c 65 61 | 72 28 29 20 20 20 20 20 | n.clea|r() |
|00000f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 3e 20 | | -> |
|00000f90| 45 6d 70 74 79 20 53 74 | 72 69 6e 67 4e 6f 64 65 |Empty St|ringNode|
|00000fa0| 21 0a 20 20 73 68 77 61 | 6c 6c 28 6e 29 0a 0a 45 |!. shwa|ll(n)..E|
|00000fb0| 58 43 45 50 54 20 44 4f | 0a 20 20 65 78 70 6c 61 |XCEPT DO|. expla|
|00000fc0| 69 6e 5f 65 78 63 65 70 | 74 69 6f 6e 28 29 0a 20 |in_excep|tion(). |
|00000fd0| 20 45 4e 44 20 6e 20 20 | 20 20 20 20 20 20 20 20 | END n | |
|00000fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 3e 20 | | -> |
|00000ff0| 52 65 6d 65 6d 62 65 72 | 20 41 4c 57 41 59 53 20 |Remember| ALWAYS |
|00001000| 54 4f 20 65 6e 64 20 61 | 6e 20 4f 42 4a 45 43 54 |TO end a|n OBJECT|
|00001010| 0a 20 20 43 6c 65 61 6e | 55 70 28 30 29 0a 45 4e |. Clean|Up(0).EN|
|00001020| 44 50 52 4f 43 0a 0a 50 | 52 4f 43 20 73 68 77 61 |DPROC..P|ROC shwa|
|00001030| 6c 6c 28 6e 3a 50 54 52 | 20 54 4f 20 73 74 72 69 |ll(n:PTR| TO stri|
|00001040| 6e 67 6e 6f 64 65 29 0a | 20 20 57 72 69 74 65 46 |ngnode).| WriteF|
|00001050| 28 27 2d 2d 2d 2d 2d 2d | 2d 20 5c 64 20 2d 2d 2d |('------|- \d ---|
|00001060| 2d 2d 2d 2d 2d 2d 2d 5c | 6e 27 2c 20 6e 2e 6e 75 |-------\|n', n.nu|
|00001070| 6d 69 74 65 6d 73 28 29 | 29 0a 0a 20 20 49 46 20 |mitems()|).. IF |
|00001080| 6e 2e 66 69 72 73 74 28 | 29 20 20 20 20 20 20 20 |n.first(|) |
|00001090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|000010a0| 3e 20 48 65 72 65 20 77 | 65 20 67 6f 20 54 4f 20 |> Here w|e go TO |
|000010b0| 74 68 65 20 66 69 72 73 | 74 20 6e 6f 64 65 20 69 |the firs|t node i|
|000010c0| 74 65 6d 0a 20 20 20 20 | 52 45 50 45 41 54 0a 20 |tem. |REPEAT. |
|000010d0| 20 20 20 20 20 57 72 69 | 74 65 46 28 27 4e 6f 64 | Wri|teF('Nod|
|000010e0| 65 3a 5c 73 5c 6e 27 2c | 20 6e 2e 6f 62 6a 28 29 |e:\s\n',| n.obj()|
|000010f0| 29 20 2d 3e 20 4e 6f 64 | 65 20 53 54 52 49 4e 47 |) -> Nod|e STRING|
|00001100| 2e 2e 2e 0a 20 20 20 20 | 55 4e 54 49 4c 20 6e 2e |.... |UNTIL n.|
|00001110| 73 75 63 63 28 29 20 3d | 20 46 41 4c 53 45 20 20 |succ() =| FALSE |
|00001120| 20 20 20 20 20 20 20 20 | 2d 3e 20 4c 4f 4f 50 20 | |-> LOOP |
|00001130| 55 4e 54 49 4c 20 74 68 | 65 20 65 6e 64 0a 20 20 |UNTIL th|e end. |
|00001140| 45 4c 53 45 0a 20 20 20 | 20 57 72 69 74 65 46 28 |ELSE. | WriteF(|
|00001150| 27 4e 6f 20 4e 6f 64 65 | 73 20 69 6e 20 4c 49 53 |'No Node|s in LIS|
|00001160| 54 2e 2e 2e 5c 6e 27 29 | 0a 20 20 45 4e 44 49 46 |T...\n')|. ENDIF|
|00001170| 0a 45 4e 44 50 52 4f 43 | 0a 0a 32 96 2d 6c 68 30 |.ENDPROC|..2.-lh0|
|00001180| 2d 1a 06 00 00 1a 06 00 | 00 a3 aa 29 23 02 00 1c |-.......|...)#...|
|00001190| 53 72 63 5c 41 66 63 5c | 44 69 73 70 6c 61 79 65 |Src\Afc\|Displaye|
|000011a0| 72 5f 45 78 61 6d 70 6c | 65 31 2e 65 67 54 2f 2a |r_Exampl|e1.egT/*|
|000011b0| 0a 0a 20 20 24 56 45 52 | 3a 20 44 69 73 70 6c 61 |.. $VER|: Displa|
|000011c0| 79 65 72 20 45 78 61 6d | 70 6c 65 20 31 20 2d 20 |yer Exam|ple 1 - |
|000011d0| 28 43 29 41 6d 69 67 61 | 20 46 6f 75 6e 64 61 74 |(C)Amiga| Foundat|
|000011e0| 69 6f 6e 20 43 6c 61 73 | 73 65 73 0a 0a 20 20 57 |ion Clas|ses.. W|
|000011f0| 72 69 74 74 65 6e 20 42 | 79 3a 20 41 6e 64 72 65 |ritten B|y: Andre|
|00001200| 61 20 47 61 6c 69 6d 62 | 65 72 74 69 0a 0a 20 20 |a Galimb|erti.. |
|00001210| 54 68 69 73 20 63 6f 64 | 65 20 69 73 20 50 75 62 |This cod|e is Pub|
|00001220| 6c 69 63 20 44 6f 6d 61 | 69 6e 0a 0a 2a 2f 0a 0a |lic Doma|in..*/..|
|00001230| 0a 4d 4f 44 55 4c 45 20 | 27 41 46 43 2f 64 69 73 |.MODULE |'AFC/dis|
|00001240| 70 6c 61 79 65 72 27 2c | 27 61 66 63 2f 65 78 70 |player',|'afc/exp|
|00001250| 6c 61 69 6e 5f 65 78 63 | 65 70 74 69 6f 6e 27 2c |lain_exc|eption',|
|00001260| 0a 20 20 20 20 20 20 20 | 27 67 72 61 70 68 69 63 |. |'graphic|
|00001270| 73 2f 6d 6f 64 65 69 64 | 27 0a 0a 0a 50 52 4f 43 |s/modeid|'...PROC|
|00001280| 20 6d 61 69 6e 28 29 20 | 48 41 4e 44 4c 45 0a 20 | main() |HANDLE. |
|00001290| 20 44 45 46 20 6d 79 76 | 69 65 77 3d 4e 49 4c 3a | DEF myv|iew=NIL:|
|000012a0| 50 54 52 20 54 4f 20 64 | 69 73 70 6c 61 79 65 72 |PTR TO d|isplayer|
|000012b0| 0a 20 20 44 45 46 20 76 | 70 31 2c 20 76 70 32 0a |. DEF v|p1, vp2.|
|000012c0| 20 20 44 45 46 20 72 70 | 31 3d 4e 49 4c 2c 20 72 | DEF rp|1=NIL, r|
|000012d0| 70 32 3d 4e 49 4c 0a 0a | 20 20 4e 45 57 20 6d 79 |p2=NIL..| NEW my|
|000012e0| 76 69 65 77 2e 64 69 73 | 70 6c 61 79 65 72 28 29 |view.dis|player()|
|000012f0| 20 20 2d 3e 20 63 72 65 | 61 74 65 20 74 68 65 20 | -> cre|ate the |
|00001300| 4f 42 4a 45 43 54 0a 0a | 20 20 6d 79 76 69 65 77 |OBJECT..| myview|
|00001310| 2e 61 64 64 28 5b 56 50 | 4f 52 54 5f 54 4f 50 2c |.add([VP|ORT_TOP,|
|00001320| 30 2c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d |0, | -|
|00001330| 3e 20 61 64 64 20 76 69 | 65 77 70 6f 72 74 73 0a |> add vi|ewports.|
|00001340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 56 50 | | VP|
|00001350| 4f 52 54 5f 4c 45 46 54 | 2c 30 2c 0a 20 20 20 20 |ORT_LEFT|,0,. |
|00001360| 20 20 20 20 20 20 20 20 | 20 20 56 50 4f 52 54 5f | | VPORT_|
|00001370| 57 49 44 54 48 2c 36 34 | 30 2c 0a 20 20 20 20 20 |WIDTH,64|0,. |
|00001380| 20 20 20 20 20 20 20 20 | 20 56 50 4f 52 54 5f 48 | | VPORT_H|
|00001390| 45 49 47 48 54 2c 31 32 | 38 2c 0a 20 20 20 20 20 |EIGHT,12|8,. |
|000013a0| 20 20 20 20 20 20 20 20 | 20 56 50 4f 52 54 5f 44 | | VPORT_D|
|000013b0| 45 50 54 48 2c 33 2c 0a | 20 20 20 20 20 20 20 20 |EPTH,3,.| |
|000013c0| 20 20 20 20 20 20 56 50 | 4f 52 54 5f 4d 4f 44 45 | VP|ORT_MODE|
|000013d0| 2c 48 49 52 45 53 5f 4b | 45 59 2c 0a 20 20 20 20 |,HIRES_K|EY,. |
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 4e 49 4c 5d 29 0a | | NIL]).|
|000013f0| 0a 20 20 6d 79 76 69 65 | 77 2e 61 64 64 28 5b 56 |. myvie|w.add([V|
|00001400| 50 4f 52 54 5f 54 4f 50 | 2c 31 34 30 2c 0a 20 20 |PORT_TOP|,140,. |
|00001410| 20 20 20 20 20 20 20 20 | 20 20 20 20 56 50 4f 52 | | VPOR|
|00001420| 54 5f 4c 45 46 54 2c 30 | 2c 0a 20 20 20 20 20 20 |T_LEFT,0|,. |
|00001430| 20 20 20 20 20 20 20 20 | 56 50 4f 52 54 5f 57 49 | |VPORT_WI|
|00001440| 44 54 48 2c 33 32 30 2c | 0a 20 20 20 20 20 20 20 |DTH,320,|. |
|00001450| 20 20 20 20 20 20 20 56 | 50 4f 52 54 5f 48 45 49 | V|PORT_HEI|
|00001460| 47 48 54 2c 31 30 30 2c | 0a 20 20 20 20 20 20 20 |GHT,100,|. |
|00001470| 20 20 20 20 20 20 20 56 | 50 4f 52 54 5f 44 45 50 | V|PORT_DEP|
|00001480| 54 48 2c 33 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |TH,3,. | |
|00001490| 20 20 20 20 56 50 4f 52 | 54 5f 4d 4f 44 45 2c 4c | VPOR|T_MODE,L|
|000014a0| 4f 52 45 53 5f 4b 45 59 | 2c 0a 20 20 20 20 20 20 |ORES_KEY|,. |
|000014b0| 20 20 20 20 20 20 20 20 | 4e 49 4c 5d 29 0a 0a 20 | |NIL]).. |
|000014c0| 20 6d 79 76 69 65 77 2e | 73 65 74 75 70 28 44 45 | myview.|setup(DE|
|000014d0| 46 41 55 4c 54 5f 4d 4f | 4e 49 54 4f 52 5f 49 44 |FAULT_MO|NITOR_ID|
|000014e0| 29 20 20 20 2d 3e 20 62 | 75 69 6c 64 20 73 79 73 |) -> b|uild sys|
|000014f0| 74 65 6d 20 73 74 72 75 | 63 74 75 72 65 73 0a 0a |tem stru|ctures..|
|00001500| 20 20 6d 79 76 69 65 77 | 2e 73 68 6f 77 28 29 20 | myview|.show() |
|00001510| 20 20 2d 3e 20 73 68 6f | 77 20 4e 45 57 20 76 69 | -> sho|w NEW vi|
|00001520| 65 77 20 28 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ew (auto|maticall|
|00001530| 79 20 73 74 6f 72 65 73 | 20 74 68 65 20 6f 6c 64 |y stores| the old|
|00001540| 20 76 69 65 77 29 0a 0a | 20 20 72 70 31 3a 3d 6d | view)..| rp1:=m|
|00001550| 79 76 69 65 77 2e 72 61 | 73 74 70 6f 72 74 28 30 |yview.ra|stport(0|
|00001560| 29 20 20 2d 3e 20 67 65 | 74 20 50 54 52 20 54 4f |) -> ge|t PTR TO|
|00001570| 20 72 61 73 74 70 6f 72 | 74 20 41 4e 44 20 76 69 | rastpor|t AND vi|
|00001580| 65 77 70 6f 72 74 20 73 | 79 73 74 65 6d 0a 20 20 |ewport s|ystem. |
|00001590| 72 70 32 3a 3d 6d 79 76 | 69 65 77 2e 72 61 73 74 |rp2:=myv|iew.rast|
|000015a0| 70 6f 72 74 28 31 29 20 | 20 2d 3e 20 73 74 72 75 |port(1) | -> stru|
|000015b0| 63 74 75 72 65 73 20 4f | 46 20 74 68 65 20 74 77 |ctures O|F the tw|
|000015c0| 6f 20 76 69 65 77 70 6f | 72 74 73 2e 0a 20 20 76 |o viewpo|rts.. v|
|000015d0| 70 31 3a 3d 6d 79 76 69 | 65 77 2e 76 69 65 77 70 |p1:=myvi|ew.viewp|
|000015e0| 6f 72 74 28 30 29 20 20 | 2d 3e 20 49 6e 64 69 63 |ort(0) |-> Indic|
|000015f0| 65 73 20 72 65 66 65 72 | 20 54 4f 20 74 68 65 20 |es refer| TO the |
|00001600| 6f 72 64 65 72 20 69 6e | 20 77 68 69 63 68 20 74 |order in| which t|
|00001610| 68 65 20 74 77 6f 0a 20 | 20 76 70 32 3a 3d 6d 79 |he two. | vp2:=my|
|00001620| 76 69 65 77 2e 76 69 65 | 77 70 6f 72 74 28 31 29 |view.vie|wport(1)|
|00001630| 20 20 2d 3e 20 76 69 65 | 77 70 6f 72 74 73 20 68 | -> vie|wports h|
|00001640| 61 76 65 20 62 65 65 6e | 20 61 64 64 65 64 2e 0a |ave been| added..|
|00001650| 0a 20 20 53 65 74 52 61 | 73 74 28 72 70 31 2c 33 |. SetRa|st(rp1,3|
|00001660| 29 0a 20 20 53 65 74 52 | 61 73 74 28 72 70 32 2c |). SetR|ast(rp2,|
|00001670| 34 29 0a 0a 20 20 53 65 | 74 52 47 42 34 28 76 70 |4).. Se|tRGB4(vp|
|00001680| 31 2c 32 2c 31 35 2c 31 | 35 2c 31 35 29 0a 20 20 |1,2,15,1|5,15). |
|00001690| 53 65 74 41 50 65 6e 28 | 72 70 31 2c 32 29 0a 20 |SetAPen(|rp1,2). |
|000016a0| 20 4d 6f 76 65 28 72 70 | 31 2c 31 30 2c 31 30 29 | Move(rp|1,10,10)|
|000016b0| 0a 20 20 54 65 78 74 28 | 72 70 31 2c 27 46 69 72 |. Text(|rp1,'Fir|
|000016c0| 73 74 20 28 48 69 72 65 | 73 29 20 56 69 65 77 50 |st (Hire|s) ViewP|
|000016d0| 6f 72 74 27 2c 32 32 29 | 0a 20 20 53 65 74 52 47 |ort',22)|. SetRG|
|000016e0| 42 34 28 76 70 32 2c 32 | 2c 30 2c 30 2c 31 35 29 |B4(vp2,2|,0,0,15)|
|000016f0| 0a 20 20 53 65 74 41 50 | 65 6e 28 72 70 32 2c 32 |. SetAP|en(rp2,2|
|00001700| 29 0a 20 20 4d 6f 76 65 | 28 72 70 32 2c 31 30 2c |). Move|(rp2,10,|
|00001710| 31 30 29 0a 20 20 54 65 | 78 74 28 72 70 32 2c 27 |10). Te|xt(rp2,'|
|00001720| 53 65 63 6f 6e 64 20 28 | 4c 6f 77 72 65 73 29 20 |Second (|Lowres) |
|00001730| 56 69 65 77 50 6f 72 74 | 27 2c 32 34 29 0a 0a 20 |ViewPort|',24).. |
|00001740| 20 52 45 50 45 41 54 0a | 20 20 20 20 44 65 6c 61 | REPEAT.| Dela|
|00001750| 79 28 35 29 0a 20 20 55 | 4e 54 49 4c 20 4d 6f 75 |y(5). U|NTIL Mou|
|00001760| 73 65 28 29 0a 20 20 6d | 79 76 69 65 77 2e 73 68 |se(). m|yview.sh|
|00001770| 6f 77 4f 6c 64 56 69 65 | 77 28 29 20 20 2d 3e 20 |owOldVie|w() -> |
|00001780| 72 65 73 74 6f 72 65 20 | 6f 6c 64 20 76 69 65 77 |restore |old view|
|00001790| 0a 0a 45 58 43 45 50 54 | 20 44 4f 0a 20 20 45 4e |..EXCEPT| DO. EN|
|000017a0| 44 20 6d 79 76 69 65 77 | 0a 20 20 65 78 70 6c 61 |D myview|. expla|
|000017b0| 69 6e 5f 65 78 63 65 70 | 74 69 6f 6e 28 29 0a 45 |in_excep|tion().E|
|000017c0| 4e 44 50 52 4f 43 0a 0a | 32 02 2d 6c 68 30 2d 1a |NDPROC..|2.-lh0-.|
|000017d0| 10 00 00 1a 10 00 00 bb | aa 29 23 02 00 1c 53 72 |........|.)#...Sr|
|000017e0| 63 5c 41 66 63 5c 44 69 | 73 70 6c 61 79 65 72 5f |c\Afc\Di|splayer_|
|000017f0| 45 78 61 6d 70 6c 65 32 | 2e 65 0e ec 0a 2f 2a 0a |Example2|.e.../*.|
|00001800| 20 20 24 56 45 52 3a 20 | 44 69 73 70 6c 61 79 65 | $VER: |Displaye|
|00001810| 72 5f 45 78 61 6d 70 6c | 65 20 32 20 2d 20 28 43 |r_Exampl|e 2 - (C|
|00001820| 29 43 6f 70 79 72 69 67 | 68 74 20 41 6d 69 67 61 |)Copyrig|ht Amiga|
|00001830| 20 46 6f 75 6e 64 61 74 | 69 6f 6e 20 43 6c 61 73 | Foundat|ion Clas|
|00001840| 73 65 73 0a 0a 20 20 57 | 72 69 74 74 65 6e 20 42 |ses.. W|ritten B|
|00001850| 79 3a 20 41 6e 64 72 65 | 61 20 47 61 6c 69 6d 62 |y: Andre|a Galimb|
|00001860| 65 72 74 69 0a 0a 20 20 | 54 68 69 73 20 49 53 20 |erti.. |This IS |
|00001870| 61 20 63 6f 6d 70 6c 65 | 74 65 20 65 78 61 6d 70 |a comple|te examp|
|00001880| 6c 65 20 74 68 61 74 20 | 65 78 70 6c 6f 69 74 73 |le that |exploits|
|00001890| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 6d | the fol|lowing m|
|000018a0| 6f 64 75 6c 65 73 20 62 | 65 6c 6f 6e 67 69 6e 67 |odules b|elonging|
|000018b0| 0a 20 20 54 4f 20 74 68 | 65 20 41 6d 69 67 61 20 |. TO th|e Amiga |
|000018c0| 46 6f 75 6e 64 61 74 69 | 6f 6e 20 43 6c 61 73 73 |Foundati|on Class|
|000018d0| 65 73 3a 20 44 69 73 70 | 6c 61 79 65 72 2c 20 4d |es: Disp|layer, M|
|000018e0| 6f 75 73 65 70 6f 69 6e | 74 65 72 20 28 41 4e 44 |ousepoin|ter (AND|
|000018f0| 20 73 6f 20 48 61 72 64 | 73 70 72 69 74 65 29 2e | so Hard|sprite).|
|00001900| 0a 0a 20 20 53 65 65 20 | 68 6f 77 20 74 68 65 20 |.. See |how the |
|00001910| 6d 6f 75 73 65 20 70 6f | 69 6e 74 65 72 20 61 75 |mouse po|inter au|
|00001920| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 72 65 73 63 |tomatica|lly resc|
|00001930| 61 6c 65 73 20 69 74 73 | 20 6d 6f 76 65 6d 65 6e |ales its| movemen|
|00001940| 74 73 20 54 4f 20 66 69 | 74 0a 20 20 74 68 65 20 |ts TO fi|t. the |
|00001950| 63 68 61 6e 67 69 6e 67 | 20 72 65 73 6f 6c 75 74 |changing| resolut|
|00001960| 69 6f 6e 3b 20 74 68 65 | 20 70 6f 69 6e 74 65 72 |ion; the| pointer|
|00001970| 20 73 70 72 69 74 65 20 | 49 53 20 62 6f 75 6e 64 | sprite |IS bound|
|00001980| 65 64 20 54 4f 20 74 68 | 65 0a 20 20 64 69 6d 65 |ed TO th|e. dime|
|00001990| 6e 73 69 6f 6e 73 20 4f | 46 20 74 68 65 20 76 69 |nsions O|F the vi|
|000019a0| 65 77 70 6f 72 74 73 20 | 69 74 20 6d 6f 76 65 73 |ewports |it moves|
|000019b0| 20 69 6e 74 6f 2e 0a 0a | 20 20 59 6f 75 20 63 61 | into...| You ca|
|000019c0| 6e 20 73 63 72 6f 6c 6c | 20 74 68 65 20 74 6f 70 |n scroll| the top|
|000019d0| 6d 6f 73 74 20 62 69 74 | 6d 61 70 20 62 65 63 61 |most bit|map beca|
|000019e0| 75 73 65 20 69 74 27 73 | 20 62 69 67 67 65 72 20 |use it's| bigger |
|000019f0| 74 68 61 6e 20 74 68 65 | 20 76 69 65 77 70 6f 72 |than the| viewpor|
|00001a00| 74 0a 20 20 69 74 27 73 | 20 64 69 73 70 6c 61 79 |t. it's| display|
|00001a10| 65 64 20 69 6e 2e 0a 2a | 2f 0a 0a 4d 4f 44 55 4c |ed in..*|/..MODUL|
|00001a20| 45 20 27 67 72 61 70 68 | 69 63 73 2f 6d 6f 64 65 |E 'graph|ics/mode|
|00001a30| 69 64 27 2c 0a 20 20 20 | 20 20 20 20 27 69 6e 74 |id',. | 'int|
|00001a40| 75 69 74 69 6f 6e 2f 69 | 6e 74 75 69 74 69 6f 6e |uition/i|ntuition|
|00001a50| 27 2c 0a 20 20 20 20 20 | 20 20 27 41 46 43 2f 64 |',. | 'AFC/d|
|00001a60| 69 73 70 6c 61 79 65 72 | 27 2c 0a 20 20 20 20 20 |isplayer|',. |
|00001a70| 20 20 27 41 46 43 2f 6d | 6f 75 73 65 70 6f 69 6e | 'AFC/m|ousepoin|
|00001a80| 74 65 72 27 2c 0a 20 20 | 20 20 20 20 20 27 41 46 |ter',. | 'AF|
|00001a90| 43 2f 65 78 70 6c 61 69 | 6e 5f 65 78 63 65 70 74 |C/explai|n_except|
|00001aa0| 69 6f 6e 27 0a 0a 0a 50 | 52 4f 43 20 6d 61 69 6e |ion'...P|ROC main|
|00001ab0| 28 29 20 48 41 4e 44 4c | 45 0a 20 20 44 45 46 20 |() HANDL|E. DEF |
|00001ac0| 6d 79 76 69 65 77 3d 4e | 49 4c 3a 50 54 52 20 54 |myview=N|IL:PTR T|
|00001ad0| 4f 20 64 69 73 70 6c 61 | 79 65 72 0a 20 20 44 45 |O displa|yer. DE|
|00001ae0| 46 20 76 70 31 3d 4e 49 | 4c 2c 20 76 70 32 3d 4e |F vp1=NI|L, vp2=N|
|00001af0| 49 4c 0a 20 20 44 45 46 | 20 72 70 31 3d 4e 49 4c |IL. DEF| rp1=NIL|
|00001b00| 2c 20 72 70 32 3d 4e 49 | 4c 0a 20 20 44 45 46 20 |, rp2=NI|L. DEF |
|00001b10| 77 69 6e 3d 4e 49 4c 3a | 50 54 52 20 54 4f 20 77 |win=NIL:|PTR TO w|
|00001b20| 69 6e 64 6f 77 2c 20 70 | 6f 69 3a 50 54 52 20 54 |indow, p|oi:PTR T|
|00001b30| 4f 20 49 4e 54 0a 20 20 | 44 45 46 20 74 6f 70 6f |O INT. |DEF topo|
|00001b40| 3a 50 54 52 20 54 4f 20 | 6d 6f 75 73 65 70 6f 69 |:PTR TO |mousepoi|
|00001b50| 6e 74 65 72 2c 20 76 70 | 0a 20 20 44 45 46 20 72 |nter, vp|. DEF r|
|00001b60| 78 3d 30 0a 0a 20 20 4e | 45 57 20 74 6f 70 6f 2e |x=0.. N|EW topo.|
|00001b70| 6d 6f 75 73 65 70 6f 69 | 6e 74 65 72 28 32 29 0a |mousepoi|nter(2).|
|00001b80| 0a 20 20 74 6f 70 6f 2e | 69 6d 61 67 65 28 31 31 |. topo.|image(11|
|00001b90| 2c 5b 24 30 30 38 30 2c | 24 30 30 38 30 2c 0a 20 |,[$0080,|$0080,. |
|00001ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bb0| 24 30 30 38 30 2c 24 30 | 30 38 30 2c 0a 20 20 20 |$0080,$0|080,. |
|00001bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 24 30 | | $0|
|00001bd0| 30 38 30 2c 24 30 30 38 | 30 2c 0a 20 20 20 20 20 |080,$008|0,. |
|00001be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 24 30 30 38 | | $008|
|00001bf0| 30 2c 24 30 30 38 30 2c | 0a 20 20 20 20 20 20 20 |0,$0080,|. |
|00001c00| 20 20 20 20 20 20 20 20 | 20 20 24 30 30 38 30 2c | | $0080,|
|00001c10| 24 30 30 38 30 2c 0a 20 | 20 20 20 20 20 20 20 20 |$0080,. | |
|00001c20| 20 20 20 20 20 20 20 20 | 24 31 46 37 43 2c 24 31 | |$1F7C,$1|
|00001c30| 46 37 43 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |F7C,. | |
|00001c40| 20 20 20 20 20 20 24 30 | 30 38 30 2c 24 30 30 38 | $0|080,$008|
|00001c50| 30 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0,. | |
|00001c60| 20 20 20 20 24 30 30 38 | 30 2c 24 30 30 38 30 2c | $008|0,$0080,|
|00001c70| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001c80| 20 20 24 30 30 38 30 2c | 24 30 30 38 30 2c 0a 20 | $0080,|$0080,. |
|00001c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ca0| 24 30 30 38 30 2c 24 30 | 30 38 30 2c 0a 20 20 20 |$0080,$0|080,. |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 24 30 | | $0|
|00001cc0| 30 38 30 2c 24 30 30 38 | 30 5d 3a 49 4e 54 29 0a |080,$008|0]:INT).|
|00001cd0| 0a 20 20 74 6f 70 6f 2e | 68 6f 74 73 70 6f 74 28 |. topo.|hotspot(|
|00001ce0| 31 38 2c 36 29 20 20 2d | 3e 20 74 68 65 20 6d 6f |18,6) -|> the mo|
|00001cf0| 75 73 65 20 73 74 61 72 | 74 73 20 66 72 6f 6d 20 |use star|ts from |
|00001d00| 74 68 65 20 74 6f 70 6d | 6f 73 74 20 76 69 65 77 |the topm|ost view|
|00001d10| 70 6f 72 74 2c 20 73 6f | 0a 20 20 20 20 20 20 20 |port, so|. |
|00001d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00001d30| 3e 20 69 74 73 20 68 6f | 74 73 70 6f 74 20 69 74 |> its ho|tspot it|
|00001d40| 27 73 20 53 45 54 20 69 | 6e 20 68 69 67 68 20 72 |'s SET i|n high r|
|00001d50| 65 73 6f 6c 75 74 69 6f | 6e 3a 20 74 68 65 0a 20 |esolutio|n: the. |
|00001d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d70| 20 20 20 20 20 2d 3e 20 | 61 75 74 6f 28 29 20 6d | -> |auto() m|
|00001d80| 65 74 68 6f 64 20 4f 46 | 20 6d 6f 75 73 65 70 6f |ethod OF| mousepo|
|00001d90| 69 6e 74 65 72 20 72 65 | 73 63 61 6c 65 73 20 69 |inter re|scales i|
|00001da0| 74 20 54 4f 20 61 64 61 | 70 74 20 54 4f 0a 20 20 |t TO ada|pt TO. |
|00001db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001dc0| 20 20 20 20 2d 3e 20 74 | 68 65 20 63 68 61 6e 67 | -> t|he chang|
|00001dd0| 69 6e 67 20 72 65 73 6f | 6c 75 74 69 6f 6e 2e 0a |ing reso|lution..|
|00001de0| 0a 20 20 4e 45 57 20 6d | 79 76 69 65 77 2e 64 69 |. NEW m|yview.di|
|00001df0| 73 70 6c 61 79 65 72 28 | 29 0a 0a 20 20 6d 79 76 |splayer(|).. myv|
|00001e00| 69 65 77 2e 61 64 64 28 | 5b 56 50 4f 52 54 5f 54 |iew.add(|[VPORT_T|
|00001e10| 4f 50 2c 30 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |OP,0,. | |
|00001e20| 20 20 20 20 56 50 4f 52 | 54 5f 4c 45 46 54 2c 30 | VPOR|T_LEFT,0|
|00001e30| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00001e40| 56 50 4f 52 54 5f 57 49 | 44 54 48 2c 36 34 30 2c |VPORT_WI|DTH,640,|
|00001e50| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 56 |. | V|
|00001e60| 50 4f 52 54 5f 48 45 49 | 47 48 54 2c 31 30 30 2c |PORT_HEI|GHT,100,|
|00001e70| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 56 |. | V|
|00001e80| 50 4f 52 54 5f 44 45 50 | 54 48 2c 33 2c 0a 20 20 |PORT_DEP|TH,3,. |
|00001e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 56 50 4f 52 | | VPOR|
|00001ea0| 54 5f 4d 4f 44 45 2c 48 | 49 52 45 53 5f 4b 45 59 |T_MODE,H|IRES_KEY|
|00001eb0| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00001ec0| 56 50 4f 52 54 5f 42 4d | 57 49 44 54 48 2c 38 30 |VPORT_BM|WIDTH,80|
|00001ed0| 30 2c 20 20 20 20 2d 3e | 20 62 69 74 6d 61 70 20 |0, ->| bitmap |
|00001ee0| 49 53 20 77 69 64 65 72 | 20 74 68 61 6e 20 76 69 |IS wider| than vi|
|00001ef0| 65 77 70 6f 72 74 0a 20 | 20 20 20 20 20 20 20 20 |ewport. | |
|00001f00| 20 20 20 20 20 56 50 4f | 52 54 5f 53 50 52 49 54 | VPO|RT_SPRIT|
|00001f10| 45 53 2c 54 52 55 45 2c | 0a 20 20 20 20 20 20 20 |ES,TRUE,|. |
|00001f20| 20 20 20 20 20 20 20 4e | 49 4c 5d 29 0a 0a 20 20 | N|IL]).. |
|00001f30| 6d 79 76 69 65 77 2e 61 | 64 64 28 5b 56 50 4f 52 |myview.a|dd([VPOR|
|00001f40| 54 5f 54 4f 50 2c 31 31 | 30 2c 0a 20 20 20 20 20 |T_TOP,11|0,. |
|00001f50| 20 20 20 20 20 20 20 20 | 20 56 50 4f 52 54 5f 4c | | VPORT_L|
|00001f60| 45 46 54 2c 30 2c 0a 20 | 20 20 20 20 20 20 20 20 |EFT,0,. | |
|00001f70| 20 20 20 20 20 56 50 4f | 52 54 5f 57 49 44 54 48 | VPO|RT_WIDTH|
|00001f80| 2c 33 32 30 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |,320,. | |
|00001f90| 20 20 20 20 56 50 4f 52 | 54 5f 48 45 49 47 48 54 | VPOR|T_HEIGHT|
|00001fa0| 2c 35 30 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |,50,. | |
|00001fb0| 20 20 20 56 50 4f 52 54 | 5f 44 45 50 54 48 2c 33 | VPORT|_DEPTH,3|
|00001fc0| 2c 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |,. | |
|00001fd0| 56 50 4f 52 54 5f 4d 4f | 44 45 2c 4c 4f 52 45 53 |VPORT_MO|DE,LORES|
|00001fe0| 5f 4b 45 59 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |_KEY,. | |
|00001ff0| 20 20 20 20 56 50 4f 52 | 54 5f 53 50 52 49 54 45 | VPOR|T_SPRITE|
|00002000| 53 2c 54 52 55 45 2c 0a | 20 20 20 20 20 20 20 20 |S,TRUE,.| |
|00002010| 20 20 20 20 20 20 4e 49 | 4c 5d 29 0a 0a 20 20 6d | NI|L]).. m|
|00002020| 79 76 69 65 77 2e 61 64 | 64 28 5b 56 50 4f 52 54 |yview.ad|d([VPORT|
|00002030| 5f 54 4f 50 2c 31 37 30 | 2c 0a 20 20 20 20 20 20 |_TOP,170|,. |
|00002040| 20 20 20 20 20 20 20 20 | 56 50 4f 52 54 5f 4c 45 | |VPORT_LE|
|00002050| 46 54 2c 30 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |FT,0,. | |
|00002060| 20 20 20 20 56 50 4f 52 | 54 5f 57 49 44 54 48 2c | VPOR|T_WIDTH,|
|00002070| 36 34 30 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |640,. | |
|00002080| 20 20 20 56 50 4f 52 54 | 5f 48 45 49 47 48 54 2c | VPORT|_HEIGHT,|
|00002090| 38 30 2c 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |80,. | |
|000020a0| 20 20 56 50 4f 52 54 5f | 44 45 50 54 48 2c 33 2c | VPORT_|DEPTH,3,|
|000020b0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 56 |. | V|
|000020c0| 50 4f 52 54 5f 4d 4f 44 | 45 2c 48 49 52 45 53 5f |PORT_MOD|E,HIRES_|
|000020d0| 4b 45 59 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |KEY,. | |
|000020e0| 20 20 20 56 50 4f 52 54 | 5f 53 50 52 49 54 45 53 | VPORT|_SPRITES|
|000020f0| 2c 54 52 55 45 2c 0a 20 | 20 20 20 20 20 20 20 20 |,TRUE,. | |
|00002100| 20 20 20 20 20 4e 49 4c | 5d 29 0a 0a 20 20 6d 79 | NIL|]).. my|
|00002110| 76 69 65 77 2e 73 65 74 | 75 70 28 44 45 46 41 55 |view.set|up(DEFAU|
|00002120| 4c 54 5f 4d 4f 4e 49 54 | 4f 52 5f 49 44 29 20 20 |LT_MONIT|OR_ID) |
|00002130| 2d 3e 20 63 68 6f 6f 73 | 65 20 79 6f 75 72 20 6d |-> choos|e your m|
|00002140| 6f 6e 69 74 6f 72 20 64 | 61 74 61 62 61 73 65 0a |onitor d|atabase.|
|00002150| 0a 2d 3e 20 74 68 69 73 | 20 77 69 6e 64 6f 77 20 |.-> this| window |
|00002160| 49 53 20 6f 70 65 6e 65 | 64 20 6f 6e 6c 79 20 54 |IS opene|d only T|
|00002170| 4f 20 63 6c 65 61 72 20 | 74 68 65 20 73 74 61 6e |O clear |the stan|
|00002180| 64 61 72 64 20 6d 6f 75 | 73 65 20 73 70 72 69 74 |dard mou|se sprit|
|00002190| 65 0a 20 20 77 69 6e 3a | 3d 4f 70 65 6e 57 69 6e |e. win:|=OpenWin|
|000021a0| 64 6f 77 54 61 67 4c 69 | 73 74 28 4e 49 4c 2c 5b |dowTagLi|st(NIL,[|
|000021b0| 57 41 5f 4c 45 46 54 2c | 30 2c 0a 20 20 20 20 20 |WA_LEFT,|0,. |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021d0| 20 20 20 20 20 20 20 20 | 20 57 41 5f 54 4f 50 2c | | WA_TOP,|
|000021e0| 30 2c 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0,. | |
|000021f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002200| 20 57 41 5f 57 49 44 54 | 48 2c 33 32 30 2c 0a 20 | WA_WIDT|H,320,. |
|00002210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 57 41 5f | | WA_|
|00002230| 48 45 49 47 48 54 2c 31 | 32 38 2c 0a 20 20 20 20 |HEIGHT,1|28,. |
|00002240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002250| 20 20 20 20 20 20 20 20 | 20 20 57 41 5f 54 49 54 | | WA_TIT|
|00002260| 4c 45 2c 27 57 6f 77 27 | 2c 0a 20 20 20 20 20 20 |LE,'Wow'|,. |
|00002270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002280| 20 20 20 20 20 20 20 20 | 57 41 5f 46 4c 41 47 53 | |WA_FLAGS|
|00002290| 2c 57 46 4c 47 5f 44 52 | 41 47 42 41 52 20 4f 52 |,WFLG_DR|AGBAR OR|
|000022a0| 20 57 46 4c 47 5f 43 4c | 4f 53 45 47 41 44 47 45 | WFLG_CL|OSEGADGE|
|000022b0| 54 20 4f 52 20 57 46 4c | 47 5f 41 43 54 49 56 41 |T OR WFL|G_ACTIVA|
|000022c0| 54 45 20 4f 52 20 57 46 | 4c 47 5f 53 49 4d 50 4c |TE OR WF|LG_SIMPL|
|000022d0| 45 5f 52 45 46 52 45 53 | 48 2c 0a 20 20 20 20 20 |E_REFRES|H,. |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022f0| 20 20 20 20 20 20 20 20 | 20 57 41 5f 49 44 43 4d | | WA_IDCM|
|00002300| 50 2c 49 44 43 4d 50 5f | 43 4c 4f 53 45 57 49 4e |P,IDCMP_|CLOSEWIN|
|00002310| 44 4f 57 20 4f 52 20 49 | 44 43 4d 50 5f 41 43 54 |DOW OR I|DCMP_ACT|
|00002320| 49 56 45 57 49 4e 44 4f | 57 2c 0a 20 20 20 20 20 |IVEWINDO|W,. |
|00002330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002340| 20 20 20 20 20 20 20 20 | 20 4e 49 4c 2c 4e 49 4c | | NIL,NIL|
|00002350| 5d 29 0a 20 20 49 46 20 | 77 69 6e 3d 4e 49 4c 20 |]). IF |win=NIL |
|00002360| 54 48 45 4e 20 52 61 69 | 73 65 28 22 77 69 6e 22 |THEN Rai|se("win"|
|00002370| 29 0a 20 20 70 6f 69 3a | 3d 5b 30 2c 30 5d 3a 49 |). poi:|=[0,0]:I|
|00002380| 4e 54 0a 20 20 53 65 74 | 50 6f 69 6e 74 65 72 28 |NT. Set|Pointer(|
|00002390| 77 69 6e 2c 70 6f 69 2c | 31 2c 31 2c 30 2c 30 29 |win,poi,|1,1,0,0)|
|000023a0| 0a 0a 2d 3e 20 68 65 72 | 65 20 62 65 67 69 6e 73 |..-> her|e begins|
|000023b0| 20 74 68 65 20 73 68 6f | 77 0a 20 20 46 6f 72 62 | the sho|w. Forb|
|000023c0| 69 64 28 29 20 20 20 20 | 20 20 20 2d 3e 20 66 6f |id() | -> fo|
|000023d0| 72 62 69 64 20 74 61 73 | 6b 20 73 77 69 74 63 68 |rbid tas|k switch|
|000023e0| 69 6e 67 0a 20 20 6d 79 | 76 69 65 77 2e 73 68 6f |ing. my|view.sho|
|000023f0| 77 28 29 0a 0a 20 20 72 | 70 31 3a 3d 6d 79 76 69 |w().. r|p1:=myvi|
|00002400| 65 77 2e 72 61 73 74 70 | 6f 72 74 28 30 29 0a 20 |ew.rastp|ort(0). |
|00002410| 20 72 70 32 3a 3d 6d 79 | 76 69 65 77 2e 72 61 73 | rp2:=my|view.ras|
|00002420| 74 70 6f 72 74 28 31 29 | 0a 20 20 76 70 31 3a 3d |tport(1)|. vp1:=|
|00002430| 6d 79 76 69 65 77 2e 76 | 69 65 77 70 6f 72 74 28 |myview.v|iewport(|
|00002440| 30 29 0a 20 20 76 70 32 | 3a 3d 6d 79 76 69 65 77 |0). vp2|:=myview|
|00002450| 2e 76 69 65 77 70 6f 72 | 74 28 31 29 0a 0a 20 20 |.viewpor|t(1).. |
|00002460| 53 65 74 52 61 73 74 28 | 72 70 31 2c 33 29 0a 20 |SetRast(|rp1,3). |
|00002470| 20 53 65 74 52 61 73 74 | 28 72 70 32 2c 34 29 0a | SetRast|(rp2,4).|
|00002480| 20 20 53 65 74 52 61 73 | 74 28 6d 79 76 69 65 77 | SetRas|t(myview|
|00002490| 2e 72 61 73 74 70 6f 72 | 74 28 32 29 2c 32 29 0a |.rastpor|t(2),2).|
|000024a0| 0a 20 20 53 65 74 52 47 | 42 34 28 76 70 31 2c 32 |. SetRG|B4(vp1,2|
|000024b0| 2c 31 35 2c 31 35 2c 31 | 35 29 0a 20 20 53 65 74 |,15,15,1|5). Set|
|000024c0| 41 50 65 6e 28 72 70 31 | 2c 32 29 0a 20 20 4d 6f |APen(rp1|,2). Mo|
|000024d0| 76 65 28 72 70 31 2c 31 | 30 2c 31 30 29 0a 20 20 |ve(rp1,1|0,10). |
|000024e0| 54 65 78 74 28 72 70 31 | 2c 27 46 69 72 73 74 20 |Text(rp1|,'First |
|000024f0| 28 48 69 72 65 73 29 20 | 56 69 65 77 50 6f 72 74 |(Hires) |ViewPort|
|00002500| 27 2c 32 32 29 0a 20 20 | 53 65 74 52 47 42 34 28 |',22). |SetRGB4(|
|00002510| 76 70 32 2c 32 2c 30 2c | 30 2c 31 35 29 0a 20 20 |vp2,2,0,|0,15). |
|00002520| 53 65 74 41 50 65 6e 28 | 72 70 32 2c 32 29 0a 20 |SetAPen(|rp2,2). |
|00002530| 20 4d 6f 76 65 28 72 70 | 32 2c 31 30 2c 31 30 29 | Move(rp|2,10,10)|
|00002540| 0a 20 20 54 65 78 74 28 | 72 70 32 2c 27 53 65 63 |. Text(|rp2,'Sec|
|00002550| 6f 6e 64 20 28 4c 6f 77 | 72 65 73 29 20 56 69 65 |ond (Low|res) Vie|
|00002560| 77 50 6f 72 74 27 2c 32 | 34 29 0a 0a 20 20 76 70 |wPort',2|4).. vp|
|00002570| 3a 3d 76 70 31 0a 20 20 | 74 6f 70 6f 2e 63 68 61 |:=vp1. |topo.cha|
|00002580| 6e 67 65 49 6d 61 67 65 | 28 76 70 31 29 20 20 20 |ngeImage|(vp1) |
|00002590| 2d 3e 20 69 6e 73 74 61 | 6c 6c 20 4e 45 57 20 69 |-> insta|ll NEW i|
|000025a0| 6d 61 67 65 0a 20 20 74 | 6f 70 6f 2e 6d 6f 76 65 |mage. t|opo.move|
|000025b0| 28 76 70 31 2c 31 30 30 | 2c 35 30 29 20 20 20 2d |(vp1,100|,50) -|
|000025c0| 3e 20 73 74 61 72 74 20 | 66 72 6f 6d 20 74 6f 70 |> start |from top|
|000025d0| 6d 6f 73 74 20 76 69 65 | 77 70 6f 72 74 0a 20 20 |most vie|wport. |
|000025e0| 52 45 50 45 41 54 0a 20 | 20 20 20 74 6f 70 6f 2e |REPEAT. | topo.|
|000025f0| 61 75 74 6f 28 6d 79 76 | 69 65 77 29 20 20 2d 3e |auto(myv|iew) ->|
|00002600| 20 61 75 74 6f 20 6d 6f | 76 65 0a 20 20 20 20 49 | auto mo|ve. I|
|00002610| 46 20 74 6f 70 6f 2e 76 | 70 28 29 3d 30 20 20 20 |F topo.v|p()=0 |
|00002620| 20 20 20 20 20 2d 3e 20 | 49 46 20 74 6f 70 6d 6f | -> |IF topmo|
|00002630| 73 74 20 76 69 65 77 70 | 6f 72 74 0a 20 20 20 20 |st viewp|ort. |
|00002640| 20 20 49 46 20 74 6f 70 | 6f 2e 78 28 29 3e 3d 36 | IF top|o.x()>=6|
|00002650| 34 30 20 20 20 20 20 20 | 20 2d 3e 20 49 46 20 6d |40 | -> IF m|
|00002660| 6f 75 73 65 20 68 69 74 | 73 20 74 68 65 20 62 6f |ouse hit|s the bo|
|00002670| 75 6e 64 61 72 69 65 73 | 20 54 48 45 4e 20 73 63 |undaries| THEN sc|
|00002680| 72 6f 6c 6c 0a 20 20 20 | 20 20 20 20 20 72 78 3a |roll. | rx:|
|00002690| 3d 72 78 2b 31 0a 20 20 | 20 20 20 20 20 20 49 46 |=rx+1. | IF|
|000026a0| 20 72 78 3e 38 30 20 54 | 48 45 4e 20 72 78 3a 3d | rx>80 T|HEN rx:=|
|000026b0| 38 30 0a 20 20 20 20 20 | 20 20 20 6d 79 76 69 65 |80. | myvie|
|000026c0| 77 2e 73 63 72 6f 6c 6c | 28 30 2c 72 78 2c 30 29 |w.scroll|(0,rx,0)|
|000026d0| 0a 20 20 20 20 20 20 45 | 4e 44 49 46 0a 20 20 20 |. E|NDIF. |
|000026e0| 20 20 20 49 46 20 74 6f | 70 6f 2e 78 28 29 3c 3d | IF to|po.x()<=|
|000026f0| 30 0a 20 20 20 20 20 20 | 20 20 72 78 3a 3d 72 78 |0. | rx:=rx|
|00002700| 2d 31 0a 20 20 20 20 20 | 20 20 20 49 46 20 72 78 |-1. | IF rx|
|00002710| 3c 30 20 54 48 45 4e 20 | 72 78 3a 3d 30 0a 20 20 |<0 THEN |rx:=0. |
|00002720| 20 20 20 20 20 20 6d 79 | 76 69 65 77 2e 73 63 72 | my|view.scr|
|00002730| 6f 6c 6c 28 30 2c 72 78 | 2c 30 29 0a 20 20 20 20 |oll(0,rx|,0). |
|00002740| 20 20 45 4e 44 49 46 0a | 20 20 20 20 45 4e 44 49 | ENDIF.| ENDI|
|00002750| 46 0a 20 20 55 4e 54 49 | 4c 20 4d 6f 75 73 65 28 |F. UNTI|L Mouse(|
|00002760| 29 0a 0a 20 20 50 65 72 | 6d 69 74 28 29 20 20 2d |).. Per|mit() -|
|00002770| 3e 20 70 65 72 6d 69 74 | 20 74 61 73 6b 20 73 77 |> permit| task sw|
|00002780| 69 74 63 68 69 6e 67 0a | 20 20 6d 79 76 69 65 77 |itching.| myview|
|00002790| 2e 73 68 6f 77 4f 6c 64 | 56 69 65 77 28 29 20 20 |.showOld|View() |
|000027a0| 20 2d 3e 20 72 65 73 74 | 6f 72 65 20 6f 6c 64 20 | -> rest|ore old |
|000027b0| 76 69 65 77 0a 0a 45 58 | 43 45 50 54 20 44 4f 0a |view..EX|CEPT DO.|
|000027c0| 20 20 45 4e 44 20 74 6f | 70 6f 0a 20 20 45 4e 44 | END to|po. END|
|000027d0| 20 6d 79 76 69 65 77 0a | 20 20 49 46 20 77 69 6e | myview.| IF win|
|000027e0| 20 54 48 45 4e 20 43 6c | 6f 73 65 57 69 6e 64 6f | THEN Cl|oseWindo|
|000027f0| 77 28 77 69 6e 29 0a 20 | 20 65 78 70 6c 61 69 6e |w(win). | explain|
|00002800| 5f 65 78 63 65 70 74 69 | 6f 6e 28 29 0a 45 4e 44 |_excepti|on().END|
|00002810| 50 52 4f 43 0a 0a 2c a2 | 2d 6c 68 30 2d 4c 3c 00 |PROC..,.|-lh0-L<.|
|00002820| 00 4c 3c 00 00 c7 a8 49 | 23 02 00 16 53 72 63 5c |.L<....I|#...Src\|
|00002830| 41 66 63 5c 44 6f 63 73 | 5c 41 46 43 2e 67 75 69 |Afc\Docs|\AFC.gui|
|00002840| 64 65 19 53 40 64 61 74 | 61 62 61 73 65 20 41 46 |de.S@dat|abase AF|
|00002850| 43 5f 57 68 69 74 65 50 | 61 70 65 72 0a 0a 40 24 |C_WhiteP|aper..@$|
|00002860| 56 45 52 3a 20 41 6d 69 | 67 61 20 46 6f 75 6e 64 |VER: Ami|ga Found|
|00002870| 61 74 69 6f 6e 20 43 6c | 61 73 73 65 73 20 57 68 |ation Cl|asses Wh|
|00002880| 69 74 65 20 50 61 70 65 | 72 20 56 31 2e 35 30 0a |ite Pape|r V1.50.|
|00002890| 0a 40 6e 6f 64 65 20 6d | 61 69 6e 20 22 41 6d 69 |.@node m|ain "Ami|
|000028a0| 67 61 20 46 6f 75 6e 64 | 61 74 69 6f 6e 20 43 6c |ga Found|ation Cl|
|000028b0| 61 73 73 65 73 22 0a 0a | 41 6d 69 67 61 20 46 6f |asses"..|Amiga Fo|
|000028c0| 75 6e 64 61 74 69 6f 6e | 20 43 6c 61 73 73 65 73 |undation| Classes|
|000028d0| 0a 0a 41 20 46 72 65 65 | 57 61 72 65 20 61 6e 64 |..A Free|Ware and|
|000028e0| 20 50 75 62 6c 69 63 20 | 44 6f 6d 61 69 6e 20 6c | Public |Domain l|
|000028f0| 69 62 72 61 72 79 20 6f | 66 20 4f 62 6a 65 63 74 |ibrary o|f Object|
|00002900| 20 43 6c 61 73 73 65 73 | 20 64 65 76 6f 74 65 64 | Classes| devoted|
|00002910| 20 74 6f 20 74 68 65 0a | 73 6f 66 74 77 61 72 65 | to the.|software|
|00002920| 20 64 65 76 65 6c 6f 70 | 6d 65 6e 74 20 6f 6e 20 | develop|ment on |
|00002930| 74 68 65 20 41 6d 69 67 | 61 20 61 6e 64 20 6f 6e |the Amig|a and on|
|00002940| 20 66 75 74 75 72 65 20 | 41 6d 69 67 61 20 63 6f | future |Amiga co|
|00002950| 6d 70 61 74 69 62 6c 65 | 20 6d 61 63 68 69 6e 65 |mpatible| machine|
|00002960| 73 2e 0a 0a 21 20 4e 6f | 74 65 3a 20 6e 65 77 20 |s...! No|te: new |
|00002970| 2f 20 6d 6f 64 69 66 69 | 65 64 20 6c 69 6e 65 73 |/ modifi|ed lines|
|00002980| 20 61 72 65 20 73 69 67 | 6e 65 64 20 77 69 74 68 | are sig|ned with|
|00002990| 20 61 20 22 21 22 20 61 | 73 20 74 68 65 20 66 69 | a "!" a|s the fi|
|000029a0| 72 73 74 20 63 68 61 72 | 20 6f 66 20 74 68 65 0a |rst char| of the.|
|000029b0| 21 20 20 20 20 20 20 20 | 6c 69 6e 65 2e 0a 0a 0a |! |line....|
|000029c0| 31 2e 20 49 6e 64 65 78 | 0a 0a 20 20 32 2e 30 20 |1. Index|.. 2.0 |
|000029d0| 2d 20 49 6e 74 72 6f 64 | 75 63 74 69 6f 6e 0a 20 |- Introd|uction. |
|000029e0| 20 20 20 40 7b 22 20 32 | 2e 31 20 2d 20 57 68 61 | @{" 2|.1 - Wha|
|000029f0| 74 20 61 72 65 20 74 68 | 65 20 41 6d 69 67 61 20 |t are th|e Amiga |
|00002a00| 46 6f 75 6e 64 61 74 69 | 6f 6e 20 43 6c 61 73 73 |Foundati|on Class|
|00002a10| 65 73 20 22 20 4c 49 4e | 4b 20 22 49 6e 74 72 6f |es " LIN|K "Intro|
|00002a20| 5f 31 22 7d 0a 20 20 20 | 20 40 7b 22 20 32 2e 32 |_1"}. | @{" 2.2|
|00002a30| 20 2d 20 57 68 61 74 20 | 61 72 65 20 74 68 65 20 | - What |are the |
|00002a40| 41 6d 69 67 61 20 46 6f | 75 6e 64 61 74 69 6f 6e |Amiga Fo|undation|
|00002a50| 20 43 6c 61 73 73 65 73 | 20 66 6f 72 20 22 20 4c | Classes| for " L|
|00002a60| 49 4e 4b 20 22 49 6e 74 | 72 6f 5f 32 22 7d 0a 21 |INK "Int|ro_2"}.!|
|00002a70| 20 20 20 40 7b 22 20 32 | 2e 33 20 2d 20 57 68 6f | @{" 2|.3 - Who|
|00002a80| 20 77 69 6c 6c 20 75 73 | 65 20 74 68 65 20 41 6d | will us|e the Am|
|00002a90| 69 67 61 20 46 6f 75 6e | 64 61 74 69 6f 6e 20 43 |iga Foun|dation C|
|00002aa0| 6c 61 73 73 65 73 20 22 | 20 4c 49 4e 4b 20 22 49 |lasses "| LINK "I|
|00002ab0| 6e 74 72 6f 5f 33 22 7d | 0a 20 20 20 20 40 7b 22 |ntro_3"}|. @{"|
|00002ac0| 20 32 2e 34 20 2d 20 46 | 75 74 75 72 65 20 6f 66 | 2.4 - F|uture of|
|00002ad0| 20 74 68 65 20 41 6d 69 | 67 61 20 46 6f 75 6e 64 | the Ami|ga Found|
|00002ae0| 61 74 69 6f 6e 20 43 6c | 61 73 73 65 73 20 22 20 |ation Cl|asses " |
|00002af0| 4c 49 4e 4b 20 22 49 6e | 74 72 6f 5f 34 22 7d 0a |LINK "In|tro_4"}.|
|00002b00| 20 20 20 20 40 7b 22 20 | 32 2e 35 20 2d 20 49 6e | @{" |2.5 - In|
|00002b10| 74 65 72 66 61 63 69 6e | 67 20 77 69 74 68 20 6e |terfacin|g with n|
|00002b20| 65 77 20 41 6d 69 67 61 | 20 4f 53 20 43 6f 6d 70 |ew Amiga| OS Comp|
|00002b30| 61 74 69 62 6c 65 73 20 | 22 20 4c 49 4e 4b 20 22 |atibles |" LINK "|
|00002b40| 49 6e 74 72 6f 5f 35 22 | 7d 0a 0a 20 20 33 2e 30 |Intro_5"|}.. 3.0|
|00002b50| 20 2d 20 49 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f | - Imple|mentatio|
|00002b60| 6e 0a 20 20 20 20 40 7b | 22 20 33 2e 31 20 2d 20 |n. @{|" 3.1 - |
|00002b70| 48 6f 77 20 74 6f 20 77 | 72 69 74 65 20 61 20 43 |How to w|rite a C|
|00002b80| 6c 61 73 73 20 66 6f 72 | 20 74 68 65 20 41 6d 69 |lass for| the Ami|
|00002b90| 67 61 20 46 6f 75 6e 64 | 61 74 69 6f 6e 20 43 6c |ga Found|ation Cl|
|00002ba0| 61 73 73 65 73 20 22 20 | 4c 49 4e 4b 20 22 49 6d |asses " |LINK "Im|
|00002bb0| 70 6c 5f 31 22 7d 0a 21 | 20 20 20 40 7b 22 20 33 |pl_1"}.!| @{" 3|
|00002bc0| 2e 31 2e 31 20 2d 20 43 | 6c 61 73 73 20 6e 61 6d |.1.1 - C|lass nam|
|00002bd0| 65 20 22 20 4c 49 4e 4b | 20 22 49 6d 70 6c 5f 31 |e " LINK| "Impl_1|
|00002be0| 5f 31 22 7d 0a 21 20 20 | 20 40 7b 22 20 33 2e 31 |_1"}.! | @{" 3.1|
|00002bf0| 2e 32 20 2d 20 4d 65 74 | 68 6f 64 73 27 20 6e 61 |.2 - Met|hods' na|
|00002c00| 6d 65 73 20 22 20 4c 49 | 4e 4b 20 22 49 6d 70 6c |mes " LI|NK "Impl|
|00002c10| 5f 31 5f 32 22 7d 0a 21 | 20 20 20 40 7b 22 20 33 |_1_2"}.!| @{" 3|
|00002c20| 2e 31 2e 33 20 2d 20 4f | 62 6a 65 63 74 20 49 6e |.1.3 - O|bject In|
|00002c30| 68 65 72 69 74 61 6e 63 | 65 20 22 20 4c 49 4e 4b |heritanc|e " LINK|
|00002c40| 20 22 49 6d 70 6c 5f 31 | 5f 33 22 7d 0a 21 20 20 | "Impl_1|_3"}.! |
|00002c50| 20 40 7b 22 20 33 2e 31 | 2e 34 20 2d 20 4f 62 6a | @{" 3.1|.4 - Obj|
|00002c60| 65 63 74 20 49 6e 69 74 | 69 61 6c 69 7a 61 74 69 |ect Init|ializati|
|00002c70| 6f 6e 20 61 6e 64 20 4f | 62 6a 65 63 74 20 44 65 |on and O|bject De|
|00002c80| 73 74 72 75 63 74 69 6f | 6e 20 22 20 4c 49 4e 4b |structio|n " LINK|
|00002c90| 20 22 49 6d 70 6c 5f 31 | 5f 34 22 7d 0a 20 20 20 | "Impl_1|_4"}. |
|00002ca0| 20 40 7b 22 20 33 2e 31 | 2e 35 20 2d 20 4c 69 62 | @{" 3.1|.5 - Lib|
|00002cb0| 72 61 72 69 65 73 20 61 | 6e 64 20 6c 6f 77 65 73 |raries a|nd lowes|
|00002cc0| 74 20 4f 53 20 76 65 72 | 73 69 6f 6e 20 22 20 4c |t OS ver|sion " L|
|00002cd0| 49 4e 4b 20 22 49 6d 70 | 6c 5f 31 5f 35 22 7d 0a |INK "Imp|l_1_5"}.|
|00002ce0| 20 20 20 20 40 7b 22 20 | 33 2e 31 2e 36 20 2d 20 | @{" |3.1.6 - |
|00002cf0| 54 61 67 73 20 22 20 4c | 49 4e 4b 20 22 49 6d 70 |Tags " L|INK "Imp|
|00002d00| 6c 5f 31 5f 36 22 7d 0a | 0a 20 20 20 20 40 7b 22 |l_1_6"}.|. @{"|
|00002d10| 20 33 2e 32 20 2d 20 44 | 65 66 69 6e 69 74 69 6f | 3.2 - D|efinitio|
|00002d20| 6e 20 6f 66 20 65 72 72 | 6f 72 20 63 6f 64 65 73 |n of err|or codes|
|00002d30| 20 22 20 4c 49 4e 4b 20 | 22 49 6d 70 6c 5f 32 22 | " LINK |"Impl_2"|
|00002d40| 7d 0a 20 20 20 20 40 7b | 22 20 33 2e 32 2e 31 20 |}. @{|" 3.2.1 |
|00002d50| 2d 20 57 68 65 6e 20 74 | 6f 20 72 65 70 6f 72 74 |- When t|o report|
|00002d60| 20 61 6e 20 65 72 72 6f | 72 20 63 6f 64 65 20 22 | an erro|r code "|
|00002d70| 20 4c 49 4e 4b 20 22 49 | 6d 70 6c 5f 32 5f 31 22 | LINK "I|mpl_2_1"|
|00002d80| 7d 0a 21 20 20 20 40 7b | 22 20 33 2e 32 2e 32 20 |}.! @{|" 3.2.2 |
|00002d90| 2d 20 48 6f 77 20 74 6f | 20 72 65 70 6f 72 74 20 |- How to| report |
|00002da0| 61 6e 20 65 72 72 6f 72 | 20 63 6f 64 65 20 22 20 |an error| code " |
|00002db0| 4c 49 4e 4b 20 22 49 6d | 70 6c 5f 32 5f 32 22 7d |LINK "Im|pl_2_2"}|
|00002dc0| 0a 20 20 20 20 40 7b 22 | 20 33 2e 32 2e 33 20 2d |. @{"| 3.2.3 -|
|00002dd0| 20 43 6c 61 73 73 69 66 | 69 63 61 74 69 6f 6e 20 | Classif|ication |
|00002de0| 6f 66 20 65 72 72 6f 72 | 20 63 6f 64 65 73 20 22 |of error| codes "|
|00002df0| 20 4c 49 4e 4b 20 22 49 | 6d 70 6c 5f 32 5f 33 22 | LINK "I|mpl_2_3"|
|00002e00| 7d 0a 0a 20 20 34 2e 30 | 20 2d 20 50 6f 72 74 69 |}.. 4.0| - Porti|
|00002e10| 6e 67 20 6f 66 20 43 6c | 61 73 73 65 73 0a 20 20 |ng of Cl|asses. |
|00002e20| 20 20 40 7b 22 20 34 2e | 31 20 2d 20 50 6f 72 74 | @{" 4.|1 - Port|
|00002e30| 69 6e 67 20 66 65 61 74 | 75 72 65 73 20 22 20 4c |ing feat|ures " L|
|00002e40| 49 4e 4b 20 22 50 6f 72 | 74 5f 31 22 7d 0a 20 20 |INK "Por|t_1"}. |
|00002e50| 20 20 40 7b 22 20 34 2e | 32 20 2d 20 50 6f 72 74 | @{" 4.|2 - Port|
|00002e60| 69 6e 67 20 6c 69 6d 69 | 74 73 20 22 20 4c 49 4e |ing limi|ts " LIN|
|00002e70| 4b 20 22 50 6f 72 74 5f | 32 22 7d 0a 0a 20 20 35 |K "Port_|2"}.. 5|
|00002e80| 2e 30 20 2d 20 44 69 73 | 74 72 69 62 75 74 69 6f |.0 - Dis|tributio|
|00002e90| 6e 0a 20 20 20 20 40 7b | 22 20 35 2e 31 20 2d 20 |n. @{|" 5.1 - |
|00002ea0| 43 6f 6d 70 69 6c 65 64 | 20 43 6c 61 73 73 65 73 |Compiled| Classes|
|00002eb0| 20 22 20 4c 49 4e 4b 20 | 22 44 69 73 74 72 5f 31 | " LINK |"Distr_1|
|00002ec0| 22 7d 0a 20 20 20 20 40 | 7b 22 20 35 2e 32 20 2d |"}. @|{" 5.2 -|
|00002ed0| 20 43 6c 61 73 73 65 73 | 27 20 73 6f 75 72 63 65 | Classes|' source|
|00002ee0| 20 63 6f 64 65 20 22 20 | 4c 49 4e 4b 20 22 44 69 | code " |LINK "Di|
|00002ef0| 73 74 72 5f 32 22 7d 0a | 21 20 20 20 40 7b 22 20 |str_2"}.|! @{" |
|00002f00| 35 2e 33 20 2d 20 41 76 | 61 69 6c 61 62 69 6c 69 |5.3 - Av|ailabili|
|00002f10| 74 79 20 22 20 4c 49 4e | 4b 20 22 44 69 73 74 72 |ty " LIN|K "Distr|
|00002f20| 5f 33 22 7d 0a 21 20 20 | 20 40 7b 22 20 35 2e 34 |_3"}.! | @{" 5.4|
|00002f30| 20 2d 20 49 6e 66 6f 20 | 61 6e 64 20 57 45 42 20 | - Info |and WEB |
|00002f40| 73 69 74 65 73 20 22 20 | 4c 49 4e 4b 20 22 44 69 |sites " |LINK "Di|
|00002f50| 73 74 72 5f 34 22 7d 0a | 0a 40 65 6e 64 6e 6f 64 |str_4"}.|.@endnod|
|00002f60| 65 0a 0a 40 6e 6f 64 65 | 20 22 49 6e 74 72 6f 5f |e..@node| "Intro_|
|00002f70| 31 22 20 22 57 68 61 74 | 20 61 72 65 20 74 68 65 |1" "What| are the|
|00002f80| 20 41 6d 69 67 61 20 46 | 6f 75 6e 64 61 74 69 6f | Amiga F|oundatio|
|00002f90| 6e 20 43 6c 61 73 73 65 | 73 22 0a 32 2e 31 20 2d |n Classe|s".2.1 -|
|00002fa0| 20 57 68 61 74 20 61 72 | 65 20 74 68 65 20 41 6d | What ar|e the Am|
|00002fb0| 69 67 61 20 46 6f 75 6e | 64 61 74 69 6f 6e 20 43 |iga Foun|dation C|
|00002fc0| 6c 61 73 73 65 73 0a 0a | 22 41 6d 69 67 61 20 46 |lasses..|"Amiga F|
|00002fd0| 6f 75 6e 64 61 74 69 6f | 6e 20 43 6c 61 73 73 65 |oundatio|n Classe|
|00002fe0| 73 22 20 28 41 46 43 20 | 66 72 6f 6d 20 6e 6f 77 |s" (AFC |from now|
|00002ff0| 20 6f 6e 29 20 69 73 20 | 74 68 65 20 6e 61 6d 65 | on) is |the name|
|00003000| 20 6f 66 20 61 20 6c 69 | 62 72 61 72 79 20 6f 66 | of a li|brary of|
|00003010| 0a 4f 62 6a 65 63 74 20 | 43 6c 61 73 73 65 73 20 |.Object |Classes |
|00003020| 64 65 73 69 67 6e 65 64 | 20 74 6f 20 6d 61 6e 61 |designed| to mana|
|00003030| 67 65 20 74 68 65 20 73 | 65 76 65 72 61 6c 20 66 |ge the s|everal f|
|00003040| 65 61 74 75 72 65 73 20 | 6f 66 20 41 6d 69 67 61 |eatures |of Amiga|
|00003050| 2e 20 20 45 61 63 68 0a | 43 6c 61 73 73 20 77 69 |. Each.|Class wi|
|00003060| 6c 6c 20 63 6f 6e 73 74 | 69 74 75 74 65 20 61 6e |ll const|itute an|
|00003070| 20 69 6e 74 65 72 66 61 | 63 65 20 62 65 74 77 65 | interfa|ce betwe|
|00003080| 65 6e 20 74 68 65 20 70 | 72 6f 67 72 61 6d 6d 65 |en the p|rogramme|
|00003090| 72 20 61 6e 64 20 61 20 | 70 61 72 74 69 63 75 6c |r and a |particul|
|000030a0| 61 72 0a 61 73 70 65 63 | 74 20 6f 66 20 74 68 65 |ar.aspec|t of the|
|000030b0| 20 41 6d 69 67 61 20 4f | 70 65 72 61 74 69 6e 67 | Amiga O|perating|
|000030c0| 20 53 79 73 74 65 6d 2c | 20 74 72 79 69 6e 67 20 | System,| trying |
|000030d0| 74 6f 20 6d 61 6b 65 20 | 74 68 65 20 64 65 73 69 |to make |the desi|
|000030e0| 67 6e 20 61 6e 64 20 74 | 68 65 0a 63 6f 64 69 6e |gn and t|he.codin|
|000030f0| 67 20 6f 66 20 61 20 70 | 72 6f 67 72 61 6d 20 66 |g of a p|rogram f|
|00003100| 6f 72 20 74 68 65 20 41 | 6d 69 67 61 20 4f 53 20 |or the A|miga OS |
|00003110| 63 6f 6d 70 75 74 65 72 | 73 20 65 61 73 69 65 72 |computer|s easier|
|00003120| 2e 20 20 54 68 65 20 41 | 46 43 20 68 61 76 65 20 |. The A|FC have |
|00003130| 62 65 65 6e 0a 61 6c 73 | 6f 20 64 65 73 69 67 6e |been.als|o design|
|00003140| 65 64 20 74 6f 20 61 73 | 73 75 72 65 20 61 20 71 |ed to as|sure a q|
|00003150| 75 69 63 6b 65 72 20 70 | 6f 72 74 69 6e 67 20 6f |uicker p|orting o|
|00003160| 66 20 74 68 65 20 41 6d | 69 67 61 20 70 72 6f 67 |f the Am|iga prog|
|00003170| 72 61 6d 73 20 6f 6e 20 | 74 68 65 0a 66 75 74 75 |rams on |the.futu|
|00003180| 72 65 20 41 6d 69 67 61 | 2d 43 6f 6d 70 61 74 69 |re Amiga|-Compati|
|00003190| 62 6c 65 20 4f 70 65 72 | 61 74 69 6e 67 20 53 79 |ble Oper|ating Sy|
|000031a0| 73 74 65 6d 73 2e 20 20 | 53 65 65 20 40 7b 22 20 |stems. |See @{" |
|000031b0| 73 65 63 74 69 6f 6e 20 | 32 2e 34 20 22 20 4c 49 |section |2.4 " LI|
|000031c0| 4e 4b 20 22 49 6e 74 72 | 6f 5f 34 22 7d 20 66 6f |NK "Intr|o_4"} fo|
|000031d0| 72 20 6d 6f 72 65 20 69 | 6e 66 6f 2e 0a 40 65 6e |r more i|nfo..@en|
|000031e0| 64 6e 6f 64 65 0a 0a 40 | 6e 6f 64 65 20 22 49 6e |dnode..@|node "In|
|000031f0| 74 72 6f 5f 32 22 20 22 | 57 68 61 74 20 61 72 65 |tro_2" "|What are|
|00003200| 20 74 68 65 20 41 6d 69 | 67 61 20 46 6f 75 6e 64 | the Ami|ga Found|
|00003210| 61 74 69 6f 6e 20 43 6c | 61 73 73 65 73 20 66 6f |ation Cl|asses fo|
|00003220| 72 22 0a 32 2e 32 20 2d | 20 57 68 61 74 20 61 72 |r".2.2 -| What ar|
|00003230| 65 20 74 68 65 20 41 6d | 69 67 61 20 46 6f 75 6e |e the Am|iga Foun|
|00003240| 64 61 74 69 6f 6e 20 43 | 6c 61 73 73 65 73 20 66 |dation C|lasses f|
|00003250| 6f 72 0a 0a 57 65 20 68 | 61 76 65 20 64 65 73 69 |or..We h|ave desi|
|00003260| 67 6e 65 64 20 74 68 65 | 20 41 46 43 20 66 6f 72 |gned the| AFC for|
|00003270| 20 64 69 66 66 65 72 65 | 6e 74 20 72 65 61 73 6f | differe|nt reaso|
|00003280| 6e 73 3a 20 20 66 69 72 | 73 74 20 6f 66 20 61 6c |ns: fir|st of al|
|00003290| 6c 20 74 68 65 20 6e 65 | 63 65 73 73 69 74 79 0a |l the ne|cessity.|
|000032a0| 6f 66 20 66 75 6c 6c 79 | 20 65 78 70 6c 6f 69 74 |of fully| exploit|
|000032b0| 69 6e 67 20 74 68 65 20 | 6f 62 6a 65 63 74 20 6f |ing the |object o|
|000032c0| 72 69 65 6e 74 65 64 20 | 70 72 6f 67 72 61 6d 6d |riented |programm|
|000032d0| 69 6e 67 20 28 4f 4f 50 | 29 2c 20 74 68 61 74 20 |ing (OOP|), that |
|000032e0| 61 6c 6c 6f 77 73 20 74 | 6f 0a 22 72 65 63 79 63 |allows t|o."recyc|
|000032f0| 6c 65 22 20 63 6f 64 65 | 20 75 73 69 6e 67 20 69 |le" code| using i|
|00003300| 74 20 69 6e 20 6f 74 68 | 65 72 20 43 6c 61 73 73 |t in oth|er Class|
|00003310| 65 73 20 6f 72 20 69 6e | 20 6f 74 68 65 72 20 70 |es or in| other p|
|00003320| 72 6f 67 72 61 6d 73 2e | 20 20 54 68 65 0a 72 65 |rograms.| The.re|
|00003330| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 6f 66 20 74 |compilat|ion of t|
|00003340| 68 65 20 41 46 43 20 6f | 6e 20 66 75 74 75 72 65 |he AFC o|n future|
|00003350| 20 63 6f 6d 70 75 74 65 | 72 73 20 77 69 74 68 20 | compute|rs with |
|00003360| 61 6e 20 41 6d 69 67 61 | 2d 43 6f 6d 70 61 74 69 |an Amiga|-Compati|
|00003370| 62 6c 65 20 4f 53 0a 77 | 69 6c 6c 20 61 6c 6c 6f |ble OS.w|ill allo|
|00003380| 77 20 61 20 71 75 69 63 | 6b 65 72 20 70 6f 72 74 |w a quic|ker port|
|00003390| 69 6e 67 20 6f 66 20 73 | 6f 66 74 77 61 72 65 20 |ing of s|oftware |
|000033a0| 70 72 6f 64 75 63 74 73 | 2e 20 53 65 65 20 40 7b |products|. See @{|
|000033b0| 22 20 73 65 63 74 69 6f | 6e 20 32 2e 34 20 22 20 |" sectio|n 2.4 " |
|000033c0| 4c 49 4e 4b 20 22 49 6e | 74 72 6f 5f 34 22 7d 20 |LINK "In|tro_4"} |
|000033d0| 66 6f 72 20 6d 6f 72 65 | 0a 69 6e 66 6f 2e 0a 40 |for more|.info..@|
|000033e0| 65 6e 64 6e 6f 64 65 0a | 0a 40 6e 6f 64 65 20 22 |endnode.|.@node "|
|000033f0| 49 6e 74 72 6f 5f 33 22 | 20 22 57 68 6f 20 77 69 |Intro_3"| "Who wi|
|00003400| 6c 6c 20 75 73 65 20 74 | 68 65 20 41 6d 69 67 61 |ll use t|he Amiga|
|00003410| 20 46 6f 75 6e 64 61 74 | 69 6f 6e 20 43 6c 61 73 | Foundat|ion Clas|
|00003420| 73 65 73 22 0a 32 2e 33 | 20 2d 20 57 68 6f 20 77 |ses".2.3| - Who w|
|00003430| 69 6c 6c 20 75 73 65 20 | 74 68 65 20 41 6d 69 67 |ill use |the Amig|
|00003440| 61 20 46 6f 75 6e 64 61 | 74 69 6f 6e 20 43 6c 61 |a Founda|tion Cla|
|00003450| 73 73 65 73 0a 0a 54 68 | 65 20 41 46 43 20 77 69 |sses..Th|e AFC wi|
|00003460| 6c 6c 20 62 65 20 61 76 | 61 69 6c 61 62 6c 65 20 |ll be av|ailable |
|00003470| 74 6f 20 61 6c 6c 20 70 | 72 6f 67 72 61 6d 6d 65 |to all p|rogramme|
|00003480| 72 73 20 75 73 69 6e 67 | 20 61 20 6c 61 6e 67 75 |rs using| a langu|
|00003490| 61 67 65 20 73 75 70 70 | 6f 72 74 69 6e 67 0a 74 |age supp|orting.t|
|000034a0| 68 65 20 4f 4f 50 2e 20 | 20 54 68 65 20 41 46 43 |he OOP. | The AFC|
|000034b0| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 66 72 65 | can be |used fre|
|000034c0| 65 6c 79 20 69 6e 20 46 | 72 65 65 57 61 72 65 2c |ely in F|reeWare,|
|000034d0| 20 53 68 61 72 65 57 61 | 72 65 2c 20 50 44 20 6f | ShareWa|re, PD o|
|000034e0| 72 0a 43 6f 6d 6d 65 72 | 63 69 61 6c 20 70 72 6f |r.Commer|cial pro|
|000034f0| 67 72 61 6d 73 20 77 69 | 74 68 6f 75 74 20 70 61 |grams wi|thout pa|
|00003500| 79 69 6e 67 20 61 6e 79 | 20 72 6f 79 61 6c 74 79 |ying any| royalty|
|00003510| 2e 20 20 0a 0a 21 20 49 | 66 20 79 6f 75 20 75 73 |. ..! I|f you us|
|00003520| 65 20 74 68 65 20 41 46 | 43 2c 20 70 6c 65 61 73 |e the AF|C, pleas|
|00003530| 65 2c 20 71 75 6f 74 65 | 20 73 6f 6d 65 77 68 65 |e, quote| somewhe|
|00003540| 72 65 20 69 6e 20 74 68 | 65 20 22 41 62 6f 75 74 |re in th|e "About|
|00003550| 2e 2e 2e 22 20 72 65 71 | 75 65 73 74 65 72 0a 21 |..." req|uester.!|
|00003560| 20 61 6e 64 20 61 6c 73 | 6f 20 69 6e 20 74 68 65 | and als|o in the|
|00003570| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 74 | documen|tation t|
|00003580| 68 61 74 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |hat your| program|
|00003590| 20 75 73 65 73 20 74 68 | 65 20 41 6d 69 67 61 20 | uses th|e Amiga |
|000035a0| 46 6f 75 6e 64 61 74 69 | 6f 6e 0a 21 20 43 6c 61 |Foundati|on.! Cla|
|000035b0| 73 73 65 73 20 61 6e 64 | 20 70 72 6f 76 69 64 65 |sses and| provide|
|000035c0| 20 61 6c 73 6f 20 74 68 | 65 20 6f 66 66 69 63 69 | also th|e offici|
|000035d0| 61 6c 20 55 52 4c 3a 0a | 21 0a 21 20 20 20 20 20 |al URL:.|!.! |
|000035e0| 20 20 20 68 74 74 70 3a | 2f 2f 77 77 77 2e 69 6e | http:|//www.in|
|000035f0| 74 65 72 63 6f 6d 2e 69 | 74 2f 7e 66 73 6f 66 74 |tercom.i|t/~fsoft|
|00003600| 2f 61 66 63 2e 68 74 6d | 6c 0a 21 0a 21 20 4e 6f |/afc.htm|l.!.! No|
|00003610| 74 65 20 74 68 61 74 20 | 79 6f 75 20 61 72 65 20 |te that |you are |
|00003620| 6a 75 73 74 20 5f 69 6e | 76 69 74 65 64 5f 20 74 |just _in|vited_ t|
|00003630| 6f 20 64 6f 20 73 6f 2c | 20 6e 6f 20 6f 62 62 6c |o do so,| no obbl|
|00003640| 69 67 61 74 69 6f 6e 20 | 69 73 20 67 69 76 65 6e |igation |is given|
|00003650| 20 69 6e 0a 21 20 61 6e | 79 20 77 61 79 2e 0a 0a | in.! an|y way...|
|00003660| 40 65 6e 64 6e 6f 64 65 | 0a 0a 40 6e 6f 64 65 20 |@endnode|..@node |
|00003670| 22 49 6e 74 72 6f 5f 34 | 22 20 22 46 75 74 75 72 |"Intro_4|" "Futur|
|00003680| 65 20 6f 66 20 74 68 65 | 20 41 6d 69 67 61 20 46 |e of the| Amiga F|
|00003690| 6f 75 6e 64 61 74 69 6f | 6e 20 43 6c 61 73 73 65 |oundatio|n Classe|
|000036a0| 73 22 0a 32 2e 34 20 2d | 20 46 75 74 75 72 65 20 |s".2.4 -| Future |
|000036b0| 6f 66 20 74 68 65 20 41 | 6d 69 67 61 20 46 6f 75 |of the A|miga Fou|
|000036c0| 6e 64 61 74 69 6f 6e 20 | 43 6c 61 73 73 65 73 0a |ndation |Classes.|
|000036d0| 0a 54 68 65 20 41 46 43 | 20 68 61 76 65 20 62 65 |.The AFC| have be|
|000036e0| 65 6e 20 64 65 73 69 67 | 6e 65 64 20 74 6f 20 77 |en desig|ned to w|
|000036f0| 61 72 72 61 6e 74 20 61 | 20 72 65 6c 69 61 62 6c |arrant a| reliabl|
|00003700| 65 20 62 61 73 65 20 6f | 66 20 4f 62 6a 65 63 74 |e base o|f Object|
|00003710| 73 20 74 6f 20 62 65 20 | 75 73 65 64 0a 69 6e 20 |s to be |used.in |
|00003720| 74 68 65 20 66 75 74 75 | 72 65 20 41 6d 69 67 61 |the futu|re Amiga|
|00003730| 2d 43 6f 6d 70 61 74 69 | 62 6c 65 20 6d 61 63 68 |-Compati|ble mach|
|00003740| 69 6e 65 73 3a 20 20 62 | 79 20 72 65 63 6f 6d 70 |ines: b|y recomp|
|00003750| 69 6c 69 6e 67 20 74 68 | 65 20 41 46 43 20 73 6f |iling th|e AFC so|
|00003760| 75 72 63 65 0a 63 6f 64 | 65 20 77 69 6c 6c 20 62 |urce.cod|e will b|
|00003770| 65 20 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 6f 62 |e possib|le to ob|
|00003780| 74 61 69 6e 20 61 6e 20 | 65 78 63 65 6c 6c 65 6e |tain an |excellen|
|00003790| 74 20 6c 69 62 72 61 72 | 79 20 6f 66 20 43 6c 61 |t librar|y of Cla|
|000037a0| 73 73 65 73 20 77 69 74 | 68 20 77 68 69 63 68 0a |sses wit|h which.|
|000037b0| 6f 6e 65 20 63 61 6e 20 | 65 61 73 69 6c 79 20 62 |one can |easily b|
|000037c0| 75 69 6c 64 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |uild app|lication|
|000037d0| 73 20 66 6f 72 20 74 68 | 65 20 6e 65 77 20 63 6f |s for th|e new co|
|000037e0| 6d 70 75 74 65 72 73 2e | 20 20 54 68 65 20 61 64 |mputers.| The ad|
|000037f0| 76 61 6e 74 61 67 65 20 | 6f 66 0a 75 73 69 6e 67 |vantage |of.using|
|00003800| 20 43 6c 61 73 73 65 73 | 20 6f 66 20 6f 62 6a 65 | Classes| of obje|
|00003810| 63 74 73 20 6f 76 65 72 | 20 74 68 65 20 4f 70 65 |cts over| the Ope|
|00003820| 72 61 74 69 6e 67 20 53 | 79 73 74 65 6d 20 63 61 |rating S|ystem ca|
|00003830| 6c 6c 73 20 69 73 20 64 | 75 65 20 74 6f 20 74 68 |lls is d|ue to th|
|00003840| 65 20 66 61 63 74 0a 74 | 68 61 74 20 73 75 63 68 |e fact.t|hat such|
|00003850| 20 43 6c 61 73 73 65 73 | 20 77 6f 72 6b 20 61 73 | Classes| work as|
|00003860| 20 61 6e 20 22 69 6e 74 | 65 72 66 61 63 65 22 20 | an "int|erface" |
|00003870| 62 65 74 77 65 65 6e 20 | 74 68 65 20 4f 53 20 61 |between |the OS a|
|00003880| 6e 64 20 74 68 65 20 70 | 72 6f 67 72 61 6d 6d 65 |nd the p|rogramme|
|00003890| 72 3a 0a 70 65 6f 70 6c | 65 20 74 68 61 74 20 70 |r:.peopl|e that p|
|000038a0| 72 6f 67 72 61 6d 6d 65 | 64 20 6f 6e 20 74 68 65 |rogramme|d on the|
|000038b0| 20 41 6d 69 67 61 20 75 | 73 69 6e 67 20 74 68 65 | Amiga u|sing the|
|000038c0| 20 41 46 43 20 77 69 6c | 6c 20 62 72 69 6e 67 20 | AFC wil|l bring |
|000038d0| 74 68 65 69 72 20 63 6f | 64 65 20 6f 6e 0a 74 68 |their co|de on.th|
|000038e0| 65 20 6e 65 77 20 6d 61 | 63 68 69 6e 65 73 20 62 |e new ma|chines b|
|000038f0| 79 20 73 69 6d 70 6c 79 | 20 72 65 63 6f 6d 70 69 |y simply| recompi|
|00003900| 6c 69 6e 67 20 74 68 65 | 20 73 6f 75 72 63 65 73 |ling the| sources|
|00003910| 20 61 6e 64 20 75 73 69 | 6e 67 20 74 68 65 20 41 | and usi|ng the A|
|00003920| 46 43 0a 76 65 72 73 69 | 6f 6e 20 69 6d 70 6c 65 |FC.versi|on imple|
|00003930| 6d 65 6e 74 65 64 20 6f | 6e 20 74 68 65 20 6e 65 |mented o|n the ne|
|00003940| 77 20 63 6f 6d 70 75 74 | 65 72 20 6f 6e 20 77 68 |w comput|er on wh|
|00003950| 69 63 68 20 74 68 65 79 | 20 61 72 65 20 77 6f 72 |ich they| are wor|
|00003960| 6b 69 6e 67 2e 20 20 54 | 68 61 6e 6b 0a 74 6f 20 |king. T|hank.to |
|00003970| 74 68 65 20 41 46 43 2c | 20 70 72 6f 67 72 61 6d |the AFC,| program|
|00003980| 6d 65 72 73 20 77 69 6c | 6c 20 73 61 76 65 20 61 |mers wil|l save a|
|00003990| 20 6c 6f 74 20 6f 66 20 | 74 69 6d 65 20 28 6f 74 | lot of |time (ot|
|000039a0| 68 65 72 77 69 73 65 20 | 73 70 65 6e 74 20 69 6e |herwise |spent in|
|000039b0| 0a 6c 65 61 72 6e 69 6e | 67 20 74 68 65 20 6e 65 |.learnin|g the ne|
|000039c0| 77 20 4f 53 29 20 61 6e | 64 20 77 69 6c 6c 20 6b |w OS) an|d will k|
|000039d0| 65 65 70 20 6f 6e 20 75 | 73 69 6e 67 20 74 68 65 |eep on u|sing the|
|000039e0| 20 73 61 6d 65 20 43 6c | 61 73 73 65 73 20 77 69 | same Cl|asses wi|
|000039f0| 74 68 20 74 68 65 20 73 | 61 6d 65 0a 73 69 6e 74 |th the s|ame.sint|
|00003a00| 61 78 20 61 6e 64 20 74 | 68 65 20 73 61 6d 65 20 |ax and t|he same |
|00003a10| 62 65 68 61 76 69 6f 75 | 72 2e 20 20 54 68 69 73 |behaviou|r. This|
|00003a20| 20 69 6d 70 6c 69 65 73 | 2c 20 61 74 20 6c 65 61 | implies|, at lea|
|00003a30| 73 74 20 69 6e 20 6f 75 | 72 20 69 6e 74 65 6e 74 |st in ou|r intent|
|00003a40| 69 6f 6e 73 2c 0a 74 68 | 61 74 20 74 68 65 20 73 |ions,.th|at the s|
|00003a50| 6f 66 74 77 61 72 65 20 | 77 69 6c 6c 20 62 65 20 |oftware |will be |
|00003a60| 64 65 76 65 6c 6f 70 65 | 64 20 62 65 74 74 65 72 |develope|d better|
|00003a70| 20 61 6e 64 20 69 6e 20 | 61 20 73 68 6f 72 74 65 | and in |a shorte|
|00003a80| 72 20 74 69 6d 65 2e 20 | 20 54 68 65 20 72 69 73 |r time. | The ris|
|00003a90| 6b 0a 74 68 61 74 20 65 | 76 65 72 79 20 6e 65 77 |k.that e|very new|
|00003aa0| 20 4f 70 65 72 61 74 69 | 6e 67 20 53 79 73 74 65 | Operati|ng Syste|
|00003ab0| 6d 20 68 61 73 20 74 6f | 20 66 61 63 65 2c 20 77 |m has to| face, w|
|00003ac0| 68 65 6e 20 69 74 20 66 | 69 72 73 74 20 63 6f 6d |hen it f|irst com|
|00003ad0| 65 73 20 74 6f 20 6c 69 | 66 65 2c 0a 69 73 20 74 |es to li|fe,.is t|
|00003ae0| 68 65 20 6c 61 63 6b 20 | 6f 66 20 70 72 6f 66 65 |he lack |of profe|
|00003af0| 73 73 69 6f 6e 61 6c 20 | 73 6f 66 74 77 61 72 65 |ssional |software|
|00003b00| 2e 20 20 54 68 61 6e 6b | 20 74 6f 20 74 68 65 20 |. Thank| to the |
|00003b10| 41 46 43 20 69 74 20 77 | 69 6c 6c 20 62 65 20 70 |AFC it w|ill be p|
|00003b20| 6f 73 73 69 62 6c 65 0a | 74 6f 20 70 72 6f 76 69 |ossible.|to provi|
|00003b30| 64 65 20 69 6e 20 62 72 | 69 65 66 20 74 69 6d 65 |de in br|ief time|
|00003b40| 20 70 72 6f 66 65 73 73 | 69 6f 6e 61 6c 20 70 72 | profess|ional pr|
|00003b50| 6f 64 75 63 74 73 20 66 | 6f 72 20 74 68 65 73 65 |oducts f|or these|
|00003b60| 20 6e 65 77 20 4f 53 2e | 0a 40 65 6e 64 6e 6f 64 | new OS.|.@endnod|
|00003b70| 65 0a 0a 40 6e 6f 64 65 | 20 22 49 6e 74 72 6f 5f |e..@node| "Intro_|
|00003b80| 35 22 20 22 49 6e 74 65 | 72 66 61 63 69 6e 67 20 |5" "Inte|rfacing |
|00003b90| 77 69 74 68 20 6e 65 77 | 20 41 6d 69 67 61 20 4f |with new| Amiga O|
|00003ba0| 53 20 43 6f 6d 70 61 74 | 69 62 6c 65 73 22 0a 32 |S Compat|ibles".2|
|00003bb0| 2e 35 20 2d 20 49 6e 74 | 65 72 66 61 63 69 6e 67 |.5 - Int|erfacing|
|00003bc0| 20 77 69 74 68 20 6e 65 | 77 20 41 6d 69 67 61 20 | with ne|w Amiga |
|00003bd0| 4f 53 20 43 6f 6d 70 61 | 74 69 62 6c 65 73 0a 0a |OS Compa|tibles..|
|00003be0| 49 74 27 73 20 6f 75 72 | 20 69 6e 74 65 6e 74 69 |It's our| intenti|
|00003bf0| 6f 6e 20 74 6f 20 66 72 | 65 65 6c 79 20 73 75 70 |on to fr|eely sup|
|00003c00| 70 6c 79 20 64 65 76 65 | 6c 6f 70 65 72 73 20 6f |ply deve|lopers o|
|00003c10| 66 20 41 6d 69 67 61 2d | 43 6f 6d 70 61 74 69 62 |f Amiga-|Compatib|
|00003c20| 6c 65 20 4f 53 20 77 69 | 74 68 0a 74 68 65 20 73 |le OS wi|th.the s|
|00003c30| 6f 75 72 63 65 20 63 6f | 64 65 20 6f 66 20 74 68 |ource co|de of th|
|00003c40| 65 20 41 46 43 2c 20 62 | 65 20 74 68 65 79 20 50 |e AFC, b|e they P|
|00003c50| 68 61 73 65 35 2c 20 56 | 69 73 43 6f 72 70 2c 20 |hase5, V|isCorp, |
|00003c60| 42 65 20 49 6e 63 2e 2c | 20 41 52 4f 53 2c 20 70 |Be Inc.,| AROS, p|
|00003c70| 2d 4f 53 2c 0a 50 49 4f | 53 2c 20 65 74 63 2e 20 |-OS,.PIO|S, etc. |
|00003c80| 20 49 6e 64 65 65 64 2c | 20 77 65 20 61 72 65 20 | Indeed,| we are |
|00003c90| 70 65 72 73 75 61 64 65 | 64 20 74 68 61 74 20 74 |persuade|d that t|
|00003ca0| 68 65 20 66 75 74 75 72 | 65 20 6f 66 20 61 20 6e |he futur|e of a n|
|00003cb0| 65 77 20 6d 61 63 68 69 | 6e 65 2c 0a 70 6f 73 73 |ew machi|ne,.poss|
|00003cc0| 69 62 6c 79 20 6e 6f 74 | 20 64 65 70 65 6e 64 69 |ibly not| dependi|
|00003cd0| 6e 67 20 6f 6e 20 4d 69 | 63 72 6f 73 6f 66 74 2c |ng on Mi|crosoft,|
|00003ce0| 20 69 73 20 74 6f 20 62 | 65 20 66 6f 75 6e 64 20 | is to b|e found |
|00003cf0| 69 6e 20 74 68 65 20 70 | 6f 73 73 69 62 69 6c 69 |in the p|ossibili|
|00003d00| 74 79 20 6f 66 0a 68 61 | 76 69 6e 67 20 69 6e 20 |ty of.ha|ving in |
|00003d10| 61 20 73 68 6f 72 74 20 | 74 69 6d 65 20 73 6f 66 |a short |time sof|
|00003d20| 74 77 61 72 65 20 70 72 | 6f 64 75 63 74 73 20 6f |tware pr|oducts o|
|00003d30| 66 20 61 20 70 72 6f 66 | 65 73 73 69 6f 6e 61 6c |f a prof|essional|
|00003d40| 20 71 75 61 6c 69 74 79 | 2e 20 20 54 68 75 73 0a | quality|. Thus.|
|00003d50| 74 68 65 20 41 46 43 20 | 73 6f 75 72 63 65 73 20 |the AFC |sources |
|00003d60| 77 69 6c 6c 20 62 65 20 | 70 72 6f 76 69 64 65 64 |will be |provided|
|00003d70| 20 74 6f 20 65 76 65 72 | 79 20 4f 53 20 64 65 76 | to ever|y OS dev|
|00003d80| 65 6c 6f 70 65 72 20 74 | 68 61 74 20 77 69 6c 6c |eloper t|hat will|
|00003d90| 20 61 73 6b 20 66 6f 72 | 0a 74 68 65 6d 2e 20 20 | ask for|.them. |
|00003da0| 54 68 65 6e 20 74 68 65 | 20 70 61 72 74 69 63 75 |Then the| particu|
|00003db0| 6c 61 72 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |lar impl|ementati|
|00003dc0| 6f 6e 20 77 69 6c 6c 20 | 62 65 20 65 78 61 6d 69 |on will |be exami|
|00003dd0| 6e 65 64 20 62 79 20 74 | 68 65 0a 73 75 70 65 72 |ned by t|he.super|
|00003de0| 76 69 73 6f 72 73 20 6f | 66 20 41 46 43 20 74 68 |visors o|f AFC th|
|00003df0| 61 74 20 77 69 6c 6c 20 | 67 69 76 65 20 74 68 65 |at will |give the|
|00003e00| 69 72 20 61 70 70 72 6f | 76 61 6c 20 61 6e 64 20 |ir appro|val and |
|00003e10| 61 6c 6c 6f 77 20 74 68 | 65 0a 64 69 73 74 72 69 |allow th|e.distri|
|00003e20| 62 75 74 69 6f 6e 2e 20 | 20 53 65 65 20 73 65 63 |bution. | See sec|
|00003e30| 74 69 6f 6e 20 35 2e 30 | 20 66 6f 72 20 6d 6f 72 |tion 5.0| for mor|
|00003e40| 65 20 69 6e 66 6f 73 2e | 0a 40 65 6e 64 6e 6f 64 |e infos.|.@endnod|
|00003e50| 65 0a 0a 40 6e 6f 64 65 | 20 22 49 6d 70 6c 5f 31 |e..@node| "Impl_1|
|00003e60| 22 20 22 48 6f 77 20 74 | 6f 20 77 72 69 74 65 20 |" "How t|o write |
|00003e70| 61 20 43 6c 61 73 73 20 | 66 6f 72 20 74 68 65 20 |a Class |for the |
|00003e80| 41 6d 69 67 61 20 46 6f | 75 6e 64 61 74 69 6f 6e |Amiga Fo|undation|
|00003e90| 20 43 6c 61 73 73 65 73 | 22 0a 33 2e 31 20 2d 20 | Classes|".3.1 - |
|00003ea0| 48 6f 77 20 74 6f 20 77 | 72 69 74 65 20 61 20 43 |How to w|rite a C|
|00003eb0| 6c 61 73 73 20 66 6f 72 | 20 74 68 65 20 41 6d 69 |lass for| the Ami|
|00003ec0| 67 61 20 46 6f 75 6e 64 | 61 74 69 6f 6e 20 43 6c |ga Found|ation Cl|
|00003ed0| 61 73 73 65 73 0a 0a 20 | 20 20 20 40 7b 22 20 43 |asses.. | @{" C|
|00003ee0| 6c 61 73 73 20 4e 61 6d | 65 20 20 20 20 20 20 20 |lass Nam|e |
|00003ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f00| 20 20 20 20 20 22 20 4c | 49 4e 4b 20 22 49 6d 70 | " L|INK "Imp|
|00003f10| 6c 5f 31 5f 31 22 7d 0a | 20 20 20 20 40 7b 22 20 |l_1_1"}.| @{" |
|00003f20| 4d 65 74 68 6f 64 73 27 | 20 4e 61 6d 65 73 20 20 |Methods'| Names |
|00003f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f40| 20 20 20 20 20 20 22 20 | 4c 49 4e 4b 20 22 49 6d | " |LINK "Im|
|00003f50| 70 6c 5f 31 5f 32 22 7d | 0a 20 20 20 20 40 7b 22 |pl_1_2"}|. @{"|
|00003f60| 20 4f 62 6a 65 63 74 20 | 49 6e 68 65 72 69 74 61 | Object |Inherita|
|00003f70| 6e 63 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |nce | |
|00003f80| 20 20 20 20 20 20 20 22 | 20 4c 49 4e 4b 20 22 49 | "| LINK "I|
|00003f90| 6d 70 6c 5f 31 5f 33 22 | 7d 0a 20 20 20 20 40 7b |mpl_1_3"|}. @{|
|00003fa0| 22 20 4f 62 6a 65 63 74 | 20 49 6e 69 74 69 61 6c |" Object| Initial|
|00003fb0| 69 7a 61 74 69 6f 6e 20 | 61 6e 64 20 44 65 73 74 |ization |and Dest|
|00003fc0| 72 75 63 74 69 6f 6e 20 | 22 20 4c 49 4e 4b 20 22 |ruction |" LINK "|
|00003fd0| 49 6d 70 6c 5f 31 5f 34 | 22 7d 0a 20 20 20 20 40 |Impl_1_4|"}. @|
|00003fe0| 7b 22 20 4c 69 62 72 61 | 72 69 65 73 20 41 6e 64 |{" Libra|ries And|
|00003ff0| 20 6c 6f 77 65 73 74 20 | 4f 53 20 56 65 72 73 69 | lowest |OS Versi|
|00004000| 6f 6e 73 20 20 20 20 20 | 20 22 20 4c 49 4e 4b 20 |ons | " LINK |
|00004010| 22 49 6d 70 6c 5f 31 5f | 35 22 7d 0a 20 20 20 20 |"Impl_1_|5"}. |
|00004020| 40 7b 22 20 54 61 67 73 | 20 20 20 20 20 20 20 20 |@{" Tags| |
|00004030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004040| 20 20 20 20 20 20 20 20 | 20 20 22 20 4c 49 4e 4b | | " LINK|
|00004050| 20 22 49 6d 70 6c 5f 31 | 5f 36 22 7d 0a 40 65 6e | "Impl_1|_6"}.@en|
|00004060| 64 6e 6f 64 65 0a 0a 40 | 6e 6f 64 65 20 22 49 6d |dnode..@|node "Im|
|00004070| 70 6c 5f 31 5f 31 22 20 | 22 43 6c 61 73 73 20 6e |pl_1_1" |"Class n|
|00004080| 61 6d 65 22 0a 33 2e 31 | 2e 31 20 2d 20 43 6c 61 |ame".3.1|.1 - Cla|
|00004090| 73 73 20 6e 61 6d 65 0a | 0a 20 20 2d 20 54 68 65 |ss name.|. - The|
|000040a0| 20 43 6c 61 73 73 20 6d | 75 73 74 20 68 61 76 65 | Class m|ust have|
|000040b0| 20 61 20 75 6e 69 71 75 | 65 20 61 6e 64 20 75 6e | a uniqu|e and un|
|000040c0| 64 65 72 73 74 61 6e 64 | 61 62 6c 65 20 6e 61 6d |derstand|able nam|
|000040d0| 65 2e 0a 20 20 2d 20 54 | 68 65 20 63 6c 61 73 73 |e.. - T|he class|
|000040e0| 20 6e 61 6d 65 20 6d 75 | 73 74 20 62 65 20 6c 6f | name mu|st be lo|
|000040f0| 77 65 72 63 61 73 65 2e | 0a 20 20 2d 20 54 68 65 |wercase.|. - The|
|00004100| 20 63 6c 61 73 73 20 6e | 61 6d 65 20 6d 75 73 74 | class n|ame must|
|00004110| 20 62 65 20 69 6e 20 45 | 6e 67 6c 69 73 68 2e 0a | be in E|nglish..|
|00004120| 20 20 2d 20 54 68 65 20 | 63 6c 61 73 73 20 6e 61 | - The |class na|
|00004130| 6d 65 20 6d 75 73 74 20 | 4e 4f 54 20 62 65 20 74 |me must |NOT be t|
|00004140| 68 65 20 6e 61 6d 65 20 | 6f 66 20 61 6e 20 41 6d |he name |of an Am|
|00004150| 69 67 61 20 73 79 73 74 | 65 6d 20 73 74 72 75 63 |iga syst|em struc|
|00004160| 74 75 72 65 2e 0a 0a 21 | 20 20 20 50 6c 65 61 73 |ture...!| Pleas|
|00004170| 65 2c 20 6e 6f 74 65 20 | 74 68 61 74 20 74 68 65 |e, note |that the|
|00004180| 20 22 5f 6f 62 6a 22 20 | 6e 61 6d 69 6e 67 20 63 | "_obj" |naming c|
|00004190| 6f 6e 76 65 6e 74 69 6f | 6e 20 68 61 73 20 62 65 |onventio|n has be|
|000041a0| 65 6e 20 64 69 73 63 61 | 72 74 65 64 2e 0a 21 20 |en disca|rted..! |
|000041b0| 20 20 55 73 65 20 6a 75 | 73 74 20 75 6e 69 71 75 | Use ju|st uniqu|
|000041c0| 65 20 6e 61 6d 65 73 20 | 74 68 61 74 20 64 6f 6e |e names |that don|
|000041d0| 27 74 20 63 6f 6c 6c 69 | 64 65 20 61 67 61 69 6e |'t colli|de again|
|000041e0| 73 74 20 41 6d 69 67 61 | 20 73 79 73 74 65 6d 20 |st Amiga| system |
|000041f0| 73 74 72 75 63 74 75 72 | 65 73 0a 21 20 20 20 6e |structur|es.! n|
|00004200| 61 6d 65 73 0a 0a 0a 20 | 20 2d 20 49 66 20 69 6e |ames... | - If in|
|00004210| 20 64 6f 75 62 74 2c 20 | 79 6f 75 20 63 61 6e 20 | doubt, |you can |
|00004220| 61 6c 77 61 79 73 20 61 | 64 64 20 74 6f 20 74 68 |always a|dd to th|
|00004230| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 63 6c |e name o|f the cl|
|00004240| 61 73 73 20 74 68 65 20 | 73 75 66 66 69 78 0a 20 |ass the |suffix. |
|00004250| 20 20 20 22 5f 6f 62 6a | 22 2e 0a 40 65 6e 64 6e | "_obj|"..@endn|
|00004260| 6f 64 65 0a 0a 40 6e 6f | 64 65 20 22 49 6d 70 6c |ode..@no|de "Impl|
|00004270| 5f 31 5f 32 22 20 22 4d | 65 74 68 6f 64 73 27 20 |_1_2" "M|ethods' |
|00004280| 6e 61 6d 65 73 22 0a 33 | 2e 31 2e 32 20 2d 20 4d |names".3|.1.2 - M|
|00004290| 65 74 68 6f 64 73 27 20 | 6e 61 6d 65 73 0a 0a 20 |ethods' |names.. |
|000042a0| 20 2d 20 54 68 65 20 6e | 61 6d 65 20 6f 66 20 61 | - The n|ame of a|
|000042b0| 20 6d 65 74 68 6f 64 20 | 6d 75 73 74 20 62 65 20 | method |must be |
|000042c0| 61 73 20 73 68 6f 72 74 | 65 73 74 20 61 6e 64 20 |as short|est and |
|000042d0| 63 6c 65 61 72 20 61 73 | 20 70 6f 73 73 69 62 6c |clear as| possibl|
|000042e0| 65 2e 20 20 45 2e 67 2e | 2c 0a 20 20 20 20 69 6e |e. E.g.|,. in|
|000042f0| 20 61 20 63 6c 61 73 73 | 20 64 65 73 69 67 6e 65 | a class| designe|
|00004300| 64 20 74 6f 20 6d 61 6e | 61 67 65 20 61 20 6c 69 |d to man|age a li|
|00004310| 73 74 20 6f 66 20 6e 6f | 64 65 73 20 74 68 65 20 |st of no|des the |
|00004320| 6d 65 74 68 6f 64 20 74 | 68 61 74 20 61 64 64 73 |method t|hat adds|
|00004330| 20 61 0a 20 20 20 20 6e | 6f 64 65 20 6d 75 73 74 | a. n|ode must|
|00004340| 20 4e 4f 54 20 62 65 20 | 63 61 6c 6c 65 64 20 22 | NOT be |called "|
|00004350| 61 64 64 6e 6f 64 65 22 | 2c 20 62 75 74 20 73 69 |addnode"|, but si|
|00004360| 6d 70 6c 79 20 22 61 64 | 64 22 2e 0a 21 20 2d 20 |mply "ad|d"..! - |
|00004370| 54 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 20 6d 65 |The name| of a me|
|00004380| 74 68 6f 64 20 6d 75 73 | 74 20 73 74 61 72 74 20 |thod mus|t start |
|00004390| 69 6e 20 6c 6f 77 65 72 | 63 61 73 65 2e 0a 0a 21 |in lower|case...!|
|000043a0| 20 20 20 46 72 6f 6d 20 | 56 31 2e 35 30 20 6f 66 | From |V1.50 of|
|000043b0| 20 41 46 43 20 77 68 69 | 74 65 20 70 61 70 65 72 | AFC whi|te paper|
|000043c0| 2c 20 79 6f 75 20 63 61 | 6e 20 63 72 65 61 74 65 |, you ca|n create|
|000043d0| 20 6e 61 6d 65 73 20 77 | 69 74 68 20 55 50 50 45 | names w|ith UPPE|
|000043e0| 52 43 41 53 45 20 63 68 | 61 72 73 0a 21 20 20 20 |RCASE ch|ars.! |
|000043f0| 74 6f 20 65 61 73 79 20 | 6d 65 74 68 6f 64 20 6e |to easy |method n|
|00004400| 61 6d 69 6e 67 3a 20 0a | 21 0a 21 20 20 20 69 65 |aming: .|!.! ie|
|00004410| 2e 20 22 61 64 64 76 69 | 65 77 74 6f 63 6f 70 70 |. "addvi|ewtocopp|
|00004420| 65 72 6c 69 73 74 22 20 | 6e 6f 77 20 63 61 6e 20 |erlist" |now can |
|00004430| 62 65 63 6f 6d 65 3a 0a | 21 20 20 20 20 20 20 20 |become:.|! |
|00004440| 22 61 64 64 56 69 65 77 | 54 6f 43 6f 70 70 65 72 |"addView|ToCopper|
|00004450| 4c 69 73 74 22 20 6f 72 | 20 73 69 6d 69 6c 61 72 |List" or| similar|
|00004460| 2e 0a 21 0a 21 20 20 20 | 70 6c 65 61 73 65 2c 20 |..!.! |please, |
|00004470| 6e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 66 69 |note tha|t the fi|
|00004480| 72 73 74 20 63 68 61 72 | 73 20 2a 4d 55 53 54 2a |rst char|s *MUST*|
|00004490| 20 62 65 20 6c 6f 77 65 | 72 63 61 73 65 20 61 6e | be lowe|rcase an|
|000044a0| 79 77 61 79 2e 0a 21 0a | 21 20 20 20 54 68 69 73 |yway..!.|! This|
|000044b0| 20 77 61 79 20 6f 66 20 | 6e 61 6d 69 6e 67 20 69 | way of |naming i|
|000044c0| 73 20 6d 6f 72 65 20 63 | 6c 6f 73 65 20 74 6f 20 |s more c|lose to |
|000044d0| 53 75 6e 27 73 20 4a 61 | 76 61 20 6c 61 6e 67 75 |Sun's Ja|va langu|
|000044e0| 61 67 65 2c 20 61 6e 6f | 74 68 65 72 0a 21 20 20 |age, ano|ther.! |
|000044f0| 20 70 6c 61 63 65 20 77 | 68 65 72 65 20 77 65 20 | place w|here we |
|00004500| 61 72 65 20 70 6c 61 6e | 6e 69 6e 67 20 74 6f 20 |are plan|ning to |
|00004510| 70 6f 72 74 20 41 46 43 | 20 74 6f 2e 0a 0a 0a 20 |port AFC| to.... |
|00004520| 20 2d 20 54 68 65 20 6e | 61 6d 65 20 6f 66 20 61 | - The n|ame of a|
|00004530| 20 6d 65 74 68 6f 64 20 | 6d 75 73 74 20 62 65 20 | method |must be |
|00004540| 69 6e 20 45 6e 67 6c 69 | 73 68 2e 0a 40 65 6e 64 |in Engli|sh..@end|
|00004550| 6e 6f 64 65 0a 0a 40 6e | 6f 64 65 20 22 49 6d 70 |node..@n|ode "Imp|
|00004560| 6c 5f 31 5f 33 22 20 22 | 4f 62 6a 65 63 74 20 49 |l_1_3" "|Object I|
|00004570| 6e 68 65 72 69 74 61 6e | 63 65 22 0a 33 2e 31 2e |nheritan|ce".3.1.|
|00004580| 33 20 2d 20 4f 62 6a 65 | 63 74 20 49 6e 68 65 72 |3 - Obje|ct Inher|
|00004590| 69 74 61 6e 63 65 0a 0a | 54 68 65 20 4f 62 6a 65 |itance..|The Obje|
|000045a0| 63 74 20 49 6e 68 65 72 | 69 74 61 6e 63 65 20 74 |ct Inher|itance t|
|000045b0| 69 70 69 63 61 6c 20 6f | 66 20 74 68 65 20 4f 4f |ipical o|f the OO|
|000045c0| 50 20 6d 75 73 74 20 62 | 65 20 75 73 65 64 20 61 |P must b|e used a|
|000045d0| 73 20 6c 69 74 74 6c 65 | 20 61 73 20 79 6f 75 0a |s little| as you.|
|000045e0| 63 61 6e 2e 20 20 54 68 | 69 73 20 62 65 63 61 75 |can. Th|is becau|
|000045f0| 73 65 20 74 68 65 20 4f | 62 6a 65 63 74 20 49 6e |se the O|bject In|
|00004600| 68 65 72 69 74 61 6e 63 | 65 20 69 73 20 69 6d 70 |heritanc|e is imp|
|00004610| 6c 65 6d 65 6e 74 65 64 | 20 64 69 66 66 65 72 65 |lemented| differe|
|00004620| 6e 74 6c 79 20 69 6e 20 | 74 68 65 0a 76 61 72 69 |ntly in |the.vari|
|00004630| 6f 75 73 20 6c 61 6e 67 | 75 61 67 65 73 2e 20 20 |ous lang|uages. |
|00004640| 54 68 65 20 41 46 43 20 | 73 6f 75 72 63 65 73 20 |The AFC |sources |
|00004650| 6d 75 73 74 20 62 65 20 | 75 6e 64 65 72 73 74 61 |must be |understa|
|00004660| 6e 64 61 62 6c 65 20 74 | 6f 20 61 6c 6c 6f 77 20 |ndable t|o allow |
|00004670| 66 6f 72 20 61 6e 0a 65 | 61 73 69 65 72 20 70 6f |for an.e|asier po|
|00004680| 72 74 69 6e 67 20 61 6e | 64 20 72 65 61 64 61 62 |rting an|d readab|
|00004690| 69 6c 69 74 79 2e 20 20 | 54 68 75 73 20 69 74 20 |ility. |Thus it |
|000046a0| 69 73 20 46 4f 52 42 49 | 44 44 45 4e 20 74 68 65 |is FORBI|DDEN the|
|000046b0| 20 75 73 65 20 6f 66 20 | 70 61 72 74 69 63 75 6c | use of |particul|
|000046c0| 61 72 0a 73 79 6e 74 61 | 78 20 72 75 6c 65 73 20 |ar.synta|x rules |
|000046d0| 63 68 61 72 61 63 74 65 | 72 69 73 74 69 63 20 6f |characte|ristic o|
|000046e0| 66 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 6c |f a part|icular l|
|000046f0| 61 6e 67 75 61 67 65 2e | 20 20 45 2e 67 2e 2c 20 |anguage.| E.g., |
|00004700| 61 72 65 20 6e 6f 74 0a | 61 6c 6c 6f 77 65 64 20 |are not.|allowed |
|00004710| 73 74 72 75 63 74 75 72 | 65 73 20 6f 66 20 74 68 |structur|es of th|
|00004720| 65 20 22 66 72 69 65 6e | 64 22 20 74 79 70 65 20 |e "frien|d" type |
|00004730| 6f 72 20 74 68 65 20 4d | 75 6c 74 69 70 6c 65 20 |or the M|ultiple |
|00004740| 49 6e 68 65 72 69 74 61 | 6e 63 65 20 6f 66 20 74 |Inherita|nce of t|
|00004750| 68 65 0a 43 2b 2b 20 6c | 61 6e 67 75 61 67 65 2e |he.C++ l|anguage.|
|00004760| 0a 0a 21 20 49 74 27 73 | 20 61 64 76 69 73 61 62 |..! It's| advisab|
|00004770| 6c 65 20 74 6f 20 73 75 | 62 73 74 69 74 75 74 65 |le to su|bstitute|
|00004780| 20 74 68 65 20 4f 62 6a | 65 63 74 20 49 6e 68 65 | the Obj|ect Inhe|
|00004790| 72 69 74 61 6e 63 65 20 | 77 69 74 68 20 74 68 65 |ritance |with the|
|000047a0| 20 63 72 65 61 74 69 6f | 6e 20 6f 66 20 61 0a 21 | creatio|n of a.!|
|000047b0| 20 63 6f 70 79 20 6f 66 | 20 74 68 65 20 43 6c 61 | copy of| the Cla|
|000047c0| 73 73 20 74 6f 20 62 65 | 20 22 72 65 75 73 65 64 |ss to be| "reused|
|000047d0| 22 20 69 6e 20 74 68 65 | 20 6e 65 77 20 43 6c 61 |" in the| new Cla|
|000047e0| 73 73 2e 20 20 45 2e 67 | 2e 2c 20 69 66 20 79 6f |ss. E.g|., if yo|
|000047f0| 75 20 68 61 76 65 20 74 | 6f 0a 21 20 69 6e 68 65 |u have t|o.! inhe|
|00004800| 72 69 74 20 74 68 65 20 | 43 6c 61 73 73 20 22 62 |rit the |Class "b|
|00004810| 69 74 6d 61 70 70 65 72 | 22 20 69 6e 20 74 68 65 |itmapper|" in the|
|00004820| 20 43 6c 61 73 73 20 22 | 70 69 63 74 75 72 65 22 | Class "|picture"|
|00004830| 20 28 6e 6f 74 69 63 65 | 20 74 68 65 20 6e 61 6d | (notice| the nam|
|00004840| 65 0a 21 20 6c 6f 77 65 | 72 63 61 73 65 20 61 6e |e.! lowe|rcase an|
|00004850| 64 20 69 6e 20 45 6e 67 | 6c 69 73 68 29 20 69 74 |d in Eng|lish) it|
|00004860| 27 73 20 61 64 76 69 73 | 61 62 6c 65 20 74 6f 20 |'s advis|able to |
|00004870| 63 6f 70 79 20 74 68 65 | 20 22 62 69 74 6d 61 70 |copy the| "bitmap|
|00004880| 70 65 72 22 20 43 6c 61 | 73 73 20 69 6e 0a 21 20 |per" Cla|ss in.! |
|00004890| 74 68 65 20 22 70 69 63 | 74 75 72 65 22 20 43 6c |the "pic|ture" Cl|
|000048a0| 61 73 73 2e 0a 40 65 6e | 64 6e 6f 64 65 0a 0a 40 |ass..@en|dnode..@|
|000048b0| 6e 6f 64 65 20 22 49 6d | 70 6c 5f 31 5f 34 22 20 |node "Im|pl_1_4" |
|000048c0| 22 4f 62 6a 65 63 74 20 | 49 6e 69 74 69 61 6c 69 |"Object |Initiali|
|000048d0| 7a 61 74 69 6f 6e 20 61 | 6e 64 20 4f 62 6a 65 63 |zation a|nd Objec|
|000048e0| 74 20 44 65 73 74 72 75 | 63 74 69 6f 6e 22 0a 33 |t Destru|ction".3|
|000048f0| 2e 31 2e 34 20 2d 20 4f | 62 6a 65 63 74 20 49 6e |.1.4 - O|bject In|
|00004900| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 61 6e 64 |itializa|tion and|
|00004910| 20 4f 62 6a 65 63 74 20 | 44 65 73 74 72 75 63 74 | Object |Destruct|
|00004920| 69 6f 6e 0a 0a 54 68 65 | 20 69 6e 69 74 69 61 6c |ion..The| initial|
|00004930| 69 7a 61 74 69 6f 6e 20 | 61 6e 64 20 64 65 73 74 |ization |and dest|
|00004940| 72 75 63 74 69 6f 6e 20 | 6f 66 20 61 20 43 6c 61 |ruction |of a Cla|
|00004950| 73 73 20 6d 75 73 74 20 | 62 65 20 61 6c 77 61 79 |ss must |be alway|
|00004960| 73 20 70 65 72 66 6f 72 | 6d 65 64 20 62 79 0a 6d |s perfor|med by.m|
|00004970| 65 61 6e 73 20 6f 66 20 | 74 77 6f 20 70 61 72 74 |eans of |two part|
|00004980| 69 63 75 6c 61 72 20 4d | 65 74 68 6f 64 73 3a 20 |icular M|ethods: |
|00004990| 20 74 68 65 20 49 6e 69 | 74 69 61 6c 69 7a 61 74 | the Ini|tializat|
|000049a0| 69 6f 6e 20 6d 65 74 68 | 6f 64 20 61 6e 64 20 74 |ion meth|od and t|
|000049b0| 68 65 0a 44 65 73 74 72 | 75 63 74 69 6f 6e 20 6f |he.Destr|uction o|
|000049c0| 6e 65 2e 0a 0a 54 68 65 | 20 49 6e 69 74 69 61 6c |ne...The| Initial|
|000049d0| 69 7a 61 74 69 6f 6e 20 | 6d 65 74 68 6f 64 20 6d |ization |method m|
|000049e0| 75 73 74 20 68 61 76 65 | 20 74 68 65 20 73 61 6d |ust have| the sam|
|000049f0| 65 20 6e 61 6d 65 20 61 | 73 20 74 68 65 20 43 6c |e name a|s the Cl|
|00004a00| 61 73 73 2e 20 20 45 2e | 67 2e 2c 20 74 68 65 0a |ass. E.|g., the.|
|00004a10| 49 6e 69 74 69 61 6c 69 | 7a 61 74 69 6f 6e 20 6d |Initiali|zation m|
|00004a20| 65 74 68 6f 64 20 6f 66 | 20 74 68 65 20 22 70 69 |ethod of| the "pi|
|00004a30| 63 74 75 72 65 22 20 43 | 6c 61 73 73 20 6d 75 73 |cture" C|lass mus|
|00004a40| 74 20 62 65 20 63 61 6c | 6c 65 64 20 22 70 69 63 |t be cal|led "pic|
|00004a50| 74 75 72 65 28 29 22 0a | 28 77 69 74 68 20 70 61 |ture()".|(with pa|
|00004a60| 72 61 6d 65 74 65 72 73 | 20 62 65 74 77 65 65 6e |rameters| between|
|00004a70| 20 74 68 65 20 62 72 61 | 63 6b 65 74 73 2c 20 69 | the bra|ckets, i|
|00004a80| 66 20 6e 65 65 64 65 64 | 29 2e 0a 0a 54 68 65 20 |f needed|)...The |
|00004a90| 44 65 73 74 72 75 63 74 | 69 6f 6e 20 6d 65 74 68 |Destruct|ion meth|
|00004aa0| 6f 64 20 6f 66 20 61 20 | 63 6c 61 73 73 20 6d 75 |od of a |class mu|
|00004ab0| 73 74 20 62 65 20 6e 61 | 6d 65 64 20 22 65 6e 64 |st be na|med "end|
|00004ac0| 28 29 22 20 61 6e 64 20 | 6d 75 73 74 20 4e 4f 54 |()" and |must NOT|
|00004ad0| 0a 72 65 71 75 69 72 65 | 20 61 6e 79 20 70 61 72 |.require| any par|
|00004ae0| 61 6d 65 74 65 72 2e 0a | 0a 21 20 49 6e 20 74 68 |ameter..|.! In th|
|00004af0| 65 20 43 2b 2b 20 76 65 | 72 73 69 6f 6e 20 6f 66 |e C++ ve|rsion of|
|00004b00| 20 41 46 43 20 63 6c 61 | 73 73 65 73 20 74 68 65 | AFC cla|sses the|
|00004b10| 20 64 65 73 74 72 75 63 | 74 69 6f 6e 20 6d 65 74 | destruc|tion met|
|00004b20| 68 6f 64 20 63 61 6e 20 | 61 6c 73 6f 0a 21 20 62 |hod can |also.! b|
|00004b30| 65 20 63 61 6c 6c 65 64 | 20 77 69 74 68 20 74 68 |e called| with th|
|00004b40| 65 20 73 74 61 6e 64 61 | 72 64 20 43 2b 2b 20 6e |e standa|rd C++ n|
|00004b50| 6f 74 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 22 |otation |of the "|
|00004b60| 7e 22 20 63 68 61 72 2e | 0a 21 20 53 6f 20 74 68 |~" char.|.! So th|
|00004b70| 65 20 44 65 73 74 72 75 | 63 74 69 6f 6e 20 6d 65 |e Destru|ction me|
|00004b80| 74 68 6f 64 20 6f 66 20 | 74 68 65 20 22 70 69 63 |thod of |the "pic|
|00004b90| 74 75 72 65 22 20 63 6c | 61 73 73 20 69 6e 20 74 |ture" cl|ass in t|
|00004ba0| 68 65 20 65 78 61 6d 70 | 6c 65 0a 21 20 63 6f 75 |he examp|le.! cou|
|00004bb0| 6c 64 20 61 6c 73 6f 20 | 62 65 3a 20 7e 70 69 63 |ld also |be: ~pic|
|00004bc0| 74 75 72 65 28 29 20 77 | 69 74 68 20 4e 4f 20 70 |ture() w|ith NO p|
|00004bd0| 61 72 61 6d 65 74 65 72 | 73 2c 20 61 6e 79 77 61 |arameter|s, anywa|
|00004be0| 79 2e 0a 0a 54 68 65 73 | 65 20 74 77 6f 20 6d 65 |y...Thes|e two me|
|00004bf0| 74 68 6f 64 73 20 6d 75 | 73 74 20 62 65 20 63 61 |thods mu|st be ca|
|00004c00| 6c 6c 65 64 20 45 58 50 | 4c 49 43 49 54 4c 59 20 |lled EXP|LICITLY |
|00004c10| 62 79 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 74 |by the p|rogram t|
|00004c20| 68 61 74 20 65 78 70 6c | 6f 69 74 73 0a 74 68 65 |hat expl|oits.the|
|00004c30| 20 43 6c 61 73 73 3a 20 | 20 79 6f 75 20 6d 75 73 | Class: | you mus|
|00004c40| 74 20 6e 6f 74 20 72 65 | 6c 79 20 6f 6e 6c 79 20 |t not re|ly only |
|00004c50| 6f 6e 20 74 68 65 20 49 | 6e 69 74 69 61 6c 69 7a |on the I|nitializ|
|00004c60| 61 74 69 6f 6e 20 61 6e | 64 20 44 65 73 74 72 75 |ation an|d Destru|
|00004c70| 63 74 69 6f 6e 0a 72 6f | 75 74 69 6e 65 73 20 63 |ction.ro|utines c|
|00004c80| 6f 6e 74 61 69 6e 65 64 | 20 69 6e 20 74 68 65 20 |ontained| in the |
|00004c90| 6c 61 6e 67 75 61 67 65 | 20 79 6f 75 20 75 73 65 |language| you use|
|00004ca0| 2e 0a 0a 21 20 49 66 20 | 61 20 43 6c 61 73 73 20 |...! If |a Class |
|00004cb0| 75 73 65 73 20 61 6e 6f | 74 68 65 72 20 6f 6e 65 |uses ano|ther one|
|00004cc0| 2c 20 74 68 65 6e 20 69 | 74 20 68 61 73 20 74 6f |, then i|t has to|
|00004cd0| 20 63 61 6c 6c 20 69 6e | 20 69 74 73 20 6f 77 6e | call in| its own|
|00004ce0| 20 49 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 0a | Initial|ization.|
|00004cf0| 21 20 6d 65 74 68 6f 64 | 20 74 68 65 20 49 6e 69 |! method| the Ini|
|00004d00| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 20 6d 65 74 68 |tializat|ion meth|
|00004d10| 6f 64 20 6f 66 20 74 68 | 65 20 6f 74 68 65 72 20 |od of th|e other |
|00004d20| 43 6c 61 73 73 2e 20 20 | 45 2e 67 2e 2c 20 74 68 |Class. |E.g., th|
|00004d30| 65 20 22 70 69 63 74 75 | 72 65 22 0a 21 20 43 6c |e "pictu|re".! Cl|
|00004d40| 61 73 73 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |ass that| contain|
|00004d50| 73 20 74 68 65 20 22 62 | 69 74 6d 61 70 70 65 72 |s the "b|itmapper|
|00004d60| 22 20 43 6c 61 73 73 20 | 68 61 73 20 74 6f 20 63 |" Class |has to c|
|00004d70| 61 6c 6c 2c 20 77 69 74 | 68 69 6e 20 74 68 65 0a |all, wit|hin the.|
|00004d80| 21 20 22 70 69 63 74 75 | 72 65 28 29 22 20 6d 65 |! "pictu|re()" me|
|00004d90| 74 68 6f 64 2c 20 74 68 | 65 20 22 62 69 74 6d 61 |thod, th|e "bitma|
|00004da0| 70 70 65 72 22 20 6d 65 | 74 68 6f 64 20 61 73 73 |pper" me|thod ass|
|00004db0| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 74 68 65 |ociated |with the|
|00004dc0| 0a 21 20 22 62 69 74 6d | 61 70 70 65 72 22 20 43 |.! "bitm|apper" C|
|00004dd0| 6c 61 73 73 2e 0a 40 65 | 6e 64 6e 6f 64 65 0a 0a |lass..@e|ndnode..|
|00004de0| 40 6e 6f 64 65 20 22 49 | 6d 70 6c 5f 31 5f 35 22 |@node "I|mpl_1_5"|
|00004df0| 20 22 4c 69 62 72 61 72 | 69 65 73 20 61 6e 64 20 | "Librar|ies and |
|00004e00| 6c 6f 77 65 73 74 20 4f | 53 20 76 65 72 73 69 6f |lowest O|S versio|
|00004e10| 6e 22 0a 33 2e 31 2e 35 | 20 2d 20 4c 69 62 72 61 |n".3.1.5| - Libra|
|00004e20| 72 69 65 73 20 61 6e 64 | 20 6c 6f 77 65 73 74 20 |ries and| lowest |
|00004e30| 4f 53 20 76 65 72 73 69 | 6f 6e 0a 0a 43 6c 61 73 |OS versi|on..Clas|
|00004e40| 73 65 73 20 68 61 76 65 | 20 74 6f 20 72 65 6c 79 |ses have| to rely|
|00004e50| 20 61 6c 6d 6f 73 74 20 | 65 78 63 6c 75 73 69 76 | almost |exclusiv|
|00004e60| 65 6c 79 20 6f 6e 20 74 | 68 65 20 73 74 61 6e 64 |ely on t|he stand|
|00004e70| 61 72 64 20 41 6d 69 67 | 61 4f 53 20 6c 69 62 72 |ard Amig|aOS libr|
|00004e80| 61 72 69 65 73 2e 0a 0a | 45 2e 67 2e 2c 20 61 20 |aries...|E.g., a |
|00004e90| 22 70 69 63 74 75 72 65 | 22 20 43 6c 61 73 73 20 |"picture|" Class |
|00004ea0| 74 68 61 74 20 75 73 65 | 73 20 74 68 65 20 22 69 |that use|s the "i|
|00004eb0| 66 66 2e 6c 69 62 72 61 | 72 79 22 20 77 6f 6e 27 |ff.libra|ry" won'|
|00004ec0| 74 20 62 65 20 69 6e 63 | 6c 75 64 65 64 20 69 6e |t be inc|luded in|
|00004ed0| 0a 41 46 43 20 62 65 63 | 61 75 73 65 20 79 6f 75 |.AFC bec|ause you|
|00004ee0| 20 63 61 6e 20 6c 6f 61 | 64 20 61 6e 20 69 6d 61 | can loa|d an ima|
|00004ef0| 67 65 20 61 6c 73 6f 20 | 75 73 69 6e 67 20 74 68 |ge also |using th|
|00004f00| 65 20 22 69 66 66 70 61 | 72 73 65 2e 6c 69 62 72 |e "iffpa|rse.libr|
|00004f10| 61 72 79 22 20 61 6e 64 | 0a 74 68 65 6e 20 77 72 |ary" and|.then wr|
|00004f20| 69 74 65 20 74 68 65 20 | 42 79 74 65 52 75 6e 2d |ite the |ByteRun-|
|00004f30| 64 65 63 6f 64 69 6e 67 | 20 72 6f 75 74 69 6e 65 |decoding| routine|
|00004f40| 2e 0a 0a 42 65 73 69 64 | 65 73 2c 20 74 68 65 20 |...Besid|es, the |
|00004f50| 75 73 65 20 6f 66 20 74 | 68 69 72 64 20 70 61 72 |use of t|hird par|
|00004f60| 74 79 20 6c 69 62 72 61 | 72 69 65 73 20 64 61 6d |ty libra|ries dam|
|00004f70| 61 67 65 73 20 74 68 65 | 20 41 46 43 2c 20 62 65 |ages the| AFC, be|
|00004f80| 63 61 75 73 65 20 74 68 | 65 73 65 0a 6c 69 62 72 |cause th|ese.libr|
|00004f90| 61 72 69 65 73 20 6d 69 | 67 68 74 20 6e 6f 74 20 |aries mi|ght not |
|00004fa0| 62 65 20 69 6d 70 6c 65 | 6d 65 6e 74 65 64 20 6f |be imple|mented o|
|00004fb0| 6e 20 6e 65 77 20 4f 70 | 65 72 61 74 69 6e 67 20 |n new Op|erating |
|00004fc0| 53 79 73 74 65 6d 73 2e | 0a 0a 54 68 65 20 6c 6f |Systems.|..The lo|
|00004fd0| 77 65 73 74 20 4f 53 20 | 76 65 72 73 69 6f 6e 20 |west OS |version |
|00004fe0| 73 75 70 70 6f 72 74 65 | 64 20 62 79 20 41 46 43 |supporte|d by AFC|
|00004ff0| 20 69 73 20 32 2e 30 34 | 2e 20 20 57 65 20 63 61 | is 2.04|. We ca|
|00005000| 6e 20 61 6c 73 6f 20 74 | 61 6b 65 20 69 6e 74 6f |n also t|ake into|
|00005010| 0a 61 63 63 6f 75 6e 74 | 20 74 68 65 20 63 6f 6d |.account| the com|
|00005020| 70 61 74 69 62 69 6c 69 | 74 79 20 77 69 74 68 20 |patibili|ty with |
|00005030| 4f 53 31 2e 33 2c 20 62 | 75 74 20 69 74 27 73 20 |OS1.3, b|ut it's |
|00005040| 6e 6f 74 20 61 20 66 75 | 6e 64 61 6d 65 6e 74 61 |not a fu|ndamenta|
|00005050| 6c 20 66 65 61 74 75 72 | 65 2e 0a 0a 49 66 20 61 |l featur|e...If a|
|00005060| 20 43 6c 61 73 73 20 72 | 65 71 75 69 72 65 73 20 | Class r|equires |
|00005070| 61 20 6e 65 77 65 72 20 | 4f 53 20 76 65 72 73 69 |a newer |OS versi|
|00005080| 6f 6e 20 74 6f 20 77 6f | 72 6b 20 63 6f 72 72 65 |on to wo|rk corre|
|00005090| 63 74 6c 79 2c 20 74 68 | 65 6e 20 74 68 69 73 20 |ctly, th|en this |
|000050a0| 6d 75 73 74 20 62 65 0a | 64 6f 63 75 6d 65 6e 74 |must be.|document|
|000050b0| 65 64 2e 0a 40 65 6e 64 | 6e 6f 64 65 0a 0a 40 6e |ed..@end|node..@n|
|000050c0| 6f 64 65 20 22 49 6d 70 | 6c 5f 31 5f 36 22 20 22 |ode "Imp|l_1_6" "|
|000050d0| 54 61 67 73 22 0a 33 2e | 31 2e 36 20 2d 20 54 61 |Tags".3.|1.6 - Ta|
|000050e0| 67 73 0a 0a 57 68 65 6e | 20 70 6f 73 73 69 62 6c |gs..When| possibl|
|000050f0| 65 20 74 68 65 20 62 65 | 68 61 76 69 6f 75 72 20 |e the be|haviour |
|00005100| 6f 66 20 74 68 65 20 43 | 6c 61 73 73 20 6d 75 73 |of the C|lass mus|
|00005110| 74 20 62 65 20 63 68 61 | 6e 67 65 64 20 75 73 69 |t be cha|nged usi|
|00005120| 6e 67 20 74 61 67 73 2c | 20 61 0a 63 68 61 72 61 |ng tags,| a.chara|
|00005130| 63 74 65 72 69 73 74 69 | 63 20 6f 66 20 74 68 65 |cteristi|c of the|
|00005140| 20 41 6d 69 67 61 4f 53 | 2e 20 54 68 65 20 73 74 | AmigaOS|. The st|
|00005150| 61 6e 64 61 72 64 20 6d | 65 74 68 6f 64 73 20 69 |andard m|ethods i|
|00005160| 6e 76 6f 6c 76 69 6e 67 | 20 74 61 67 73 20 6d 75 |nvolving| tags mu|
|00005170| 73 74 20 62 65 0a 63 61 | 6c 6c 65 64 3a 0a 0a 20 |st be.ca|lled:.. |
|00005180| 20 20 2d 20 22 73 65 74 | 61 74 74 72 73 28 74 61 | - "set|attrs(ta|
|00005190| 67 73 29 22 20 74 6f 20 | 73 65 74 20 74 68 65 20 |gs)" to |set the |
|000051a0| 74 61 67 73 2e 0a 20 20 | 20 2d 20 22 67 65 74 61 |tags.. | - "geta|
|000051b0| 74 74 72 28 74 61 67 29 | 22 20 74 6f 20 67 65 74 |ttr(tag)|" to get|
|000051c0| 20 61 20 73 69 6e 67 6c | 65 20 72 65 74 75 72 6e | a singl|e return|
|000051d0| 20 76 61 6c 75 65 20 28 | 77 69 74 68 20 74 68 65 | value (|with the|
|000051e0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 0a 20 | corresp|onding. |
|000051f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005200| 20 20 20 74 61 67 20 61 | 73 20 70 61 72 61 6d 65 | tag a|s parame|
|00005210| 74 65 72 29 2e 0a 20 20 | 20 2d 20 22 67 65 74 61 |ter).. | - "geta|
|00005220| 74 74 72 73 28 74 61 67 | 73 29 22 20 69 66 20 79 |ttrs(tag|s)" if y|
|00005230| 6f 75 20 77 61 6e 74 20 | 74 6f 20 72 65 63 65 69 |ou want |to recei|
|00005240| 76 65 20 64 69 66 66 65 | 72 65 6e 74 20 76 61 6c |ve diffe|rent val|
|00005250| 75 65 73 20 77 69 74 68 | 20 74 68 65 20 73 61 6d |ues with| the sam|
|00005260| 65 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e. | |
|00005270| 20 20 20 20 20 20 20 20 | 63 61 6c 6c 2e 0a 40 65 | |call..@e|
|00005280| 6e 64 6e 6f 64 65 0a 0a | 40 6e 6f 64 65 20 22 49 |ndnode..|@node "I|
|00005290| 6d 70 6c 5f 32 22 20 22 | 44 65 66 69 6e 69 74 69 |mpl_2" "|Definiti|
|000052a0| 6f 6e 20 6f 66 20 65 72 | 72 6f 72 20 63 6f 64 65 |on of er|ror code|
|000052b0| 73 22 0a 33 2e 32 20 2d | 20 44 65 66 69 6e 69 74 |s".3.2 -| Definit|
|000052c0| 69 6f 6e 20 6f 66 20 65 | 72 72 6f 72 20 63 6f 64 |ion of e|rror cod|
|000052d0| 65 73 0a 0a 20 20 20 20 | 40 7b 22 20 57 68 65 6e |es.. |@{" When|
|000052e0| 20 74 6f 20 72 65 70 6f | 72 74 20 61 6e 20 65 72 | to repo|rt an er|
|000052f0| 72 6f 72 20 63 6f 64 65 | 20 20 22 20 4c 49 4e 4b |ror code| " LINK|
|00005300| 20 22 49 6d 70 6c 5f 32 | 5f 31 22 7d 0a 20 20 20 | "Impl_2|_1"}. |
|00005310| 20 40 7b 22 20 48 6f 77 | 20 74 6f 20 72 65 70 6f | @{" How| to repo|
|00005320| 72 74 20 61 6e 20 65 72 | 72 6f 72 20 63 6f 64 65 |rt an er|ror code|
|00005330| 20 20 20 22 20 4c 49 4e | 4b 20 22 49 6d 70 6c 5f | " LIN|K "Impl_|
|00005340| 32 5f 32 22 7d 0a 20 20 | 20 20 40 7b 22 20 43 6c |2_2"}. | @{" Cl|
|00005350| 61 73 73 69 66 69 63 61 | 74 69 6f 6e 20 6f 66 20 |assifica|tion of |
|00005360| 65 72 72 6f 72 20 63 6f | 64 65 73 20 22 20 4c 49 |error co|des " LI|
|00005370| 4e 4b 20 22 69 6d 70 6c | 5f 32 5f 33 22 7d 0a 40 |NK "impl|_2_3"}.@|
|00005380| 65 6e 64 6e 6f 64 65 0a | 0a 40 6e 6f 64 65 20 22 |endnode.|.@node "|
|00005390| 49 6d 70 6c 5f 32 5f 31 | 22 20 22 57 68 65 6e 20 |Impl_2_1|" "When |
|000053a0| 74 6f 20 72 65 70 6f 72 | 74 20 61 6e 20 65 72 72 |to repor|t an err|
|000053b0| 6f 72 20 63 6f 64 65 22 | 0a 33 2e 32 2e 31 20 2d |or code"|.3.2.1 -|
|000053c0| 20 57 68 65 6e 20 74 6f | 20 72 65 70 6f 72 74 20 | When to| report |
|000053d0| 61 6e 20 65 72 72 6f 72 | 20 63 6f 64 65 0a 0a 54 |an error| code..T|
|000053e0| 68 65 20 41 46 43 20 6d | 75 73 74 20 70 72 6f 6d |he AFC m|ust prom|
|000053f0| 70 74 6c 79 20 72 65 61 | 63 74 20 61 74 20 61 6c |ptly rea|ct at al|
|00005400| 6c 20 70 6f 73 73 69 62 | 6c 65 20 65 72 72 6f 72 |l possib|le error|
|00005410| 73 3a 20 20 74 68 65 79 | 20 6d 75 73 74 20 62 65 |s: they| must be|
|00005420| 20 22 69 64 69 6f 74 0a | 70 72 6f 6f 66 22 2e 20 | "idiot.|proof". |
|00005430| 20 49 66 20 74 68 65 20 | 75 73 65 72 20 6d 61 6b | If the |user mak|
|00005440| 65 73 20 61 20 6d 69 73 | 74 61 6b 65 20 69 6e 20 |es a mis|take in |
|00005450| 63 61 6c 6c 69 6e 67 20 | 61 20 6d 65 74 68 6f 64 |calling |a method|
|00005460| 2c 20 6f 72 20 68 65 20 | 63 61 6c 6c 73 20 69 74 |, or he |calls it|
|00005470| 0a 62 65 66 6f 72 65 20 | 68 61 76 69 6e 67 20 69 |.before |having i|
|00005480| 6e 69 74 69 61 6c 69 7a | 65 64 20 74 68 65 20 43 |nitializ|ed the C|
|00005490| 6c 61 73 73 2c 20 61 6e | 64 20 73 6f 20 6f 6e 2c |lass, an|d so on,|
|000054a0| 20 74 68 65 20 43 6c 61 | 73 73 20 6d 75 73 74 20 | the Cla|ss must |
|000054b0| 62 65 20 61 62 6c 65 20 | 74 6f 0a 74 72 61 70 20 |be able |to.trap |
|000054c0| 61 6e 64 20 72 65 70 6f | 72 74 20 74 68 65 20 65 |and repo|rt the e|
|000054d0| 72 72 6f 72 20 28 70 6f | 73 73 69 62 6c 79 20 74 |rror (po|ssibly t|
|000054e0| 72 79 69 6e 67 20 74 6f | 20 63 6f 6e 74 69 6e 75 |rying to| continu|
|000054f0| 65 29 2e 20 20 54 68 75 | 73 20 69 74 27 73 0a 69 |e). Thu|s it's.i|
|00005500| 6d 70 6f 72 74 61 6e 74 | 20 74 6f 20 63 6c 61 73 |mportant| to clas|
|00005510| 73 69 66 79 20 61 6e 64 | 20 72 65 70 6f 72 74 20 |sify and| report |
|00005520| 74 6f 20 74 68 65 20 75 | 73 65 72 20 74 68 65 20 |to the u|ser the |
|00005530| 6c 61 72 67 65 73 74 20 | 6e 75 6d 62 65 72 20 6f |largest |number o|
|00005540| 66 20 65 72 72 6f 72 73 | 2c 0a 74 72 79 69 6e 67 |f errors|,.trying|
|00005550| 20 74 6f 20 62 65 20 75 | 6e 64 65 72 73 74 61 6e | to be u|nderstan|
|00005560| 64 61 62 6c 65 20 28 77 | 68 65 6e 20 70 6f 73 73 |dable (w|hen poss|
|00005570| 69 62 6c 65 29 20 74 6f | 20 6d 61 6b 65 20 74 68 |ible) to| make th|
|00005580| 65 20 64 65 62 75 67 20 | 73 65 73 73 69 6f 6e 0a |e debug |session.|
|00005590| 65 61 73 69 65 72 2e 0a | 40 65 6e 64 6e 6f 64 65 |easier..|@endnode|
|000055a0| 0a 0a 40 6e 6f 64 65 20 | 22 49 6d 70 6c 5f 32 5f |..@node |"Impl_2_|
|000055b0| 32 22 20 22 48 6f 77 20 | 74 6f 20 72 65 70 6f 72 |2" "How |to repor|
|000055c0| 74 20 61 6e 20 65 72 72 | 6f 72 20 63 6f 64 65 22 |t an err|or code"|
|000055d0| 0a 33 2e 32 2e 32 20 2d | 20 48 6f 77 20 74 6f 20 |.3.2.2 -| How to |
|000055e0| 72 65 70 6f 72 74 20 61 | 6e 20 65 72 72 6f 72 20 |report a|n error |
|000055f0| 63 6f 64 65 0a 0a 21 20 | 54 6f 20 72 65 70 6f 72 |code..! |To repor|
|00005600| 74 20 61 6e 20 65 72 72 | 6f 72 20 69 74 27 73 20 |t an err|or it's |
|00005610| 70 72 65 66 65 72 61 62 | 6c 65 20 74 6f 20 75 73 |preferab|le to us|
|00005620| 65 20 74 68 65 20 28 73 | 6f 66 74 77 61 72 65 29 |e the (s|oftware)|
|00005630| 20 22 45 78 63 65 70 74 | 69 6f 6e 73 22 2c 20 77 | "Except|ions", w|
|00005640| 68 65 6e 0a 21 20 74 68 | 65 79 20 61 72 65 20 73 |hen.! th|ey are s|
|00005650| 75 70 70 6f 72 74 65 64 | 20 62 79 20 74 68 65 20 |upported| by the |
|00005660| 6c 61 6e 67 75 61 67 65 | 3b 20 69 66 20 74 68 65 |language|; if the|
|00005670| 79 20 61 72 65 20 6e 6f | 74 20 73 75 70 70 6f 72 |y are no|t suppor|
|00005680| 74 65 64 20 69 74 27 73 | 0a 21 20 74 68 65 20 63 |ted it's|.! the c|
|00005690| 61 6c 6c 65 64 20 6d 65 | 74 68 64 6f 20 63 61 6e |alled me|thdo can|
|000056a0| 20 72 65 74 75 72 6e 20 | 74 68 65 20 76 61 6c 75 | return |the valu|
|000056b0| 65 20 6f 66 20 74 68 65 | 20 65 78 63 65 70 74 69 |e of the| excepti|
|000056c0| 6f 6e 20 61 73 20 74 68 | 65 20 72 65 74 75 72 6e |on as th|e return|
|000056d0| 20 63 6f 64 65 2e 0a 21 | 20 41 6e 79 77 61 79 2c | code..!| Anyway,|
|000056e0| 20 69 74 20 69 73 20 5f | 79 6f 75 72 5f 20 74 61 | it is _|your_ ta|
|000056f0| 73 6b 20 74 6f 20 70 72 | 6f 76 69 64 65 20 61 20 |sk to pr|ovide a |
|00005700| 73 69 6d 70 6c 65 20 61 | 6e 64 20 67 6f 6f 64 20 |simple a|nd good |
|00005710| 77 61 79 20 74 6f 20 6c | 65 74 20 74 68 65 20 75 |way to l|et the u|
|00005720| 73 65 72 0a 21 20 68 61 | 6e 64 6c 65 20 65 78 63 |ser.! ha|ndle exc|
|00005730| 65 70 74 69 6f 6e 73 20 | 61 6e 64 20 65 72 72 6f |eptions |and erro|
|00005740| 72 73 2e 0a 0a 40 65 6e | 64 6e 6f 64 65 0a 0a 40 |rs...@en|dnode..@|
|00005750| 6e 6f 64 65 20 22 49 6d | 70 6c 5f 32 5f 33 22 20 |node "Im|pl_2_3" |
|00005760| 22 43 6c 61 73 73 69 66 | 69 63 61 74 69 6f 6e 20 |"Classif|ication |
|00005770| 6f 66 20 65 72 72 6f 72 | 20 63 6f 64 65 73 22 0a |of error| codes".|
|00005780| 33 2e 32 2e 33 20 2d 20 | 43 6c 61 73 73 69 66 69 |3.2.3 - |Classifi|
|00005790| 63 61 74 69 6f 6e 20 6f | 66 20 65 72 72 6f 72 20 |cation o|f error |
|000057a0| 63 6f 64 65 73 0a 0a 54 | 68 65 20 65 72 72 6f 72 |codes..T|he error|
|000057b0| 20 63 6f 64 65 20 6f 66 | 20 61 20 43 6c 61 73 73 | code of| a Class|
|000057c0| 20 69 73 20 63 6f 6e 74 | 61 69 6e 65 64 20 69 6e | is cont|ained in|
|000057d0| 20 61 20 33 32 42 69 74 | 20 76 61 72 69 61 62 6c | a 32Bit| variabl|
|000057e0| 65 20 28 6c 6f 6e 67 29 | 2e 20 20 54 68 65 0a 48 |e (long)|. The.H|
|000057f0| 69 67 68 20 77 6f 72 64 | 20 28 32 20 62 79 74 65 |igh word| (2 byte|
|00005800| 73 29 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |s) conta|ins the |
|00005810| 22 69 64 65 6e 74 69 66 | 69 63 61 74 69 6f 6e 20 |"identif|ication |
|00005820| 6e 75 6d 62 65 72 22 20 | 6f 66 20 74 68 65 20 43 |number" |of the C|
|00005830| 6c 61 73 73 3a 0a 74 68 | 69 73 20 69 64 65 6e 74 |lass:.th|is ident|
|00005840| 69 66 69 63 61 74 69 6f | 6e 20 6e 75 6d 62 65 72 |ificatio|n number|
|00005850| 20 69 73 20 75 6e 69 71 | 75 65 20 61 6e 64 20 69 | is uniq|ue and i|
|00005860| 74 27 73 20 61 73 73 69 | 67 6e 65 64 20 62 79 20 |t's assi|gned by |
|00005870| 41 46 43 20 74 6f 20 74 | 68 65 20 43 6c 61 73 73 |AFC to t|he Class|
|00005880| 0a 77 68 65 6e 20 69 74 | 20 69 73 20 66 69 72 73 |.when it| is firs|
|00005890| 74 20 63 72 65 61 74 65 | 64 2e 20 20 54 68 69 73 |t create|d. This|
|000058a0| 20 76 61 6c 75 65 20 6d | 75 73 74 20 62 65 20 73 | value m|ust be s|
|000058b0| 74 6f 72 65 64 20 69 6e | 20 74 68 65 20 73 6f 75 |tored in| the sou|
|000058c0| 72 63 65 20 63 6f 64 65 | 20 6f 66 0a 74 68 65 20 |rce code| of.the |
|000058d0| 43 6c 61 73 73 20 69 6e | 20 61 20 63 6f 6e 73 74 |Class in| a const|
|000058e0| 61 6e 74 20 6e 61 6d 65 | 64 20 61 73 20 74 68 65 |ant name|d as the|
|000058f0| 20 43 6c 61 73 73 20 69 | 74 73 65 6c 66 20 28 77 | Class i|tself (w|
|00005900| 72 69 74 74 65 6e 20 55 | 50 50 45 52 43 41 53 45 |ritten U|PPERCASE|
|00005910| 29 20 77 69 74 68 0a 74 | 68 65 20 22 5f 42 41 53 |) with.t|he "_BAS|
|00005920| 45 22 20 73 75 66 66 69 | 78 2e 20 20 45 2e 67 2e |E" suffi|x. E.g.|
|00005930| 2c 20 74 68 65 20 70 69 | 63 74 75 72 65 20 43 6c |, the pi|cture Cl|
|00005940| 61 73 73 20 68 61 73 20 | 74 68 65 20 69 64 65 6e |ass has |the iden|
|00005950| 74 69 66 69 63 61 74 69 | 6f 6e 20 76 61 6c 75 65 |tificati|on value|
|00005960| 0a 6e 61 6d 65 64 20 22 | 50 49 43 54 55 52 45 5f |.named "|PICTURE_|
|00005970| 42 41 53 45 22 2e 20 20 | 54 68 65 20 4c 6f 77 20 |BASE". |The Low |
|00005980| 77 6f 72 64 20 28 32 20 | 62 79 74 65 73 29 20 63 |word (2 |bytes) c|
|00005990| 6f 6e 74 61 69 6e 73 20 | 74 68 65 20 65 72 72 6f |ontains |the erro|
|000059a0| 72 20 63 6f 64 65 3a 20 | 20 69 6e 0a 65 61 63 68 |r code: | in.each|
|000059b0| 20 43 6c 61 73 73 20 69 | 74 20 73 74 61 72 74 73 | Class i|t starts|
|000059c0| 20 66 72 6f 6d 20 24 30 | 30 30 30 20 61 6e 64 20 | from $0|000 and |
|000059d0| 67 6f 65 73 20 75 70 20 | 74 6f 20 24 46 46 46 46 |goes up |to $FFFF|
|000059e0| 20 28 73 75 70 70 6f 73 | 69 6e 67 20 74 68 61 74 | (suppos|ing that|
|000059f0| 20 61 0a 43 6c 61 73 73 | 20 63 61 6e 20 72 65 74 | a.Class| can ret|
|00005a00| 75 72 6e 20 36 35 35 33 | 35 20 64 69 66 66 65 72 |urn 6553|5 differ|
|00005a10| 65 6e 74 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 |ent erro|r messag|
|00005a20| 65 73 21 29 2e 20 20 54 | 68 65 20 24 30 30 30 30 |es!). T|he $0000|
|00005a30| 20 65 72 72 6f 72 20 69 | 74 27 73 0a 61 6c 77 61 | error i|t's.alwa|
|00005a40| 79 73 20 22 4e 6f 20 4d | 65 6d 6f 72 79 22 2e 20 |ys "No M|emory". |
|00005a50| 20 54 68 65 20 74 61 62 | 6c 65 20 74 68 61 74 20 | The tab|le that |
|00005a60| 61 73 73 6f 63 69 61 74 | 65 73 20 74 6f 20 65 76 |associat|es to ev|
|00005a70| 65 72 79 20 65 72 72 6f | 72 20 63 6f 64 65 20 69 |ery erro|r code i|
|00005a80| 74 73 0a 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6d |ts.descr|iption m|
|00005a90| 75 73 74 20 62 65 20 69 | 6e 63 6c 75 64 65 64 20 |ust be i|ncluded |
|00005aa0| 69 6e 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 61 |in the d|ocumenta|
|00005ab0| 74 69 6f 6e 2e 0a 40 65 | 6e 64 6e 6f 64 65 0a 0a |tion..@e|ndnode..|
|00005ac0| 40 6e 6f 64 65 20 22 50 | 6f 72 74 5f 31 22 20 22 |@node "P|ort_1" "|
|00005ad0| 50 6f 72 74 69 6e 67 20 | 66 65 61 74 75 72 65 73 |Porting |features|
|00005ae0| 22 0a 34 2e 31 20 2d 20 | 50 6f 72 74 69 6e 67 20 |".4.1 - |Porting |
|00005af0| 66 65 61 74 75 72 65 73 | 0a 0a 54 68 65 20 41 46 |features|..The AF|
|00005b00| 43 20 63 61 6e 20 28 61 | 6e 64 20 6d 75 73 74 29 |C can (a|nd must)|
|00005b10| 20 62 65 20 70 6f 72 74 | 65 64 20 6f 6e 20 74 68 | be port|ed on th|
|00005b20| 65 20 6c 61 72 67 65 73 | 74 20 6e 75 6d 62 65 72 |e larges|t number|
|00005b30| 20 6f 66 20 6c 61 6e 67 | 75 61 67 65 73 20 61 73 | of lang|uages as|
|00005b40| 0a 70 6f 73 73 69 62 6c | 65 2e 20 20 54 68 65 20 |.possibl|e. The |
|00005b50| 70 6f 72 74 69 6e 67 20 | 6d 75 73 74 20 74 61 6b |porting |must tak|
|00005b60| 65 20 69 6e 74 6f 20 61 | 63 63 6f 75 6e 74 20 61 |e into a|ccount a|
|00005b70| 6c 6c 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |ll the c|haracter|
|00005b80| 69 73 74 69 63 73 0a 6c | 69 73 74 65 64 20 69 6e |istics.l|isted in|
|00005b90| 20 73 65 63 74 69 6f 6e | 73 20 32 20 61 6e 64 20 | section|s 2 and |
|00005ba0| 33 2e 20 20 49 74 27 73 | 20 66 6f 72 62 69 64 64 |3. It's| forbidd|
|00005bb0| 65 6e 20 74 6f 20 6d 6f | 64 69 66 79 20 61 20 43 |en to mo|dify a C|
|00005bc0| 6c 61 73 73 20 64 75 72 | 69 6e 67 20 74 68 65 0a |lass dur|ing the.|
|00005bd0| 70 6f 72 74 69 6e 67 2c | 20 62 75 74 20 74 68 65 |porting,| but the|
|00005be0| 20 43 6c 61 73 73 20 68 | 61 73 20 74 6f 20 62 65 | Class h|as to be|
|00005bf0| 20 22 61 64 61 70 74 65 | 64 22 20 69 66 20 73 6f | "adapte|d" if so|
|00005c00| 6d 65 20 6f 70 65 72 61 | 74 69 6f 6e 73 20 61 72 |me opera|tions ar|
|00005c10| 65 20 6e 6f 74 0a 74 72 | 61 6e 73 6c 61 74 61 62 |e not.tr|anslatab|
|00005c20| 6c 65 20 69 6e 74 6f 20 | 74 68 65 20 6c 61 6e 67 |le into |the lang|
|00005c30| 75 61 67 65 20 75 73 65 | 64 20 28 65 2e 67 2e 2c |uage use|d (e.g.,|
|00005c40| 20 72 65 74 75 72 6e 69 | 6e 67 20 6d 75 6c 74 69 | returni|ng multi|
|00005c50| 70 6c 65 20 76 61 6c 75 | 65 73 20 77 69 74 68 20 |ple valu|es with |
|00005c60| 61 0a 73 69 6e 67 6c 65 | 20 6d 65 74 68 6f 64 20 |a.single| method |
|00005c70| 63 61 6c 6c 29 2e 0a 40 | 65 6e 64 6e 6f 64 65 0a |call)..@|endnode.|
|00005c80| 0a 40 6e 6f 64 65 20 22 | 50 6f 72 74 5f 32 22 20 |.@node "|Port_2" |
|00005c90| 22 50 6f 72 74 69 6e 67 | 20 6c 69 6d 69 74 73 22 |"Porting| limits"|
|00005ca0| 0a 34 2e 32 20 2d 20 50 | 6f 72 74 69 6e 67 20 6c |.4.2 - P|orting l|
|00005cb0| 69 6d 69 74 73 0a 0a 41 | 20 43 6c 61 73 73 20 70 |imits..A| Class p|
|00005cc0| 6f 72 74 65 64 20 62 79 | 20 61 20 70 72 6f 67 72 |orted by| a progr|
|00005cd0| 61 6d 6d 65 72 20 43 41 | 4e 4e 4f 54 20 62 65 20 |ammer CA|NNOT be |
|00005ce0| 64 69 73 74 72 69 62 75 | 74 65 64 20 62 65 66 6f |distribu|ted befo|
|00005cf0| 72 65 20 61 70 70 72 6f | 76 61 6c 20 62 79 20 74 |re appro|val by t|
|00005d00| 68 65 0a 41 46 43 20 73 | 75 70 65 72 76 69 73 6f |he.AFC s|uperviso|
|00005d10| 72 73 2e 20 20 54 68 69 | 73 20 74 6f 20 61 73 73 |rs. Thi|s to ass|
|00005d20| 75 72 65 20 74 68 65 20 | 63 6f 72 72 65 63 74 20 |ure the |correct |
|00005d30| 77 6f 72 6b 69 6e 67 20 | 6f 66 20 74 68 65 20 43 |working |of the C|
|00005d40| 6c 61 73 73 20 61 66 74 | 65 72 20 74 68 65 0a 70 |lass aft|er the.p|
|00005d50| 6f 72 74 69 6e 67 2e 20 | 20 57 65 20 6f 66 20 41 |orting. | We of A|
|00005d60| 46 43 20 77 6f 6e 27 74 | 20 65 78 63 6c 75 64 65 |FC won't| exclude|
|00005d70| 20 61 6e 79 20 6c 61 6e | 67 75 61 67 65 2c 20 62 | any lan|guage, b|
|00005d80| 75 74 20 74 68 65 20 70 | 72 6f 67 72 61 6d 6d 65 |ut the p|rogramme|
|00005d90| 72 73 20 74 68 61 74 0a | 77 6f 6e 27 74 20 61 63 |rs that.|won't ac|
|00005da0| 63 65 70 74 20 74 68 65 | 73 65 20 63 6f 6e 64 69 |cept the|se condi|
|00005db0| 74 69 6f 6e 73 20 77 6f | 6e 27 74 20 72 65 63 65 |tions wo|n't rece|
|00005dc0| 69 76 65 20 61 6e 79 20 | 6f 74 68 65 72 20 43 6c |ive any |other Cl|
|00005dd0| 61 73 73 20 74 6f 20 63 | 6f 6e 76 65 72 74 20 61 |ass to c|onvert a|
|00005de0| 6e 64 0a 74 68 65 69 72 | 20 43 6c 61 73 73 65 73 |nd.their| Classes|
|00005df0| 20 77 69 6c 6c 20 62 65 | 20 6d 61 72 6b 65 64 20 | will be| marked |
|00005e00| 6f 6e 20 74 68 65 20 41 | 46 43 20 57 45 42 20 70 |on the A|FC WEB p|
|00005e10| 61 67 65 73 20 61 73 20 | 22 4e 6f 74 20 53 75 70 |ages as |"Not Sup|
|00005e20| 70 6f 72 74 65 64 22 2e | 0a 40 65 6e 64 6e 6f 64 |ported".|.@endnod|
|00005e30| 65 0a 0a 40 6e 6f 64 65 | 20 22 44 69 73 74 72 5f |e..@node| "Distr_|
|00005e40| 31 22 20 22 43 6f 6d 70 | 69 6c 65 64 20 43 6c 61 |1" "Comp|iled Cla|
|00005e50| 73 73 65 73 22 0a 35 2e | 31 20 2d 20 43 6f 6d 70 |sses".5.|1 - Comp|
|00005e60| 69 6c 65 64 20 43 6c 61 | 73 73 65 73 0a 0a 54 68 |iled Cla|sses..Th|
|00005e70| 65 20 63 6f 6d 70 69 6c | 65 64 20 63 6c 61 73 73 |e compil|ed class|
|00005e80| 65 73 20 28 65 2e 67 2e | 2c 20 74 68 65 20 22 2e |es (e.g.|, the ".|
|00005e90| 6f 62 6a 22 20 66 69 6c | 65 73 20 6f 66 20 43 2b |obj" fil|es of C+|
|00005ea0| 2b 20 6f 72 20 74 68 65 | 20 22 2e 6d 22 20 66 69 |+ or the| ".m" fi|
|00005eb0| 6c 65 73 20 6f 66 0a 41 | 6d 69 67 61 45 29 20 6d |les of.A|migaE) m|
|00005ec0| 61 79 20 62 65 20 66 72 | 65 65 6c 79 20 64 69 73 |ay be fr|eely dis|
|00005ed0| 74 72 69 62 75 74 65 64 | 20 61 6e 64 20 68 61 76 |tributed| and hav|
|00005ee0| 65 20 74 6f 20 62 65 20 | 69 6e 73 65 72 74 65 64 |e to be |inserted|
|00005ef0| 20 69 6e 20 61 20 64 69 | 72 65 63 74 6f 72 79 0a | in a di|rectory.|
|00005f00| 63 61 6c 6c 65 64 20 22 | 41 46 43 22 20 28 6f 62 |called "|AFC" (ob|
|00005f10| 76 69 6f 75 73 6c 79 29 | 2e 0a 0a 49 6e 20 74 68 |viously)|...In th|
|00005f20| 65 20 22 2e 6c 68 61 22 | 20 61 72 63 68 69 76 65 |e ".lha"| archive|
|00005f30| 20 6d 75 73 74 20 62 65 | 20 70 72 65 73 65 6e 74 | must be| present|
|00005f40| 2c 20 74 6f 67 65 74 68 | 65 72 20 77 69 74 68 20 |, togeth|er with |
|00005f50| 74 68 65 20 63 6f 6d 70 | 69 6c 65 64 20 63 6f 64 |the comp|iled cod|
|00005f60| 65 2c 20 74 68 65 0a 64 | 6f 63 75 6d 65 6e 74 61 |e, the.d|ocumenta|
|00005f70| 74 69 6f 6e 20 69 6e 20 | 41 6d 69 67 61 47 75 69 |tion in |AmigaGui|
|00005f80| 64 65 20 66 6f 72 6d 61 | 74 20 61 6e 64 20 73 6f |de forma|t and so|
|00005f90| 6d 65 20 65 78 61 6d 70 | 6c 65 20 73 6f 75 72 63 |me examp|le sourc|
|00005fa0| 65 73 2e 0a 40 65 6e 64 | 6e 6f 64 65 0a 0a 40 6e |es..@end|node..@n|
|00005fb0| 6f 64 65 20 22 44 69 73 | 74 72 5f 32 22 20 22 43 |ode "Dis|tr_2" "C|
|00005fc0| 6c 61 73 73 65 73 27 20 | 73 6f 75 72 63 65 20 63 |lasses' |source c|
|00005fd0| 6f 64 65 22 0a 35 2e 32 | 20 2d 20 43 6c 61 73 73 |ode".5.2| - Class|
|00005fe0| 65 73 27 20 73 6f 75 72 | 63 65 20 63 6f 64 65 0a |es' sour|ce code.|
|00005ff0| 0a 54 68 65 20 73 6f 75 | 72 63 65 20 6f 66 20 74 |.The sou|rce of t|
|00006000| 68 65 20 43 6c 61 73 73 | 65 73 20 69 73 20 4e 4f |he Class|es is NO|
|00006010| 54 20 70 75 62 6c 69 63 | 20 64 6f 6d 61 69 6e 20 |T public| domain |
|00006020| 61 6e 20 73 6f 20 69 74 | 27 73 20 4e 4f 54 20 64 |an so it|'s NOT d|
|00006030| 69 73 74 72 69 62 75 74 | 65 64 0a 61 6c 6f 6e 67 |istribut|ed.along|
|00006040| 20 77 69 74 68 20 74 68 | 65 20 63 6f 6d 70 69 6c | with th|e compil|
|00006050| 65 64 20 63 6f 64 65 2e | 20 20 4e 65 76 65 72 74 |ed code.| Nevert|
|00006060| 68 65 6c 65 73 73 2c 20 | 69 74 20 77 69 6c 6c 20 |heless, |it will |
|00006070| 62 65 20 61 6c 77 61 79 | 73 20 61 76 61 69 6c 61 |be alway|s availa|
|00006080| 62 6c 65 20 74 6f 0a 70 | 72 6f 67 72 61 6d 6d 65 |ble to.p|rogramme|
|00006090| 72 73 20 74 68 61 74 20 | 61 73 6b 20 75 73 20 74 |rs that |ask us t|
|000060a0| 6f 20 64 6f 20 74 68 65 | 20 70 6f 72 74 69 6e 67 |o do the| porting|
|000060b0| 20 6f 66 20 61 20 70 61 | 72 74 69 63 75 6c 61 72 | of a pa|rticular|
|000060c0| 20 43 6c 61 73 73 2e 20 | 20 54 68 65 0a 73 75 70 | Class. | The.sup|
|000060d0| 65 72 76 69 73 6f 72 73 | 20 6f 66 20 41 46 43 20 |ervisors| of AFC |
|000060e0| 77 69 6c 6c 20 61 6c 77 | 61 79 73 20 68 61 76 65 |will alw|ays have|
|000060f0| 20 61 6c 6c 20 74 68 65 | 20 73 6f 75 72 63 65 73 | all the| sources|
|00006100| 20 61 6e 64 20 61 72 65 | 20 66 72 65 65 20 74 6f | and are| free to|
|00006110| 20 64 65 63 69 64 65 0a | 77 68 65 74 68 65 72 20 | decide.|whether |
|00006120| 74 6f 20 67 69 76 65 20 | 74 68 65 20 73 6f 75 72 |to give |the sour|
|00006130| 63 65 20 6f 66 20 74 68 | 65 20 72 65 71 75 69 72 |ce of th|e requir|
|00006140| 65 64 20 43 6c 61 73 73 | 20 74 6f 20 61 20 70 61 |ed Class| to a pa|
|00006150| 72 74 69 63 75 6c 61 72 | 20 70 72 6f 67 72 61 6d |rticular| program|
|00006160| 6d 65 72 0a 6f 72 20 6e | 6f 74 2e 0a 40 65 6e 64 |mer.or n|ot..@end|
|00006170| 6e 6f 64 65 0a 0a 40 6e | 6f 64 65 20 22 44 69 73 |node..@n|ode "Dis|
|00006180| 74 72 5f 33 22 20 22 41 | 76 61 69 6c 61 62 69 6c |tr_3" "A|vailabil|
|00006190| 69 74 79 22 0a 35 2e 33 | 20 2d 20 41 76 61 69 6c |ity".5.3| - Avail|
|000061a0| 61 62 69 6c 69 74 79 0a | 0a 54 68 65 20 63 6f 6d |ability.|.The com|
|000061b0| 70 69 6c 65 64 20 76 65 | 72 73 69 6f 6e 73 20 6f |piled ve|rsions o|
|000061c0| 66 20 41 46 43 20 63 61 | 6e 20 62 65 20 66 6f 75 |f AFC ca|n be fou|
|000061d0| 6e 64 20 61 74 20 74 68 | 65 73 65 20 73 69 74 65 |nd at th|ese site|
|000061e0| 73 3a 0a 0a 20 20 46 54 | 50 3a 0a 09 66 74 70 2e |s:.. FT|P:..ftp.|
|000061f0| 69 6e 74 65 72 63 6f 6d | 2e 69 74 2f 70 75 62 2f |intercom|.it/pub/|
|00006200| 61 66 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |afc | |
|00006210| 2d 20 4f 66 66 69 63 69 | 61 6c 20 73 69 74 65 20 |- Offici|al site |
|00006220| 6f 66 20 41 6d 69 67 61 | 20 46 6f 75 6e 64 61 74 |of Amiga| Foundat|
|00006230| 69 6f 6e 20 43 6c 61 73 | 73 65 73 0a 0a 21 20 48 |ion Clas|ses..! H|
|00006240| 54 54 50 3a 0a 21 20 20 | 20 77 77 77 2e 69 6e 74 |TTP:.! | www.int|
|00006250| 65 72 63 6f 6d 2e 69 74 | 2f 7e 66 73 6f 66 74 2f |ercom.it|/~fsoft/|
|00006260| 61 66 63 2e 68 74 6d 6c | 20 20 20 20 20 2d 20 4f |afc.html| - O|
|00006270| 66 66 69 63 69 61 6c 20 | 57 45 42 20 73 69 74 65 |fficial |WEB site|
|00006280| 20 6f 66 20 41 46 43 0a | 0a 0a 21 20 54 68 65 20 | of AFC.|..! The |
|00006290| 45 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 65 |E versio|n of the|
|000062a0| 20 41 46 43 20 63 6c 61 | 73 73 65 73 20 77 69 6c | AFC cla|sses wil|
|000062b0| 6c 20 62 65 20 61 6c 73 | 6f 20 73 68 69 70 70 65 |l be als|o shippe|
|000062c0| 64 20 77 69 74 68 20 74 | 68 65 20 6c 61 6e 67 75 |d with t|he langu|
|000062d0| 61 67 65 20 69 74 73 65 | 6c 66 2e 0a 21 20 42 75 |age itse|lf..! Bu|
|000062e0| 74 20 73 6f 6d 65 20 6f | 66 20 74 68 65 6d 20 77 |t some o|f them w|
|000062f0| 69 6c 6c 20 72 65 73 75 | 6c 74 20 74 6f 20 62 65 |ill resu|lt to be|
|00006300| 20 75 6e 75 73 65 66 75 | 6c 20 77 69 74 68 6f 75 | unusefu|l withou|
|00006310| 74 20 74 68 65 20 72 65 | 67 69 73 74 65 72 65 64 |t the re|gistered|
|00006320| 20 76 65 72 73 69 6f 6e | 20 6f 66 0a 21 20 74 68 | version| of.! th|
|00006330| 65 20 63 6f 6d 70 69 6c | 65 72 2e 20 3a 2d 29 0a |e compil|er. :-).|
|00006340| 0a 40 65 6e 64 6e 6f 64 | 65 0a 0a 40 6e 6f 64 65 |.@endnod|e..@node|
|00006350| 20 22 44 69 73 74 72 5f | 34 22 20 22 49 6e 66 6f | "Distr_|4" "Info|
|00006360| 20 61 6e 64 20 57 45 42 | 20 73 69 74 65 73 22 0a | and WEB| sites".|
|00006370| 35 2e 34 20 2d 20 49 6e | 66 6f 20 61 6e 64 20 57 |5.4 - In|fo and W|
|00006380| 45 42 20 73 69 74 65 73 | 0a 0a 49 66 20 79 6f 75 |EB sites|..If you|
|00006390| 20 77 61 6e 74 20 6d 6f | 72 65 20 69 6e 66 6f 73 | want mo|re infos|
|000063a0| 20 28 6f 72 20 75 70 67 | 72 61 64 65 73 29 20 79 | (or upg|rades) y|
|000063b0| 6f 75 20 63 61 6e 20 63 | 6f 6e 6e 65 63 74 20 74 |ou can c|onnect t|
|000063c0| 6f 3a 0a 0a 20 20 68 74 | 74 70 3a 2f 2f 77 77 77 |o:.. ht|tp://www|
|000063d0| 2e 69 6e 74 65 72 63 6f | 6d 2e 69 74 2f 7e 66 73 |.interco|m.it/~fs|
|000063e0| 6f 66 74 2f 61 66 63 2e | 68 74 6d 6c 0a 0a 20 20 |oft/afc.|html.. |
|000063f0| 20 74 68 65 20 6f 66 66 | 69 63 69 61 6c 20 70 61 | the off|icial pa|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.