Comparison of Pascal and Delphi: Difference between revisions

Content deleted Content added
add another source
m Procedural data types: style="font-size:90%"
Line 28:
|-
! Standard Pascal !! Delphi
|- style="vertical-align:bottom"
|-
| <syntaxhighlight lang="pascal" highlight="3,4" style="font-size:90%">
program proceduralDataType(output);
 
{ `printYIntersect` has one procedural parameter: }
procedure printYIntersect(function f(x: real): real);
Line 44 ⟶ 46:
printYIntersect(f);
end.</syntaxhighlight>
| <syntaxhighlight lang="delphi" highlight="1-4" style="font-size:90%">type
TFunc = function(x: real): real;