On Sun, 7 Nov 2010 11:23:03 +0100, Jonas Maebe <jonas.ma...@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal