[fpc-pascal] Power operator fails in ordinal range definition

Sven Barth pascaldragon at googlemail.com
Thu Nov 14 07:53:17 CET 2024


Hairy Pixels via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Do., 14. Nov. 2024, 06:24:

> This gives me "Error in type definition”. A bug?
>
> type
>   TMyRec = record
>     type
>       T = 0..256**4;
>   end;
>

The **-operator is not *implemented* by the compiler. It's provided through
the Math unit. Thus you can't use it in constant declarations.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20241114/1e7be9c0/attachment.htm>


More information about the fpc-pascal mailing list