> Vinzent Hoefler wrote / nap?sal (a): > >>In a few years when 64 bits are normal, what will cardinal become? > >>who knows.. > >> > >> > > > >That's why Pascal has range types. Define the range you need, and don't > >use "just some type" which has the range you think you will need. > > > And how about ABI and API compatibility?
Is no problem. Simply define API's using the full types, and conversions and checks are automatic. The mapping of subranges to sizes is automatic (and typically the size is simply the base type, integer) _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel