[fpc-pascal] Array of const: docs

Sven Barth pascaldragon at googlemail.com
Mon Feb 10 08:02:34 CET 2020

Alexey Tor. via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
So., 9. Feb. 2020, 17:45:

> https://www.freepascal.org/docs-html/ref/refsu69.html
> Remark: Note that there is no support for QWord arguments in array of
> const. This is for Delphi compatibility, and the compiler will ignore
> any resulting range checks when in mode Delphi.
> but the code shows that QWord is supported. huh?
>    TVarRec = record
>       case VType : Ptrint of
>         ...
>         vtInt64      : (VInt64: PInt64);
>         vtQWord      : (VQWord: PQWord);
>     end;

It's LongWord that is not supported. This is already fixed in the trunk
version of the documentation (and thus what will be used for 3.2).

> Also I cannot find Double/Single support in TVarRec but maybe Extended
> is enough.

Yes, the highest precision floating point type is enough.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200210/22c0db45/attachment.html>

More information about the fpc-pascal mailing list