Re: turbo pascal question
- From: Marco van de Voort <marcov@xxxxxxxx>
- Date: Wed, 21 Dec 2005 07:50:30 +0000 (UTC)
On 2005-12-20, Maarten Wiltink <maarten@xxxxxxxxxxxxxxxxxx> wrote:
>> type laby = array [1..lab_xSize, 1..lab_ySize] of aufbau;
>> function createlab(var aus_x, aus_y : integer) : laby; <--
>
> As originally designed, Pascal only allowed functions to return
> values that could fit in a register. Integers, pointers, but not
> records or arrays. This rule was later relaxed by individual
> compilers that returned values on the stack if necessary.
>
> Pascal is riddled with such premature optimisation. Most of it
> is firmly obsolete.
In this case I think it is correct, since laby is a fairly large creature.
.
- References:
- turbo pascal question
- From: Oliver Bleckmann
- Re: turbo pascal question
- From: Maarten Wiltink
- turbo pascal question
- Prev by Date: Re: fast drawing in delphi
- Next by Date: Re: fast drawing in delphi
- Previous by thread: Re: turbo pascal question
- Next by thread: Re: turbo pascal question
- Index(es):
Relevant Pages
|