[fpc-devel] FPC 2.0 and Delphi difference in scope of protected class members

2005-06-07 Thread David Butler
Hi

In Delphi the protected members are visible anywhere in the module
where its class is declared and from any descendant class, regardless
of the module where the descendant class appears.

It seems that FPC 2.0 doesn't support that second part: regardless of
the module where the descendant class appears.

For example, in this code, FPC does not see the inherited
TestProc(C). It does see it if the base class is moved into the same
file.

Regards
David



file fpctest.pas

Program Test1;

uses
  fpctestunit1;

type
  TestC = class(TestB)
  public
procedure TestProc; override;
procedure TestProc(const C: Integer); override;
  end;

var
  X : TestC;

procedure TestC.TestProc;
begin
  inherited TestProc;
end;

procedure TestC.TestProc(const C: Integer);
begin
  inherited TestProc(C);
end;

begin
  X := TestC.Create;
  X.TestProc(10);
  X.Free;
end.



file fpctestunit1.pas

unit fpctestunit1;

interface

type
  TestA = class
  protected
procedure TestProc; overload; virtual;
procedure TestProc(const C: Integer); overload; virtual;
  end;
  TestB = class(TestA)
  public
procedure TestProc; override;
  end;

implementation

procedure TestA.TestProc;
begin
end;

procedure TestA.TestProc(const C: Integer);
begin
end;

procedure TestB.TestProc;
begin
end;

end.


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] FPC 2.0

2005-02-11 Thread rstar
Is there already a release date of FPC 2.0 ?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


RE: [fpc-devel]FPC 2.0

2004-07-12 Thread Lee, John
uploaded the latest w32_195 snapshot, as requested. I'll try to do this
every day that the make works from now on. It's in the release format.
Regards John 

 
 BTW:
 Can somebody produce a new fpc win32 binary snapshot?
 

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only. It may contain proprietary material, confidential information and/or be subject 
to legal privilege. It should not be copied, disclosed to, retained or used by, any 
other party. If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender. Thank you.

___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel]FPC 2.0

2004-07-12 Thread rstar
Lee, John wrote:
/home/fpc/ftp/snapshot/v19/win32-i386 on ftp.freepascal.org with the other
snapshots...where else? J

where? I can't find them.

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only. It may contain proprietary material, confidential information and/or be subject 
to legal privilege. It should not be copied, disclosed to, retained or used by, any 
other party. If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender. Thank you.
___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel
there are the old ones from 1/6/2004
???
___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel]FPC 2.0

2004-07-11 Thread rstar
Hello all,
is there a release date for FPC 2.0 ?
BTW:
Can somebody produce a new fpc win32 binary snapshot?
___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel]FPC 2.0

2004-07-11 Thread Peter Vreman
At 14:20 11-7-2004, you wrote:
Hello all,
is there a release date for FPC 2.0 ?
When it is ready. We can't give a date as all developpers have limited 
time. In the meanwhile you can use the 1.9.x beta's. They are already more 
stable than 1.0.x.


BTW:
Can somebody produce a new fpc win32 binary snapshot?
Only John Lee has access to the win32 machine
Peter
___
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel