Re: turbo pascal question



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.
.


Quantcast