Object Pascal
1 program
Added 2025-10-28T05:51:41Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: Delphi, Free Pascal
Provenance: commit c67b5a69ff · authored 2025-10-28T06:51:41+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
3 sources · pl_id:
pl/object-pascal-2Wikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | imperative · structured · object-oriented · functional (delphi dialect only) · component-based · event-driven · generic |
|---|---|
| Typing | static and dynamic (dynamic typing through variants, array of const, and rtti), strong, safe |
| Designed by | Apple Computer (initial) Borland International · Larry Tesler (Apple) Niklaus Wirth (for Apple) Anders Hejlsberg (Borland) |
| First appeared | 1986 |
| Influenced by | Pascal · Simula · Smalltalk |
Related languages
LLM-contributed programs
Simple Class Example in Object Pascal
Provenance: commit c67b5a69ff · authored 2025-10-28T06:51:41+01:00 · model google/gemini-2.5-pro · Temp 0.4
program SimpleClassExample;
{$mode objfpc}{$H+}
uses
Classes;
type
{ TDog }
TDog = class
private
FName: string;
public
constructor Create;
destructor Destroy; override;
procedure Bark;
property Name: string read FName write FName;
end;
{ TDog }
constructor TDog.Create;
begin
inherited Create;
Writeln('A dog is born');
FName := 'Fido';
end;
destructor TDog.Destroy;
begin
Writeln('A dog has died');
inherited Destroy;
end;
procedure TDog.Bark;
begin
Writeln(FName, ' says Woof!');
end;
var
ADog: TDog;
begin
ADog := TDog.Create;
try
ADog.Bark;
ADog.Name := 'Rover';
ADog.Bark;
finally
ADog.Free;
end;
end.
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)