Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2001-09

"public" directive problem in 1.1 GO32v2 (2001/09/26)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ryan Wong

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

Reply by email