GNU Free Documentation License . .

Delphi ( )

: ,
Delphi
Delphi 7
:

, , -

:

1995; . 2011

():

:

.pas,.dpr,.dpk,.pp

:

Delphi XE2 (2011)

:

, , (. Type safety)

:

Borland/Inprise/Codegear/Embarcadero Delphi; Borland Kylix; FreePascal

:

Object Pascal, C++

:

Delphi (́, /ˈdɛlˌfi:/[1], , - , Object Pascal[2]. Delphi 7.0[3], Borland Delphi Object Pascal. 2007 Delphi ( Object Pascal) , (, .NET) : class helpers, .

[]

Microsoft Windows, Linux ( Kylix), 2002 Kylix 3 , , , Microsoft .NET.

Lazarus (Free Pascal, Delphi) Delphi , Linux, Mac OS X Windows CE.

GNU (, Notepad GNU) [   1059 ] GCC.

[]

Object Pascal  , , , . , , 5.5, - , Object Pascal  ( ) ,   RTTI. TObject, , ClassType TypeInfo, .

Object Pascal ++ , . NewInstance FreeInstance TObject. , «» «   ». «».

Object Pascal (Delphi) Turbo Pascal[4].

Delphi C# .NET.[   28 ] #. , , Borland Ltd. Microsoft Corp.

  • 8 - .NET. , ( .NET);
  • ( , , ) Win32, - .NET.

Delphi for .NET  Delphi, Delphi (Object Pascal), .NET.

Delphi .NET  Delphi 8. .NET. Delphi 2006 MDA ECO (Enterprise Core Objects) 3.0.

2006 Borland JBuilder, Delphi C++ Builder . IDE- . Borland [5].

IDE . , IDE   CodeGear, Borland.

2006 Borland RAD Studio Turbo: Turbo Delphi ( Win32 .NET), Turbo C#, Turbo C++.

2008 .

2007 CodeGear Delphi 2007 for Win32 Delphi 2007 for PHP.

2007 CodeGear , roadmap[6].

Embarcadero RAD Studio 2010

25 2008 Embarcadero, CodeGear, - Delphi for Win32 2009[7]. , [8]:

  • , VCL RTL; Windows API ( MessageBox MessageBoxW, MessageBoxA).
  • , generics.
  • .
  • $POINTERMATH [ON|OFF].
  • Exit .

2011  Delphi XE2 Win64 - Apple.

[]

[]

[]

C : := +  * / div mod not and or with xor shl shr ^ = <> >= <= < > @ in is as

[]

Object Pascal (Delphi) , .

:
. :

  • not  «», (NOT <_>)
  • and  «», () (<_1> AND <_2>)
  • or  «», (<_1> OR <_2>)
  • xor  « », , (<_1> XOR <_2>)


[]

, . , .

[]

var . :

var
  CCircle1: TColorCircle;
  CircleA: TCircle;

, (, ) , , .

[]

Object Pascal   , . , - , (instance) .

, (, member), , . . , . .

[] -

[]

, .

[]

. , , , . - .

[]

, , .

[]

[]

Delphi (program NewApplication;), Uses ( , Uses Windows, Messages, SysUtils  . .), , ( begin end.).

program Project1;                     //  ,    «Project1»
 
uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1};       // ,       
 
{$R *.res}
 
begin
  Application.Initialize;                //  
  Application.CreateForm(TForm1, Form1); //  /
  Application.Run;                       //   
end.

[] № 1

«Hello, world!» Delphi

program Helloworld;          // 
{$APPTYPE CONSOLE}           //     
begin
  writeln('Hello, world!');    //  Hello, world!
end.                         // 

[] № 2

«Hello, world!» 32- GUI Delphi

...
 
procedure TForm1.Button1Click(Sender: TObject); //  OnClick,  
begin
  ShowMessage('Hello, world!');                  //  Hello, world!
end;                                           // 
 
...

[] № 3

//  ,     MainForm
procedure TMainForm.FormCreate(Sender: TObject);
var
  //    TStrings ( ).
  Strings: TStrings;
begin
  //  (      )   TStringList.
  // TStringList -   TStrings,          .
  Strings := TStringList.Create;
  try
    //  .
    Strings.Add(' .');
    //     .
    Strings.SaveToFile('C:\Strings.txt');
  finally
    //                .
    FreeAndNil(Strings);
  end;
end;

[]

  • .pas  (pascal)
  • .dpr  (pascal)
  • .dproj  (xml)
  • .dproj.local  (xml)
  • .dfm 
  • .dpk 
  • .dcu 
  • .exe 
  • .res 
  • .dsk 
  • .identcache 

[] , Delphi

, Delphi, [9]:

[]

  1. «-́»: ,  (.). Merriam-Webster Online Dictionary. Merriam-Webster. 21 2011. 1 2008.,   «́-»: ,  (.). Merriam-Webster Online Dictionary. Merriam-Webster. 21 2011. 1 2008.
  2. Apple 1986  .
  3. Delphi Language Overview
  4. . , Delphi 7 15.0 ( Borland Pascal / Turbo Pascal 7.0, Delphi 1 8.0, Delphi 2  9.0  . . 11.0 Pascal, C++ Builder).
  5. Default Parallels Plesk Panel Page
  6. Delphi and C++Builder Roadmap
  7. Database Tools and Developer Software | Embarcadero Technologies
  8. Delphi from Embarcadero | RAD Application Development Software
  9. Good Quality Applications Built With Delphi  Delphi Programming (.)[ ?]

[]

  • . . Delphi «». Borland Delphi 2006 = Delphi for Dummies.  .: , 2007.  336 .  ISBN 0-7645-0179-8
  • . Borland Delphi 2006 = Delphi for .NET Developers Guide.  .: , 2006.  944 .  ISBN 0-672-32443-X
  • . . , . . , . . , . . . Delphi. .  2005.

[]

  • Embarcadero Technologies