Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-08 Thread Florian Klämpfl
Am 07.04.2017 um 16:15 schrieb Marco van de Voort: > In our previous episode, African Wild Dog said: >> Which integer types have their size dependent on platform? >> E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. > > In Delphi they retroactively equated longint to C long,

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread African Wild Dog
2017-04-07 12:33 GMT-03:00 Michael Van Canneyt : > > > On Fri, 7 Apr 2017, African Wild Dog wrote: > > 2017-04-07 12:10 GMT-03:00 Michael Van Canneyt : >> >> >>> NativeInt and NativeUInt are indeed provided for Delphi compatibility. >>> >>> Which

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Michael Van Canneyt
On Fri, 7 Apr 2017, African Wild Dog wrote: 2017-04-07 12:10 GMT-03:00 Michael Van Canneyt : NativeInt and NativeUInt are indeed provided for Delphi compatibility. Which integer type to chose : That depends. What do you want to achieve exactly ? In Delphi, if i

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread African Wild Dog
2017-04-07 12:10 GMT-03:00 Michael Van Canneyt : > > NativeInt and NativeUInt are indeed provided for Delphi compatibility. > > Which integer type to chose : That depends. What do you want to achieve > exactly ? > > In Delphi, if i want an integer type which depends on the

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Marco van de Voort
In our previous episode, African Wild Dog said: > > > http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Internal_Data_Formats_(Delphi)#Platform-Independent_Signed_Integer_Types > . > As Marco have pointed out, in Windows the Delphi's LongInt type is always > 32-bits. On other platforms is platform

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Michael Van Canneyt
On Fri, 7 Apr 2017, African Wild Dog wrote: 2017-04-06 18:50 GMT-03:00 Mattias Gaertner : Why do you think that Delphi's longint has 64bits anywhere? Delphi's NativeInt is 32 or 64bit depending on platform.

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Michael Van Canneyt
On Fri, 7 Apr 2017, African Wild Dog wrote: 2017-04-07 11:15 GMT-03:00 Marco van de Voort : In our previous episode, African Wild Dog said: Which integer types have their size dependent on platform? E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. In

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Marco van de Voort
In our previous episode, African Wild Dog said: > > On FPC it is always 32-bit. Ptrint and ptruint scale with pointer size, and > > integer depends on compilation mode, 16 or 32-bit. > > > So, is the size of "Integer" type dependent on the compilation mode? Yes. > (Delphi is always 32 bits) In

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread African Wild Dog
2017-04-06 18:50 GMT-03:00 Mattias Gaertner : > Why do you think that Delphi's longint has 64bits anywhere? > Delphi's NativeInt is 32 or 64bit depending on platform. > >

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread African Wild Dog
2017-04-07 11:15 GMT-03:00 Marco van de Voort : > In our previous episode, African Wild Dog said: > > Which integer types have their size dependent on platform? > > E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. > > In Delphi they retroactively equated

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Marco van de Voort
In our previous episode, African Wild Dog said: > Which integer types have their size dependent on platform? > E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. In Delphi they retroactively equated longint to C long, being 32-bit on 64-bits windows and 64-bit on Linux. The

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-06 Thread Mattias Gaertner
On Thu, 6 Apr 2017 18:25:40 -0300 African Wild Dog wrote: > Which integer types have their size dependent on platform? > E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. Why do you think that Delphi's longint has 64bits anywhere? Delphi's NativeInt

[fpc-pascal] Platform Dependent Integer Types

2017-04-06 Thread African Wild Dog
Which integer types have their size dependent on platform? E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. The documentation says "every platform has a ”native” integer size, depending on whether the platform is 8-bit, 16-bit, 32-bit or 64-bit. e.g. On AVR this is 8-bit. ",