Sort three variables: Difference between revisions
m
→Free Pascal: fix syntax mistake
(add →Pascal: and →Free Pascal) |
m (→Free Pascal: fix syntax mistake) |
||
Line 1,077:
The FPC (FreePascal Compiler) adopted Delphi’s generics scheme.
It works in the <tt>{$mode objFPC}</tt> and <tt>{$mode Delphi}</tt> compiler compatibility modes, the former requiring the keywords <tt>generic</tt>/<tt>specialize</tt>.
<lang delphi>{$mode objFPC}
generic procedure sort<T>(var X, Y: T);
|