[fpc-pascal]Yet another problem concerning Qualifiers

Ron Weidner xecronix at yahoo.com
Sat Jul 10 04:45:34 CEST 2004


--- Marcel Martin <mm10 at ellipsa.net> wrote:
> Anton Tichawa a écrit :
> > 
> > Hello List!
> > 
> > Compiling the unit
> > 
> > ===
> > 
> > unit test;
> > 
> > interface
> > 
> > procedure test.do_test;
> > 
> > implementation
> > 
> > procedure test.do_test;
> > begin
> > end;
> > 
> > end.
> > 
> > ===
> > 
> > results in compiler errors:
> > 
> > test.pas(5,15) Error: overloaded identifier TEST
> isn't a function
> > test.pas(5,15) Fatal: Syntax error, ; expected but
> . found

The following compiled for me...

 unit test;

 interface

 procedure do_test();

 implementation

 procedure do_test();
 begin
 end;

 begin
 end.

I think you only need to fully qualify methods
(functions or procedures) when they are part of an
object.  


Ron_W



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail




More information about the fpc-pascal mailing list