Am 13.06.2019 um 09:34 schrieb Dejan Boras: > It's not a bug. There's no support in FPC/Pascal for using constants > with a defined type in other declarations. > Define your MYINTEGERCONST without a type, and it should work.
Thanks all. It was a bit late and while working with existent code, I didn't came up with this idea. The compiler switch {$WriteableConst OFF} doesn't change anything in regards to typed constants. The only way is to use real constants which may have an explicit typecast. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal