没有合适的资源?快使用搜索试试~ 我知道了~
首页Delphi 10.1 Berlin_手册_简体中文版(感谢张子仁先生协助翻译).pdf
Delphi 10.1 Berlin_手册_简体中文版(感谢张子仁先生协助翻译).pdf
需积分: 12 131 浏览量
更新于2023-05-29
评论
收藏 4.59MB PDF 举报
Delphi 10.4 Sydney的Object Pascal编程语言完整中文指南
资源详情
资源评论
资源推荐


Marco Cantù
Object Pascal Handbook
The Complete Guide to the Object Pascal programming
language for Delphi and AppMethod developers
Piacenza (Italy), July 2015

Author: Marco Cantù
Publisher: Marco Cantù
Editor: Peter W A Wood
Cover Designer: Fabrizio Schiavi (www.fsd.it)
Copyright 1995-2015 Marco Cantù, Piacenza, Italy. World
rights reserved.
The author created example code in this publication expressly for the free use by its
readers. Source code for this book is copyrighted freeware, distributed via the web
site http://code.marcocantu.com. The copy- right prevents you from
republishing the code in print or electronic media without permission. Readers are
granted limited permission to use this code in their applications, as long at the code
itself is not distributed, sold, or commercially exploited as a stand-alone product.
Aside from this specific exception concerning source code, no part of this publication
may be stored in a retrieval system, transmitted, or reproduced in any way, in the
original or in a translated language, including but not limited to photocopy,
photograph, magnetic, or other record, without the prior agreement and writ- ten
permission of the publisher.
Delphi and Appmethod are trademarks of Embarcadero Technologies. Other
trademarks are of the respective owners, as referenced in the text. Whilst the author
and publisher have made their best efforts to prepare this book, they make no
representation or warranties of any kind with regard to the completeness or accuracy
of the contents herein and accepts no liability of any kind including but not limited to
performance, mer- chantability, fitness for any particular purpose, or any losses or
damages of any kind caused or alleged to be caused directly or indirectly from this
book.
Object Pascal Handbook
ISBN-10: 1514349949
ISBN-13: 978-1514349946
The electronic edition of this book has been licensed to Embarcadero
Technologies Inc and it is also sold directly by the author. Any other download
or sale outlet is likely to be illegal. Do not distribute the PDF version of this
book without permission. The printed edition is self-published through
CreateSpace Inc and sold in several online outlets.
More information on
http://www.marcocantu.com/objectpascal

1
begin
功能强⼤且简单、容易表达又具可读性、初学者跟专业⼈员都能快速熟悉,
这些就是今⽇ Object Pascal 的部份特点。
Object Pascal 历久弥新,不断向前演进,⽽演进⾄今,更具备了多种不同⾯
向,它结合了对象导向程序语⾔的强⼤、泛型程序的⾼阶功能,以及动态
结构特性 (anonymous function 等结构化的程序区块),却也没有舍弃许多程
序化语⾔的传统特性。Object Pascal 适合所有⾏业,是⼀个在⾏动时代具备
编译功能的开发⼯具,更是⼀个具备坚强历史,已经准备好⾯对未来挑战
的程序语⾔。
Object Pascal 是为了开发什么特定功能⽽存在的?从单机桌⾯到主从式架
构应⽤程序,从⼤量处理资料的 web 模组到中介软体,从办公室⾃动化到
最新的⾏动装置(⼿机与平板 app)的开发,从⼯⼚⾃动化系统到⽹际/⾏动电
话虚拟⽹路等等,这些都不是这个语⾔被设计准备来处理的领域,⽽是在
今⽇世界中,Object Pascal 这个语⾔已经实际在服务的领域,这就是 Object
Pascal 强⼤的地⽅,它不是预期可以做这些事,⽽是已经做到了。
我们今⽇使⽤的 Object Pascal 程序语⾔的核⼼,都是早在 1995 年,那个程
序语⾔发展的黄⾦年代就已经定义好的,在同⼀个年代,JAVA 跟 JAVAScript
也刚被开发出来。虽然 Object Pascal 语⾔的根基是在那么久以前就已经奠
定的,⽽且还有更久以前的 Pascal 语⾔,这个程序语⾔的发展并没有在 1995
年停下脚步,直⾄今⽇,它的核⼼功能仍旧不断的在增强当中,我们可以
在 Embarcadero 的 Appmethod, Delphi 跟 RAD Studio 当中这些功能在单机应
⽤程序与⾏动应⽤程序、编译器与开发⼯具的领域中继续进步着。
⼀本介绍今日程序语⾔的书
随着程序语⾔的⾓⾊不断变化,功能的延伸也逐年在发⽣,最终会反应在
程序语⾔会吸引新的开发⼈员。我觉得写⼀本能够完整介绍今⽇的 Object
Pascal 所涵盖的各个领域是很重要的。这个⽬标是要让新进的开发⼈员能
够有语⾔的⼿册,让对其他相似语⾔熟悉的开发⼈员也能快速⼊门,也让
在过去的这些年⾥,对熟悉不同版本 Pascal 的开发⼈员能快速的知道⽬前
Object Pascal 究竟有了什么发展。

