[fpc-devel] integer, cardinal

Marco van de Voort marcov at stack.nl
Mon Apr 18 21:47:14 CEST 2005


> 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)




More information about the fpc-devel mailing list