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

Adriaan van Os adriaan at adriaan.biz
Thu Nov 14 08:07:13 CET 2024


Hairy Pixels via fpc-pascal wrote:
> 
> On Nov 14, 2024 at 1:53:17 PM, Sven Barth via fpc-pascal 
> <fpc-pascal at lists.freepascal.org 
> <mailto: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? That means you can do powers in types or constants right?

Only a limited numbers of functions are implemented as compile-time functions. This is so in every 
compiler.

Regards,

Adriaan



More information about the fpc-pascal mailing list