| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Try blocks |
DM> KK> You can take advantage of this by using try and catch.
DM> KK> try
DM> KK> {
DM> KK> PlayerClass *Player = new PlayerClass;
DM> KK> return Player;
DM> KK> }
DM> KK> catch
DM> er, catch what?
DM> catch(XAlloc& xa)
Oops...
Where does one find a list of exceptions, anyway?
Should they be in the documentation somewhere?
> ] * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.