H
Herfried K. Wagner [MVP]
Cor,
The reason /I/ use 'Int32', ... for interop code is readability. It's not
the fear that sooner or later 'Integer' will change its underlying type.
Using 'Int32' in interop code makes it easier for me to adapt interop code
to 64 bit versions. 'Integer' doesn't need to be checked, but 'Int32' needs
to be checked and adapted, when p/invoking on a 64-bit version of Windows
XP, for example.
'Integer', 'Short', ... are less technical than 'Int32', 'Int64', and
consequently it's easier to distinguish between the aliases.

Cor Ligthert said:I think that in your proposition it is better to use only Int32 than you
have no problems with interop or anything else what can lead to
misunderstanding.
The reason /I/ use 'Int32', ... for interop code is readability. It's not
the fear that sooner or later 'Integer' will change its underlying type.
Using 'Int32' in interop code makes it easier for me to adapt interop code
to 64 bit versions. 'Integer' doesn't need to be checked, but 'Int32' needs
to be checked and adapted, when p/invoking on a 64-bit version of Windows
XP, for example.
Therefore we disagree in this, I think Microsoft did not advice
Integer just for fun.
'Integer', 'Short', ... are less technical than 'Int32', 'Int64', and
consequently it's easier to distinguish between the aliases.
But future will tell, now it is academic
