Re: Could someone explain this variable please
- From: Marco van de Voort <marcov@xxxxxxxx>
- Date: Sun, 24 Apr 2005 17:21:48 +0000 (UTC)
On 2005-04-24, Tim <tim@xxxxxxxx> wrote:
>
> What exactly is this declaring?
>
> somevar: 0..100;
It is an integer subtype with range 0..100
> And how and why is it used?
For safety/debugging. When compiled with rangechecking on, an overflow at
values higher than 100, or below zero will be detected. It also allows the
compiler to downgrade to a smaller size than integer (e.g. smallint).
.
- Follow-Ups:
- References:
- Prev by Date: Re: Delphi DLL / VB app
- Next by Date: Re: Could someone explain this variable please
- Previous by thread: Could someone explain this variable please
- Next by thread: Re: Could someone explain this variable please
- Index(es):