Essential Pascal  ( 暫定訳 )
by Marco Mantu
 
# Essential Pascal - Mastering Delphi シリーズ ( 邦訳では Delphi プログラミングバイブル - インプレス ) でおなじみの、Cantu 氏が、Object Pascal の基礎について書いた、公開 文書。
 
注:この訳文は、校正を加えていない原稿です。 公開しながら校正していく、という変  則的な公開をします。 誤訳、表現上の間違いなど、お気づきの点は、下記までお知  らせください。
    >> 宮本光男 - JDX00521@nifty.ne.jp
 
全11章
第1章 本文
第2章 Pascal を使ったコーディング
第3章 型、変数、定数
第4章 ユーザー定義データ型
第5章 文
第6章 手続きと関数
第7章 String ( 文字列 ) を扱う
第8章 メモリ < 一部のみ公開 >
第9章 Windows プログラミング
第10章 バリアント
第11章 プログラムとユニット
第12章 Pascal でのファイル
 
翻訳済み分
第1章:このページです。
第2章、第3章
第4章、第5章
第6章、第7章
第8章、第9章
第10章、第11章
以降、翻訳中...
 
第1章
 
 
The Object Pascal programming language we use in Delphi wasn't invented in 1995 along with the Borland visual development environment. It was simply extended from the Object Pascal language already in use in the Borland Pascal products. But Borland didn't invent Pascal, it only helped make it very popular and extended it a little...
 
Delphi の Object Pascal というのは、Delphi が現れた 1995 年に同時に開発されたものではなかった。 この言語は、Borland Pascal という開発用言語に使われていたものを、拡張しただけのものだ。 しかも Pascal 自体、Borland が開発したものではなく、Borland の役割は、この言語を非常に有名にしただけ、というものだった...
 
Wirth's Pascal
The Pascal language was originally designed in 1971 by Niklaus Wirth, professor at the Polytechnic of Zurich, Switzerland. Pascal was designed as a simplified version for educational purposes of the language Algol, which dates from 1960.
 
Wirth さんの Pascal
Pascal は 1971 に発明され、発明者は、スイスのチューリッヒ複合技術大学の教授だった、Niklaus Wirth という人だ。 Pascal は、1960 年からあった言語、Algol を簡易化し、教育用言語とするために設計された。
 
When Pascal was designed, many programming languages existed, but few were in widespread use: FORTRAN, C, Assembler, COBOL. The key idea of the new language was order, managed through a strong concept of data type, and requiring declarations and structured program controls. The language was also designed to be a teaching tool for students of programming classes.
 
Pascal が現れてきた時には、既にプログラミング言語はいくつもあり、FORTRAN、C、アセンブラ、COBOL などが主流だったが、一般の人に広く使われている、という状態ではなかった。 この新しい言語 Pascal の特徴は、順序立ったプログラミングを要求し、データ型をプログラミング制御の基盤としていること、それに、事前に宣言が必要であり、構造化プログラミング技法を要求している、ということだ。 またこの言語は、プログラミングを教授するクラスで、教材として使うためにも設計されていた。
 
Turbo Pascal
Borland's world-famous Pascal compiler, called Turbo Pascal, was introduced in 1983, implementing "Pascal User Manual and Report" by Jensen and Wirth. The Turbo Pascal compiler has been one of the best-selling series of compilers of all time, and made the language particularly popular on the PC platform, thanks to its balance of simplicity and power.
 
Turbo Pascal
Borland の世界的に有名な Pascal コンパイラ Turbo Pascal は、1983 年に発表された。 これは Jensen と Wirth の書いた、「 Pascal ユーザーマニュアル、およびリポート」を実装したものだ。 Turbo Pascal シリーズは、いつでも「一番良く売れている」コンパイラのひとつであったし、PC プラットフォームの世界で、広く知られる言語になった。 それは、Turbo Pascal がふたつの要素、簡潔さと強力さ、を見事に調和させたものだからだった。
 
Turbo Pascal introduced an Integrated Development Environment (IDE) where you could edit the code (in a WordStar compatible editor), run the compiler, see the errors, and jump back to the lines containing those errors. It sounds trivial now, but previously you had to quit the editor, return to DOS; run the command-line compiler, write down the error lines, open the editor and jump there.
 
Turbo Pascal では、統合開発環境 (IDE) が導入され、WordStar 互換のエディタでコードを編集でき、コンパイラを走らせ、エラーを目で見ることができ、エラーのある行にジャンプすることができた。 今なら当たり前のことだが、Turbo Pascal 以前なら、まずエディタを終了し、DOS に戻り、コマンドライン・コンパイラを走らせ、エラー行を書き留め、エディタを再度開いてその行に飛ぶ、という操作が必要だった。
 
Moreover Borland sold Turbo Pascal for 49 dollars, where Microsoft's Pascal compiler was sold for a few hundred. Turbo Pascal's many years of success contributed to Microsoft's eventual cancellation of its Pascal compiler product.
 
その上、Microsoft の Pascal は、数百ドルもしたのに、Borland は Turbo Pascal を僅か
49 ドルで販売していた。 Turbo Pascal があまりに何年も売れ続けたので、Microsoft
は、自分達の Pascal コンパイラをあきらめざるを得なくなった。
 
Delphi's Pascal
 
Delphi の Pascal
 
After 9 versions of Turbo and Borland Pascal compilers, which gradually extended the language, Borland released Delphi in 1995, turning Pascal into a visual programming language.
 
Turbo と Borland Pascal コンパイラは、バージョンを 9 つ数え、徐々に言語を拡張していった。 そして 1995 年、Borland は Pascal をビジュアル・プログラミング言語にした Delphi をリリースした。 
 
Delphi extends the Pascal language in a number of ways, including many object-oriented extensions which are different from other flavors of Object Pascal, including those in the Borland Pascal with Objects compiler.
 
Delphi は Pascal をいくつかの点で拡張している。 この中には、オブジェクト・コンパイラを搭載した Borland Pascal も含め、他の Object Pascal とも違う、オブジェクト指向を取り入れた拡張があった。
 
Next Chapter: Coding in Pascal
 
次章:Pascal を使ったコーディング