Re: Does Fast Code units compile in D5 Standard ?
- From: "Rudy Velthuis [TeamB]" <velthuis@xxxxxxxxx>
- Date: Sun, 28 Aug 2005 14:12:11 +0200
At 13:41:02, 28.08.2005, Leonel wrote:
> Anders Isaksson wrote:
>
> > This one has the problem that you have to turn off range-checking
> > when using it. By declaring
> >
> > PIntegerArray = ^array[0..SOME_UPPER_BOUND] of integer;
> >
> > you can leave range-checking on.
>
> IIRC, the largest possible upper bound is:
>
> PIntegerArray = ^array[0..(SizeOf(Integer) div 4) - 1] of integer;
Sizeof(Integer) div 4 - 1 = 0.
Did you mean High(Integer), or MaxInt?
PIntegerArray = ^array[0..MaxInt div SizeOf(Integer) - 1] of Integer;
--
Rudy Velthuis [TeamB] http://velthuis.homepage.t-online.de
"Don't be so humble - you are not that great."
-- Golda Meir (1898-1978) to a visiting diplomat
.
- Follow-Ups:
- Re: Does Fast Code units compile in D5 Standard ?
- From: Leonel
- Re: Does Fast Code units compile in D5 Standard ?
- References:
- Does Fast Code units compile in D5 Standard ?
- From: bill
- Re: Does Fast Code units compile in D5 Standard ?
- From: Nicholas Sherlock
- Re: Does Fast Code units compile in D5 Standard ?
- From: Anders Isaksson
- Re: Does Fast Code units compile in D5 Standard ?
- From: Leonel
- Does Fast Code units compile in D5 Standard ?
- Prev by Date: Re: Does Fast Code units compile in D5 Standard ?
- Next by Date: Re: Does Fast Code units compile in D5 Standard ?
- Previous by thread: Re: Does Fast Code units compile in D5 Standard ?
- Next by thread: Re: Does Fast Code units compile in D5 Standard ?
- Index(es):
Relevant Pages
|