On 7 Oct 2003 at 14:36, J. David Bryan wrote:
Using:
gpc version 20030507, based on gcc-3.2.3 (mingw special 20030504-1)
configured as "i486-pc-mingw32" and running under Windows NT 4.0, the "widget_module" example from section 6.4.2.5 of the EP manual fails to compile, as follows:
D:\test>gpc --extended-pascal -c widget.pas widget.pas:37: result types in forward declared functions are an extension widget.pas:37: of UCSD Pascal, Borland Pascal, traditional Macintosh widget.pas:37: Pascal
The following simplified example exhibits the same behavior:
module modbug;
export i = (e);
function e (v : integer) : integer;
end;
function e;
begin e := 1 end;
end.
Compiling produces:
D:\test>gpc --extended-pascal -c modbug.pas modbug.pas:12: result types in forward declared functions are an extension modbug.pas:12: of UCSD Pascal, Borland Pascal, traditional Macintosh modbug.pas:12: Pascal
I do not have a gpc-20030930 implementation to check this against.
You mean gpc-20030830? If so, then there are Mingw binaries on the GPC server (updated today).
I just tested your modbug.pas with my gpc-20030830, and I get the same result as described above.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/