Difference between revisions of "RTL/ja"

From Lazarus wiki
Jump to navigationJump to search
m
Line 15: Line 15:
  
 
== RTLユニット ==
 
== RTLユニット ==
Due to a combination of different reasons, especially the fact that FPC tries to be compatible to two different compilers (TP/BP and Delphi) with slightly different syntax and different sets of supplied units for two different paradigms (procedural and object oriented programming), and that FPC supports many different platforms requiring support of both platform specific API functions and common routines available across all or at least most supported platforms, there are lots of different units with partly overlapping functionality. Simplified overview can be found in this [[Unit categorization|unit categorization]], detailed description of individual units and included routines is available in RTL unit reference manual provided as part of FPC extensive documentation.
+
特にFPCが力を入れている、微妙に文法やライブラリユニットが異なる2つのコンパイラ、TurboPascal/BorlandPascalとDelphiの互換性をとろうとしていることや、FPCが多くのプラットホームをサポートしていることが原因ですが、部分的に機能が重複しているユニットが多くあります。
 +
 
 +
ざっと見通すには、[[Unit categorization|ユニットのカテゴリ]]を見るとよいでしょう。
 +
それぞれのユニットの詳細な記述や含まれている関数などは、FPCの拡張文書である、RTLユニットリファレンスマニュアルを見てください。
  
 
== Using RTL ==
 
== Using RTL ==

Revision as of 15:37, 24 July 2008

Deutsch (de) English (en) español (es) français (fr) Bahasa Indonesia (id) 日本語 (ja) русский (ru)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報

Free Pascal ランタイムライブラリ (RTL)

ランタイムライブラリは、アプリケーションの環境依存部分を吸収するために生成したり、コンパイラがアプリケーションにインクルードしたりするのに使われる、いくつかのソースコードファイルです。 次の目的のために使われます:

  • ユーザーアプリケーションを実行する前に、ランタイムライブラリそのものを初期化Initialization するために使われます。
  • アプリケーションを初期化Initializationして実行 startupします。
  • 標準パスカル関数をアプリケーションに提供します。(例えば、WriteWritelnなどの標準関数 standard functionです。)
  • コンパイラのインラインinlineでは提供されない、(例えば特別な数学関数のような)ライブラリ関数library functionを提供します。
  • 拡張パスカル関数extended functionをアプリケーションに提供します。(例えば、ファイル変数file variableに外部ファイルexternal fileを割り当てるAssign関数など)
  • 標準パスカル関数や拡張パスカル関数のI/Oに対して、適切なローカルのリソースを割り当てます。(例えば、ウインドウシステム環境においては、Writeやwriteln文のファイル変数がウインドウを示すようになっているなら、そのように変更します。テキスト環境でターミナルを示す場合や、外部ファイルに割り当てる場合なども同様です)

RTLユニット

特にFPCが力を入れている、微妙に文法やライブラリユニットが異なる2つのコンパイラ、TurboPascal/BorlandPascalとDelphiの互換性をとろうとしていることや、FPCが多くのプラットホームをサポートしていることが原因ですが、部分的に機能が重複しているユニットが多くあります。

ざっと見通すには、ユニットのカテゴリを見るとよいでしょう。 それぞれのユニットの詳細な記述や含まれている関数などは、FPCの拡張文書である、RTLユニットリファレンスマニュアルを見てください。

Using RTL

Some problems using the crt and the video units with unix terminals are described here: Terminal & Fonts

Read about the API units (Video/Mouse/Keyboard) and the Crt Unix, the bigger picture in KVM API and Crt future

The windows interface units have an own page here

Developing RTL

RTL development articles