[fpc-devel] New language idea: Unified types(assignmentsize-compatible types).
graemeg.lists at gmail.com
Sun Jun 26 09:49:43 CEST 2011
On 21 June 2011 13:09, Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:
> A LongWord will always have 32 bits, because it's a concrete type. Instead
> Integer, Cardinal, Char, String or Real can vary with every compiler version
> or target platform, because these are *generic* types.
Um, I think you are mistaken. Integer is *always* 32-bits on either
32-bit or 64-bit target platforms. NativeInt is different sizes on
different target platforms. I think LongWord also varies in size based
on target platform, though not 100% sure on this one.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the fpc-devel