Re: [fpc-pascal] generic class helper and class references

2013-09-29 Thread Sven Barth
On 29.09.2013 05:30, Xiangrong Fang wrote: type generic TTreeT = class ... ... end; TTreeType = class of TTree; This is illegal code and compiled by pre-2.7.1 FPC only because of bugs in the generic implementation. TTree is not a legal type outside of the generic's declaration

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Sven Barth
On 29.09.2013 04:47, Xiangrong Fang wrote: 2013/9/29 Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com If you want to override the virtual Clone method of TTreeLongInt in TIntTree you need to use the same result type + override or otherwise you gain nothing,

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Sven Barth
On 29.09.2013 05:49, Xiangrong Fang wrote: 2013/9/28 Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com On second sight your solution is not correct, because you are using Clone inside your parent class which would not use the (non-virtual) Clone you created.

[fpc-pascal] GUI confusion

2013-09-29 Thread Patrick
Hi Everyone I really like the pascal code I have looked at and I am very excited about FPC. I hope this email won't upset anyone, it is a bit negative. I don't really like IDEs. I used gvim and I suppose it could almost be called an IDE as well but I mean I would rather use the shellr then

[fpc-pascal] Re: GUI confusion

2013-09-29 Thread Reinier Olislagers
On 29/09/2013 15:24, Patrick wrote: I am trying to learn what Lazarus is all about but I am still clueless. There are screen shots of it being used to develop GTK and QT applications but I have also read that GTK 2 is new and buggy and then there is this line: snip Can I build GTK 2 (or 3)

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Sven Barth
On 29.09.2013 11:47, Xiangrong Fang wrote: 2013/9/29 Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com I would suggest you to add an additional protected virtual method to TTree which is called from TTree.Clone and you override that in your descendant

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Sven Barth
On 29.09.2013 15:24, Patrick wrote: Hi Everyone I really like the pascal code I have looked at and I am very excited about FPC. I hope this email won't upset anyone, it is a bit negative. I don't really like IDEs. I used gvim and I suppose it could almost be called an IDE as well but I mean I

Re: [fpc-pascal] SSE instructions

2013-09-29 Thread Florian Klämpfl
Am 27.09.2013 23:48, schrieb August Oktobar: Are there any plans to add support for SSE intrinsic instructions, similar to MMX? Planned is a lot, when it happens is a another question. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Patrick
Thanks again to Reinier and Sven I just bought Getting Started with Lazarus IDE. I actually tried to get started with FPC back In January. I felt that the language was too tied to Lazarus and that I didn't want to use an IDE so I gave up. I will report back when I am a little further along

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Sven Barth
On 29.09.2013 20:54, Patrick wrote: I actually tried to get started with FPC back In January. I felt that the language was too tied to Lazarus and that I didn't want to use an IDE so I gave up. FPC is definitely independant of Lazarus, but Lazarus on the one hand simplifies development

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Graeme Geldenhuys
On 29/09/13 14:24, Patrick wrote: Could anyone point me to resources on how to build GUI applications without Lazarus? There are alternatives, but first a distinction needs to me made. When you say Lazarus, do you mean simply the IDE, or do you mean the LCL (Lazarus Component Library)? From

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Patrick
There are alternatives, but first a distinction needs to me made. When you say Lazarus, do you mean simply the IDE, or do you mean the LCL (Lazarus Component Library)? From your earlier remard about IDE's I assume you simply don't like IDE, but you might not mind building LCL-based

[fpc-pascal] Re: GUI confusion

2013-09-29 Thread leledumbo
I tried Lazarus but it did not seem to be creating GTK code or QT, it was just some sort of weirdo Lazarus only stuff and then in tandem with the QT binding statement I mentioned earlier http://wiki.freepascal.org/Overview_of_Free_Pascal_and_Lazarus#Lazarus_Architecture it wasn't even

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Xiangrong Fang
2013/9/30 Sven Barth pascaldra...@googlemail.com However, this does not work, because it seems that I cannot make any generic method virtual! In TIntTree, I have to write: function TIntTree.DoClone: TIntTree; As it is not possible to write TTree outside of the generic definition. This

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Sven Barth
Am 30.09.2013 04:10 schrieb Xiangrong Fang xrf...@gmail.com: 2013/9/30 Sven Barth pascaldra...@googlemail.com However, this does not work, because it seems that I cannot make any generic method virtual! In TIntTree, I have to write: function TIntTree.DoClone: TIntTree; As it is not