[fpc-devel] Limitations of static ranged integer types and succ/pred, and dynamic solution.

2011-12-21 Thread Skybuck Flying
Hello, (Delphi limitation, but probably applies to free pascal as well): Take following examples: Tvalue = smallint; or Tvalue = word or Tvalue = 0..5000; ^ All of these examples are quite bad in the following way: They become very static, which makes it pretty much impossible to change

[fpc-devel] Re: Limitations of static ranged integer types and succ/pred, and dynamic solution.

2011-12-21 Thread Skybuck Flying
Actually wrap back is probably not the correct behaviour for succ/pred. So it should probably not wrap back. Instead it could give an out of range error message. However at least Low and High should be able to be used on the dynamic range type, so that these limits can dynamically be acquired

Re: [fpc-devel] arm embedded on 2.6.0rc1

2011-12-21 Thread Geoffrey Barton
On 21 Dec 2011, at 10:43, fpc-devel-requ...@lists.freepascal.org wrote: From: Jeppe Græsdal Johansen jjoha...@student.aau.dk Subject: Re: [fpc-devel] arm embedded on 2.6.0rc1 Date: 20 December 2011 21:20:07 GMT To: FPC developers' list fpc-devel@lists.freepascal.org Reply-To: FPC developers'

Re: [fpc-devel] Limitations of static ranged integer types and succ/pred, and dynamic solution.

2011-12-21 Thread Hans-Peter Diettrich
Skybuck Flying schrieb: ^ All of these examples are quite bad in the following way: They become very static, which makes it pretty much impossible to change their range at runtime. That's by design. These types are pretty much a left over from the days of turbo pascal, and is a reason why

Re: [fpc-devel] arm embedded on 2.6.0rc1

2011-12-21 Thread Geoffrey Barton
I have found a way out. You need to add 'CROSSOPT=-Cpcortexm3' at the end of the line:- make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm SUBARCH=armv7m in the wiki page. Then the rtl builds in thumb2. Geoffrey On 21 Dec 2011, at 10:55, Geoffrey Barton wrote: