Re: Power operator fails in ordinal range definition

Sven Barth via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <CAFMUeB8TH1aTrGvUkvkEALBw1n8s3HDgFFL-C7dFCRXsoAW0uQ@mail.gmail.com>
Hairy Pixels via fpc-pascal <[email protected]> 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

>

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.