[fpc-pascal] Power operator fails in ordinal range definition
Sven Barth
pascaldragon at googlemail.com
Thu Nov 14 14:11:53 CET 2024
Hairy Pixels via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Do., 14. Nov. 2024, 08:03:
> On Nov 14, 2024 at 1:53:17 PM, Sven Barth via fpc-pascal <
> fpc-pascal at lists.freepascal.org> wrote:
>
>> The **-operator is not *implemented* by the compiler. It's provided
>> through the Math unit. Thus you can't use it in constant declarations.
>>
>
> Why is that?
>
Because it wasn't deemed necessary that the compiler itself provides this
operator.
That means you can do powers in types or constants right?
>
I assume you mean "can't". In that case, yes, that is not possible.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20241114/8c333a19/attachment.htm>
More information about the fpc-pascal
mailing list