[fpc-pascal] Documentation, syntax diagrams
Howard Page-Clark
hdpc at talktalk.net
Wed Jan 8 19:40:39 CET 2014
On 08/01/2014 18:16, Jürgen Hestermann wrote:
>
> Today I found this type definition in some FreePascal sources:
>
> TypeReal =type Double;
>
> I wondered what the second “type” keyword means here (I have never seen
> this before).
You are being rather obtuse.
Ignore the diagrams in the docs if they don't help you.
The double use of type here simply means that the "Real" type is being
defined as an alias for double. The two type identifiers now mean
exactly the same thing as the "=" indicates.
The documentation for hint directives gives three clear and explicit
examples of different hint directives showing how to declare them and
the compiler-generated hints that result from their use.
What more do you want?
Howard
More information about the fpc-pascal
mailing list