Re: turbo pascal question
- From: Marco van de Voort <marcov@xxxxxxxx>
- Date: Tue, 20 Dec 2005 20:21:26 +0000 (UTC)
On 2005-12-20, Bruce Roberts <dontsendtober@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> "Oliver Bleckmann" <Oliver-Bleckmann@xxxxxxxxxx> wrote in message
> news:do9i03$ko6$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Hi,
>> my brother asked me about this, now I ask you.
>> This should work for FreePascal, but not for Borland Pascal 6.0 or 7.0 -
>> WHY?
>
> IIRC BP function results were either passed back in registers, an fpu
> register, or as a double word stack entry (in the case of strings). While I
> haven't found an explicit explanation, I would expect that neither records
> or array types could be used as function result types. I wouldn't be
> surprised if sets, at least those with a base type of cardinality > 32,
> were also disallowed.
>16, since BP is a 16-bit compiler.
Another possibility is that the dimensions of the array are larger than 64k.
.
- References:
- turbo pascal question
- From: Oliver Bleckmann
- Re: turbo pascal question
- From: Bruce Roberts
- turbo pascal question
- Prev by Date: Re: turbo pascal question
- Next by Date: Re: Button list control
- Previous by thread: Re: turbo pascal question
- Next by thread: Re: turbo pascal question
- Index(es):