Re: [fpc-pascal] fgl.TFPGMap

2011-01-20 Thread Paul Ishenin
21.01.2011 0:28, Alex Shishkin wrote: Following code causes error "Operator is not overloaded: "TObject" < "TObject"" How to make it work? program generictest2; {$mode objfpc}{$H+} uses fgl; operator < (a: TObject; b: TObject): boolean; begin result := PtrInt(a) < PtrInt(b); end; type TMy

Re: [fpc-pascal] Re: fgl.TFPGMap

2011-01-20 Thread Alex Shishkin
21.01.2011 0:26, leledumbo пишет: Another good one: http://code.google.com/p/stlpascal/ STLPascal Uses pattern commonly used by C++ STL, but fortunately written in a much more readable way. It has more data structures than heContnrs, but missing the BTree implementation. Really, IMHO somebody's

[fpc-pascal] Re: fgl.TFPGMap

2011-01-20 Thread leledumbo
Another good one: http://code.google.com/p/stlpascal/ STLPascal Uses pattern commonly used by C++ STL, but fortunately written in a much more readable way. It has more data structures than heContnrs, but missing the BTree implementation. Really, IMHO somebody's got to merge all of these librarie

Re: [fpc-pascal] fgl.TFPGMap

2011-01-20 Thread Honza
2011/1/20 Alex Shishkin : > As I understand problem is in the compiler. It cant use overloaded operator > if it was defined after generic. AFAIK exactly that is the problem and that's why TFPGMap can't cope with some types. >> You can take a look on this container lib, which might be helpful for y

Re: [fpc-pascal] fgl.TFPGMap

2011-01-20 Thread Alex Shishkin
20.01.2011 22:18, Honza пишет: 2011/1/20 Alex Shishkin: Following code causes error "Operator is not overloaded: "TObject"< "TObject"" How to make it work? program generictest2; {$mode objfpc}{$H+} uses fgl; operator< (a: TObject; b: TObject): boolean; begin result := PtrInt(a)< PtrInt(b)

Re: [fpc-pascal] fgl.TFPGMap

2011-01-20 Thread Honza
2011/1/20 Alex Shishkin : > Following code causes error "Operator is not overloaded: "TObject" < > "TObject"" > How to make it work? > > program generictest2; > {$mode objfpc}{$H+} > uses >  fgl; > operator < (a: TObject; b: TObject): boolean; > begin >  result := PtrInt(a) < PtrInt(b); > end; > ty

[fpc-pascal] fgl.TFPGMap

2011-01-20 Thread Alex Shishkin
Following code causes error "Operator is not overloaded: "TObject" < "TObject"" How to make it work? program generictest2; {$mode objfpc}{$H+} uses fgl; operator < (a: TObject; b: TObject): boolean; begin result := PtrInt(a) < PtrInt(b); end; type TMyMap = specialize TFPGMap ; begin end. _

Re: [fpc-pascal] JSON - RTTI streaming.

2011-01-20 Thread Brian Winfrey
On Wed, Jan 5, 2011 at 3:12 PM, Michael Van Canneyt wrote: > Hello, > > For those of you that need JSON support: > > I have committed support for streaming published properties (properties for > which RTTI  is generated) from objects to JSON and vice versa, in a unit > fpjsonrtti. > > Not the full

Re: [fpc-pascal] Error compiling freepascal on Windows- make -C pasjpeg distclean

2011-01-20 Thread Frank Church
On 20 January 2011 13:09, Sven Barth wrote: > Am 20.01.2011 14:08, schrieb Sven Barth: > > Am 20.01.2011 11:13, schrieb Frank Church: >> >>> >>> I am trying to compile Freepascal 2.5.1 on Windows and I get the error >>> >>> >>> make -C pasjpeg distclean >>> >>> make:*** pasjpeg: No such file or

Re: [fpc-pascal] Error compiling freepascal on Windows- make -C pasjpeg distclean

2011-01-20 Thread Sven Barth
Am 20.01.2011 14:08, schrieb Sven Barth: Am 20.01.2011 11:13, schrieb Frank Church: I am trying to compile Freepascal 2.5.1 on Windows and I get the error make -C pasjpeg distclean make:*** pasjpeg: No such file or directory. Stop the version is 16795M Has that directory been removed? A

Re: [fpc-pascal] Error compiling freepascal on Windows- make -C pasjpeg distclean

2011-01-20 Thread Sven Barth
Am 20.01.2011 11:13, schrieb Frank Church: I am trying to compile Freepascal 2.5.1 on Windows and I get the error make -C pasjpeg distclean make:*** pasjpeg: No such file or directory. Stop the version is 16795M Has that directory been removed? Are you inside the "packages" directory whe

Re: [fpc-pascal] Error compiling freepascal on Windows- make -C pasjpeg distclean

2011-01-20 Thread Jonas Maebe
On 20 Jan 2011, at 11:13, Frank Church wrote: I am trying to compile Freepascal 2.5.1 on Windows and I get the error make -C pasjpeg distclean make: *** pasjpeg: No such file or directory. Stop the version is 16795M Has that directory been removed? No, it's still there in svn. Jonas __

[fpc-pascal] Error compiling freepascal on Windows- make -C pasjpeg distclean

2011-01-20 Thread Frank Church
I am trying to compile Freepascal 2.5.1 on Windows and I get the error make -C pasjpeg distclean make: *** pasjpeg: No such file or directory. Stop the version is 16795M Has that directory been removed? -- Frank Church === http://devblog.brahmancreations.com ___