CodinginDelphi1.写在前面的话.PDFVIP

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
CodinginDelphi1.写在前面的话

Coding in Delphi 1. 写在前面的话 本次翻译纯属爱好,目的是提高对英文文档的理解和阅读能力,本文档大部分采用直 译的方式,而且保留了原来的英文。目的只是辅助大家理解,不喜勿喷。翻译的认为不正确 的,强烈的欢迎大家入群讨论(DIOCP 群: 320641073)一起翻译,衷心希望有英文功底加入进 行指导。 常驻翻译:Ryan, D10.天地弦 客串翻译:小生(骗术师)和DIOCP 群内的小伙伴。 友情审核:bp,逆水寒,爱国贼。 文档整理:D10.天地弦 此次翻译利用中午休息的时间进行的,大家每天在一起翻译一小段,然后讨论的方式, 力争每个词都理解到位。把他整理成PDF,希望能够帮到大家。 2. 异常和异常处理 2.1. 介绍 Added into Delphi back at the very beginning with Delphi 1, exception handling was a fundamental change to the way we thought about and wrote our code. 自delphi1 开始加入的异常处理,从根本上改变了我们的思考和代码编写的方式。 Unfortunately, despite almost twenty years of use, there are still many misconceptions and misunderstandings about how exceptions work and especially about how they should be used. 不幸的是 尽管使用了近20 年,对异常的原理特别怎么样使用方面还存在着很多的误解。 In this chapter, I’ll look at how exception handling should be done. 在这一章,我会着眼于应该怎样进行异常处理。 I’ll start out with examples of the wrong way to use and handle exceptions. 我会用错误的方式使用和处理异常的例子开始。 Using that as a base, I’ll then discuss proper ways for using exception handling. 依次为基础,我会讨论正确使用异常处理的方式。 Used improperly, exception handling can actually cause more problems and errors than it prevents. Used correctly, they can aid you in writing clean, well-designed code that is easy to maintain. I’ll assume that you are familiar with exception handling syntax, and the basics of how exceptions work. 使用不当,异常处理实际上会导致更多的问题和错误比预防。使用得当,他可以辅助你编写 干净的、设计巧妙且易于维护的代码。本章假定你已经熟悉的异常处理的语法和了解异常的 基本工作原理。 2.2. 结构化异常处理(SEH) An exception is a language feature that allows a programmer to stop execution of a process or thread immediately, but intercept that “stop” at any point in the call stack when necessary. Structured exception handling is a combination of language features and good design that makes use of exceptions in order to allow programmers to make useful assumptions when writing cod

文档评论(0)

ldj215322 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档