2
新进的开发⼈员当然需要⼀些基础,但在刚开始的章节中,即使是熟悉过
去不同版本 Object Pascal 的开发⼈员,⼀定也能得到⼀些新的⼼得。我们
会以⼀个篇幅不长的附录来简单介绍 Object Pascal 语⾔的历史,其余的篇
幅则会着重在今⽇的 Object Pascal。
从早期的 Delphi 开始,⼤多数的核⼼功能并没有很显着的变化,绝⼤多数
很重要的核⼼功能,早在 1995 年第⼀版的 Delphi 当中就已经奠定了基础。
在我即将开始介绍的本书的内容当中,这个程序语⾔在这么多年的存在过
程中,并不是停滞不前的,它在过去的这段期间中,以相当快的速度在进
化着。
在我过去其他的作品当中,我的介绍⼿法⽐较传统,⾸先会介绍最传统的
Pascal 程序语⾔,接着或多或少介绍⼀些在发展过程中被加⼊的延伸功能。
但在这本书⾥,我会直接切中主题,直接介绍今⽇我们怎么透过 Object
Pascal 解决问题,或者怎么⽤它最好,⽽不会介绍它⼀路⾛来是怎么演进
的了。
举例来说,最近被提出的原⽣的资料型别具备对象导向特性中 method 的功
能,可溯及原始 Pascal 语⾔。这部份我在第⼆章⾥⾯就会直接介绍怎么使
⽤这个功能,⽽不会试图先让读者们理解这当中的设计运作原理。
换句话说,这本书会着重在让读者们怎么在今时今⽇使⽤ Object Pascal,从
基础引导、让读者们从做中学,只会提到最低限度的历史发展。即使读者
们已经很熟悉这个语⾔了,应该还是会希望直接切⼊主题,⾄于历史的发
展与脉络,我们只在最后⼀章介绍。
从做中学
这本书的意旨,是要介绍核⼼概念,并透过很短的范例让读者⽴即进⼊状
况,透过这些范例,读者们可以试着执⾏、练习、并且⾃⾏摸索了解到概
念,并对这些概念有更深切的体认。
这本书不会是⼀本参考⼿册,参考⼿册会解释这个程序语⾔在理论上该怎
么做,并列举所有可能的案例作为说明。⽽为了精确的介绍概念,本书会
透过⼀步步的实战练习,⽤范例来让读者学会 Object Pascal 这个语⾔。这
些范例都会很简单,因为我们的⽬标,是让读者⼀次专注在⼀个主题上⾯。
完整的范例程序代码会放在⼀个 Subversion 的 Repository ⾥⾯,⽽不是单
剩余573页未读,继续阅读














安全验证
文档复制为VIP权益,开通VIP直接复制

评论0