Re: Could someone explain this variable please
- From: Tim <tim@xxxxxxxx>
- Date: Sun, 24 Apr 2005 18:36:47 +0100
On Sun, 24 Apr 2005 17:21:48 +0000 (UTC), Marco van de Voort
<marcov@xxxxxxxx> wrote:
>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).
Thanks. I think I understand. :-)
.
- References:
- Could someone explain this variable please
- From: Tim
- Re: Could someone explain this variable please
- From: Marco van de Voort
- Could someone explain this variable please
- Prev by Date: Re: Could someone explain this variable please
- Next by Date: Switching between applications
- Previous by thread: Re: Could someone explain this variable please
- Next by thread: Re: Could someone explain this variable please
- Index(es):
Relevant Pages
|
|