[fpc-pascal] Re: Dynamic array as result of class method?

Bo Berglund bo.berglund at gmail.com
Sun Nov 7 20:03:43 CET 2010


On Sun, 7 Nov 2010 11:23:03 +0100, Jonas Maebe
<jonas.maebe at elis.ugent.be> wrote:

>
>> Is it illegal to specify a dynamic array as the result type of a
>> function?
>
>No, but you cannot declare it inline, just like you cannot have
>
>function read(count: cardinal): record b: byte end;
>
>Use a separately defined type:
>
>type
>  tbytearray = array of byte;
>

Thanks, works fine!


-- 
Bo Berglund
Developer in Sweden




More information about the fpc-pascal mailing list