PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Object Pascal

Object Pascal

Object Pascal is a pl created in 1986.

#239on PLDB 36Years Old 765Users
0Books 0Papers

Object Pascal refers to a branch of object-oriented derivatives of Pascal, mostly known as the primary programming language of Embarcadero Delphi.. Read more on Wikipedia...


Example from hello-world:
program ObjectPascalExample; type THelloWorld = class procedure Put; end; procedure THelloWorld.Put; begin Writeln('Hello World'); end; var HelloWorld: THelloWorld; begin HelloWorld := THelloWorld.Create; HelloWorld.Put; HelloWorld.Free; end.
Example from Wikipedia:
type THelloWorld = class procedure Put; begin PrintLn('Hello, World!'); end end; var HelloWorld := THelloWorld.Create; HelloWorld.Put;

Language features

Feature Supported Example Token
Strings
'Hello world'
'
MultiLine Comments
(* A comment
*)
{ }
Comments
(* This is a multi-line comments
 and it will span multiple lines. *)
{ This is a single line comment in pascal }
Operator Overloading
Constructors
Semantic Indentation ϴ
Line Comments ϴ
systemverilog.html · object-pascal.html · apollo-guidance-computer.html

View source

PLDB - Build the next great programming language · v2022 · Day 31 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com