[fpc-devel] functions within record declarations

Daniƫl Mantione daniel.mantione at freepascal.org
Mon Dec 5 17:59:57 CET 2005



Op Mon, 5 Dec 2005, schreef Christopher Cureau:

> code: (line number prefixes...)
> 
> 103:   file_system_type = record
> 104:     name       : string[20];
> 105:      fs_flag    : dword;
> 106:      read_super : function (sb : P_super_block_t) : P_super_block_t;
> 107:      next       : ^file_system_type;
> 108:   end;

Line 107 is invalid Pascal. 1.0.10 must have accepted it while it should 
not. Define a separate pointer type, and it'll work better.

Daniel



More information about the fpc-devel mailing list