Am 18.03.2017 23:27 schrieb "African Wild Dog" :
>
> 2017-03-18 18:40 GMT-03:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:
>>
>> Forward declarations for generic types are not supported.
>
> Are there plans for add suport for this in fpc 3.2?
No, there are not.
Regards,
Sven
__
Am 19.03.2017 00:02 schrieb "Bart" :
>
> On 3/18/17, Sven Barth via fpc-pascal
wrote:
>
> > Forward declarations for generic types are not supported.
>
> But it should not give an internal error.
With that I agree. Would you please check with 3.1.1 and if it's still the
case there report a bug so
Am 19.03.2017 05:07 schrieb "African Wild Dog" :
>
> Hello,
>
> Test env: debian jessie amd64 - fpc 3.0.2
>
> It seems free pascal have a bug when handling interface inheritance using
generics.
>
> When i try to compile the unit bellow, i get this error:
>
> "interface_bug.pas(41,44) Error: Incompa
Hi,
Sorry if this is a silly question, I didn't really follow Generics
discussions in the past. If the "rtl-generics" package a replacement for
the fgl unit?
Going forward (FPC 3.0.2+), which Generics code are we supposed to use?
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolk
On Sun, 19 Mar 2017, Graeme Geldenhuys wrote:
Hi,
Sorry if this is a silly question, I didn't really follow Generics
discussions in the past. If the "rtl-generics" package a replacement for
the fgl unit?
No, it is for Delphi compatibility. It contains also more classes/templates.
Going fo
Thank you Michael.
Regards,
Graeme
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
On 3/19/17, Sven Barth via fpc-pascal wrote:
> With that I agree. Would you please check with 3.1.1 and if it's still the
> case there report a bug so that this isn't forgotten?
r35221 (a bit old maybe) gives an IE.
Bart
___
fpc-pascal maillist - fp
On 3/19/17, Sven Barth via fpc-pascal wrote:
>> But it should not give an internal error.
>
> With that I agree. Would you please check with 3.1.1 and if it's still the
> case there report a bug so that this isn't forgotten?
A quick search in the bugtracker for this IE showed:
http://bugs.freepa
On 3/19/17, Bart wrote:
> r35221 (a bit old maybe) gives an IE.
Still present in r35625 (today).
Bart
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Oops, I did not see your answer.
Thanks Michael.
My original bug was that I did:
MyThread = class(TThread)
...
procedure OnTerminate ;
...
It was not working, of course because OnTerminate is a procedure of object:
procedure OnTerminate(sender: Tobject); ---> This solve all.
Fre;D
-
Ma
> procedure OnTerminate(sender: Tobject); ---> This solve all.
Not sure. ;-(
Hello.
It is me again.
I am loosed.
If I do :
MyThread : = class(TThread);
...
procedure OnTerminate(sender: Tobject); override;
...
There is a error message:
Error: (3058) There is no method in an ancestor class
Am 19.03.2017 10:10 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> Hi,
>
> Sorry if this is a silly question, I didn't really follow Generics
> discussions in the past. If the "rtl-generics" package a replacement for
> the fgl unit?
The fgl unit is more lightweight while rtl-gen
Am 19.03.2017 11:30 schrieb "Bart" :
>
> On 3/19/17, Sven Barth via fpc-pascal
wrote:
>
> >> But it should not give an internal error.
> >
> > With that I agree. Would you please check with 3.1.1 and if it's still
the
> > case there report a bug so that this isn't forgotten?
>
> A quick search in
On 3/19/17, fredvs wrote:
> I am loosed.
lost is probably the word you're looking for ;-)
> procedure OnTerminate(sender: Tobject); override;
> ...
try
procedure DoTerminate; override;
Bart
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.or
In our previous episode, Sven Barth via fpc-pascal said:
> > Sorry if this is a silly question, I didn't really follow Generics
> > discussions in the past. If the "rtl-generics" package a replacement for
> > the fgl unit?
>
> The fgl unit is more lightweight while rtl-generics might provide bette
Hello.
> procedure DoTerminate; override;
Yep, this is the working solution (finally i get it).
Many thanks Bart.
Fre;D
-
Many thanks ;-)
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/TThread-OnTerminate-tp5727888p5727915.html
Sent from the Free Pas
2017-03-19 5:25 GMT-03:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:
> I think this will happen with non-generic interfaces as well. So please
> test with those and if possible also with 3.1.1 and report a bug if
> necessary (preferable with a non-generic example, makes things e
Am 19.03.2017 um 10:10 schrieb Graeme Geldenhuys:
> Hi,
>
> Sorry if this is a silly question, I didn't really follow Generics
> discussions in the past. If the "rtl-generics" package a replacement for
> the fgl unit?
>
> Going forward (FPC 3.0.2+), which Generics code are we supposed to use?
Th
Am 19.03.2017 17:55 schrieb "African Wild Dog" :
>
> 2017-03-19 5:25 GMT-03:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:
>>
>> I think this will happen with non-generic interfaces as well. So please
test with those and if possible also with 3.1.1 and report a bug if
necessary (p
2017-03-19 15:20 GMT-03:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:
> But without the cast you get the same error, yes?
>
> Regards,
> Sven
>
>
Yes, i need to cast.
Regards
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
2017-03-18 19:29 GMT-03:00 African Wild Dog :
> 2017-03-18 18:41 GMT-03:00 Sven Barth via fpc-pascal <
> fpc-pascal@lists.freepascal.org>:
>
> Nested specializations are currently not supported though they *might*
>> work with 3.1.1.
>>
>
> I will do test some tests with 3.1.1. Thanks.
>
> Regard
2017-03-19 5:25 GMT-03:00 Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org>:
> Am 19.03.2017 05:07 schrieb "African Wild Dog" :
> >
> > Hello,
> >
> > Test env: debian jessie amd64 - fpc 3.0.2
> >
> > It seems free pascal have a bug when handling interface inheritance
> using generics.
On 2017-03-19 18:00, Florian Klämpfl wrote:
> The "FPC way" is fgl, the delphi compatible way is rtl-generics.
Thanks everybody - very useful information. At least now I know when to
use which one.
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgu
23 matches
Mail list logo