[fpc-devel]Question on an error...

Marco van de Voort marcov at stack.nl
Sun Mar 2 21:16:40 CET 2003


> 
> Why would a function definition like this:
> 
> Function Test(value : set of foo) : string;
> 
> cause the compiler to pitch an invalid type error?  The set is defined
> correctly.

You can't use composed types (string[xx], procedure types, sets etc) like this.

That is standard Pascal syntax, not the Borland derived syntaxes that FPC uses.

Use

type valuetype: set of foo;

function Test(value:valuetype):string;




More information about the fpc-devel mailing list