On 2005-02-17, John Reagan <john.reagan@[EMAIL PROTECTED]
> wrote:
>>>There is no low() or high() in either Extended Pascal or unextended
Pascal.
>>
>>
>> I assume this short answer means there is not something corresponding
either
>> (e.g. M2 calls it min() and max())?
>>
>
> Correct. There are no standard routines for determining the lower or
> upper bounds of any type, ordinal or otherwise.
>
> Most compilers do have extensions (my compiler spells them UPPER and
> LOWER), but there is absolutely nothing in the standard.
Thanks, for all info and example. That's pretty much what I wanted to
know. Not in
standard, but there are implementations that add extensions for it, and
I'm not the
only one :)
Actually it was pretty much an implementation quirk that I found out
about,
and that I'll now try to have documented as extension.
We simply adhere to low/high because Delphi already uses that. (I'm not
100% certain
but IIRC it is really a delphi addition and TP didn't have it)
I looked it up, and Modula2 doesn't allow min/max for sets either though,
only for enums.


|