Re: turbo pascal question



Bruce Roberts schreef:
"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.

Correct.

I wouldn't be surprised if sets, at least those with a base type of cardinality > 32, were also disallowed.
sets in BP/TP are restricted to 256 entries so it can be stored in one byte.

--
Femme
.