mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 05:49:12 +02:00
+ Fixed some typos, pointed out by Frank Reichert
This commit is contained in:
parent
7b048b2bfe
commit
15ad8426ed
@ -410,7 +410,7 @@ Just as in Turbo Pascal, \fpc supports both normal and typed constants.
|
|||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% Ordinary constants
|
% Ordinary constants
|
||||||
\section{Ordinary constants}
|
\section{Ordinary constants}
|
||||||
Ordinary constants declarations are no different from the Turbo Pascal or
|
Ordinary constants declarations are not different from the Turbo Pascal or
|
||||||
Delphi implementation.
|
Delphi implementation.
|
||||||
\input{syntax/const.syn}
|
\input{syntax/const.syn}
|
||||||
The compiler must be able to evaluate the expression in a constant
|
The compiler must be able to evaluate the expression in a constant
|
||||||
@ -3072,7 +3072,7 @@ Function overloading simply means that you can define the same function more
|
|||||||
than once, but each time with a different formal parameter list.
|
than once, but each time with a different formal parameter list.
|
||||||
The parameter lists must differ at least in one of it's elements type.
|
The parameter lists must differ at least in one of it's elements type.
|
||||||
When the compiler encounters a function call, it will look at the function
|
When the compiler encounters a function call, it will look at the function
|
||||||
parameters to decide which of the defined function
|
parameters to decide which one of the defined functions it should call.
|
||||||
This can be useful if you want to define the same function for different
|
This can be useful if you want to define the same function for different
|
||||||
types. For example, in the RTL, the \var{Dec} procedure is
|
types. For example, in the RTL, the \var{Dec} procedure is
|
||||||
is defined as:
|
is defined as:
|
||||||
@ -3084,7 +3084,7 @@ Dec(Var I : Byte;decrement : Longint);
|
|||||||
Dec(Var I : Byte);
|
Dec(Var I : Byte);
|
||||||
...
|
...
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
When the compiler encounters a call to the dec function, it wil first search
|
When the compiler encounters a call to the dec function, it will first search
|
||||||
which function it should use. It therefore checks the parameters in your
|
which function it should use. It therefore checks the parameters in your
|
||||||
function call, and looks if there is a function definition which matches the
|
function call, and looks if there is a function definition which matches the
|
||||||
specified parameter list. If the compiler finds such a function, a call is
|
specified parameter list. If the compiler finds such a function, a call is
|
||||||
@ -3092,7 +3092,7 @@ inserted to that function. If no such function is found, a compiler error is
|
|||||||
generated.
|
generated.
|
||||||
You cannot have overloaded functions that have a \var{cdecl} or \var{export}
|
You cannot have overloaded functions that have a \var{cdecl} or \var{export}
|
||||||
modifier (Technically, because these two modifiers prevent the mangling of
|
modifier (Technically, because these two modifiers prevent the mangling of
|
||||||
the function name by the compiler)
|
the function name by the compiler).
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% forward defined functions
|
% forward defined functions
|
||||||
|
Loading…
Reference in New Issue
Block a user