[fpc-pascal] Operator overloading and generic class

2014-08-26 Thread Xiangrong Fang
Hi All,

While I try to compile this code:

program demo;
{$mode objfpc}{$H+}
uses tree;
type
  TIntTree = class(specialize TTreeInteger)
  end;
  TITTree = class(specialize TTreeTIntTree)
  end;

operator (it1, it2: TIntTree): Boolean;
begin
  Result := it1.Data  it2.Data;
end;

var
  itt: TITTree;
begin
end.

I got the following error:

tree.pas(324,11) Error: Operator is not overloaded: TIntTree  TIntTree

The complete code for tree.pas is here:

https://github.com/xrfang/fpcollection/blob/master/src/units/tree.pas


Even I defined the needed operator like above, it still refuse to compile.

How to solve this?

Thanks in advance!

Xiangrong
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Operator overloading and generic class

2014-08-26 Thread Xiangrong Fang
Sorry, I asked similar question long time ago, I found it in my gmail.

Please ignore this question. However, I hope FPC will add this feature in
future release anyway.



2014-08-26 16:17 GMT+08:00 Xiangrong Fang xrf...@gmail.com:

 Hi All,

 While I try to compile this code:

 program demo;
 {$mode objfpc}{$H+}
 uses tree;
 type
   TIntTree = class(specialize TTreeInteger)
   end;
   TITTree = class(specialize TTreeTIntTree)
   end;

 operator (it1, it2: TIntTree): Boolean;
 begin
   Result := it1.Data  it2.Data;
 end;

 var
   itt: TITTree;
 begin
 end.

 I got the following error:

 tree.pas(324,11) Error: Operator is not overloaded: TIntTree  TIntTree

 The complete code for tree.pas is here:

 https://github.com/xrfang/fpcollection/blob/master/src/units/tree.pas


 Even I defined the needed operator like above, it still refuse to compile.

 How to solve this?

 Thanks in advance!

 Xiangrong




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] dOPF: Sleek, intuitive, and fast object persistence... Business objects are descendants of TObject.

2014-08-26 Thread Osvaldo Filho
https://github.com/silvioprog/dopf

Sleek, intuitive, and fast object persistence for faster and easier
database development.

Business objects are descendants of TObject.

No need to change the database previously in use.

Support fields with reserved words of FreePascal on the tables of the
database.

It is not dependent LCL or other visual component.

The same author's Brookframework already in production on their systems.

https://github.com/silvioprog/dopf
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] dOPF: Sleek, intuitive, and fast object persistence... Business objects are descendants of TObject.

2014-08-26 Thread Sven Barth
Am 26.08.2014 12:40 schrieb Osvaldo Filho arquivos...@gmail.com:
 The same author's Brookframework already in production on their systems.

And the same author is also active here on the mailing list and he's also
advertising his projects here already ;) (which reminds me that I still
need to test the Brook framework...)

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] dOPF: Sleek, intuitive, and fast object persistence... Business objects are descendants of TObject.

2014-08-26 Thread Osvaldo Filho
One more info:

dOPF works with the stable versions of FPC/Lazarus: 2.6.4/1.2.4


2014-08-26 9:33 GMT-03:00 Sven Barth pascaldra...@googlemail.com:

 Am 26.08.2014 12:40 schrieb Osvaldo Filho arquivos...@gmail.com:

  The same author's Brookframework already in production on their systems.

 And the same author is also active here on the mailing list and he's also
 advertising his projects here already ;) (which reminds me that I still
 need to test the Brook framework...)

 Regards,
 Sven

 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal