Frank Heckenbach wrote:
Two questions about portability of properties of arrays:
- Is it safe to assume -- for all platforms, including possible future
ones -- that SizeOf(a) = ((Ord(y)-Ord(x)+1) * SizeOf(t)?
No.
- Is it safe to assume that
Integer(@a[p])-Integer(@a[q]) = (p-q) * SizeOf(t)?
No.
(Is it generally allowed to cast a pointer into an integer, in the first place?)
No.
Groetjes,
Berend.