I have several units (intertwined together) which uses the old TurboPascal-style object syntax. It seems to me that they refuse to compile under FPC/GO32v2 ver 1.1 Build 2001/09/26. Is this a bug in compiler or a mere syntax error? Thanks.
---
Ryan Wong
a non-productive loyal FPC lover
---
Version String:
Free Pascal Compiler version 1.1 [2001/09/26] for i386
Error message:
testfile.pas(10,5) Error: Procedure directive "PUBLIC" not\
allowed in procvar declaration
testfile.pas(10,5) Fatal: Syntax error, ";" expected but\
"CONSTRUCTOR" found
"cleaned" Test file: (testfile.pp)
{-----------------------}
unit testfile;
interface
type G = object
public
B:procedure;
public
constructor init;
end;
implementation
constructor G.init;
begin B:=nil; end;
end.
{-----------------------}