|Top Previous Next|
"System.pas" is a source file of special importance in Delphi projects.Fundamental type definitions, procedures and functions are defined in the System unit, which is implicitly included in every unit. For example TObject is defined there. There are other intrinsic definitions like the Read, Write or Str function, which are accessible in every unit too. These intrinsic function are built into the Delphi compiler. Delphi2C# must know the signatures of such intrinsic functions and tries to find them in the System.pas. So the original incomplete System.pas either has to be replaced by an extended copy or a the original System.pas has to be supplemented by an additional source file.
In the options dialog you can set the name of such an additional System.pas extension file.
Such an individual System.pas called d2c_system.pas is in the Source folder of the Delphi2C# installation. No matter which name the file has, it internally is renamed to "d2c_system". With this name it is shown in the log-tree.
If an individual System.pas is used, the specially treated RTL/VCL functions and some compile time functions (Abs, High, Low, Odd, Pred, Succ) might have to be defined in this file for types, that cannot be handled by the built-in translation alternatives.
The overwritten System.pas gets always preprocessed, even if the option to pre-process files is disabled for all other files.
Because this file is very basic, it may not use other files.
Delphi2C# looks up system types and functions etc. in following order::
This page belongs to the Delphi2C# Documentation
|Delphi2C# home Content|