What is the difference between these two syntaxes ?
Type
AnIntType = Integer;
AnotherIntType = Type Integer;
I’ve noticed that the second version is less compatible when it’s used in procedures parameters such as Var/Const, but aren’t AnIntType and AnotherIntType exactly the same ?
The first declaration is just an alias for the type
Integer, the second declaration is a new type based in an integer and forces to the compiler to create a new distinct type calledAnotherIntTypeYou can found more information here
Data Types, Variables, and Constants Index (Delphi)