[fpc-devel]"public" directive problem in 1.1 GO32v2 (2001/09/26)

Ryan Wong kinchungwong at students.wisc.edu
Thu Sep 27 09:25:53 CEST 2001


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.
{-----------------------}





More information about the fpc-devel mailing list