Today I found this type definition in some FreePascal sources:
Type Real = type Double;
I wondered what the second “type” keyword means here (I have never seen this before). So I looked at http://www.freepascal.org/docs-html/ref/refch3.html#refse17.html
where it says:
_________________________________________________________________________________________________________
Although type
declarations are very fundamental and I am using them I don’t know
whether the first “type” is the standard type definition
entry keyword It can also be part of a text “type declaration” (which is obviously not a keyword). But then why
does
“type declaration” appear twice (in the heading
*and* the syntax diagramm)?
Another problem is “hint directives”. What is it? There is no link nor text that explains it. So I started another google search for “hint directives” but I only found this: http://www.freepascal.org/docs-html/ref/refse5.html where it says
that hint directives are for variable declarations but not
for type declarations
Can someone clarify this documentation please? Where can I find the documentation for my original question about the double TYPE keyword?
|
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal