[fpc-devel] NativeInt

Skybuck Flying skybuck2000 at hotmail.com
Tue Sep 13 02:37:48 CEST 2011


Hello,

Free Pascal 2.4.2 does not know about "NativeInt" a new type in recent 
Delphi compilers which is either 32 bit for 32 bit platforms or 64 bit for 
64 bit platforms.

Apperently the adventage of the NativeInt is that it can be used in for 
loops, while int64 may not be used in for loops.

Perhaps free pascal does allow the use of int64 in for loops, but it would 
still be nice if free pascal also had a NativeInt type to make it somewhat 
easier to compile delphi programs in free pascal in the future.

I think the NativeInt type could become populair for for loops in Delphi to 
make code adjust automatically to the platform. So I think it's highly like 
that more and more Delphi code will start using NativeInt ;)

Perhaps there is another user solution to work around this missing type in 
the compiler, maybe the user can use some kind of "global allias" to define 
that NativeInt=integer or NativeInt=int64 and so it becomes automatically 
visible in all units ?!? So no special unit has to be included to support 
this type ? As if it were part of system/rtl or so ;) ?!?

Bye,
  Skybuck. 




More information about the fpc-devel mailing list