[fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Dennis Poon
What is the syntax. I could not find it in google. e.g. in unit fgl, generic TFPGMap=class(TFPSMap) end; How do I define a subclass TMyMap inheriting from TFPGMap without first specializing it? I assumed generic TMyMap = class(generic TFPGMap) ... end but fpc 2.6.2 did not accept t

Re: [fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Sven Barth
Am 10.12.2013 11:53 schrieb "Dennis Poon" : > > What is the syntax. I could not find it in google. > > e.g. in unit fgl, > > > generic TFPGMap=class(TFPSMap) > > end; > > > How do I define a subclass TMyMap inheriting from TFPGMap without first specializing it? > > I assumed > > generic TMyMap

Re: [fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Anthony Walter
Or more simply in the latest Delphi mode: TMyMap = class(TFPGMap) // ... end; Which is how the FPC mode syntax should have been to begin with IMO. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/li

Re: [fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Jonas Maebe
On 10 Dec 2013, at 15:58, Anthony Walter wrote: Which is how the FPC mode syntax should have been to begin with IMO. Can we please not restart that discussion? As has been mentioned several times before, a) the FPC and Delphi syntaxes were developed in parallel, so neither could take the

[fpc-pascal] when will Free Pascal have a stable release of 2.7.2?

2013-12-10 Thread Dennis Poon
There are quite some features I want to use there but I would wait until they are released a stable version. Any idea? Dennis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] when will Free Pascal have a stable release of 2.7.2?

2013-12-10 Thread Bart
2.7 branch will never be a stable release. Eventually we'll get a 2.8 release. Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Anthony Walter
The way FPC handles generics went against all other previous Pascal conventions. You always had A) type block which then is always followed by B) an identifier and then a C) type definition terminated with a semi colon B and C can then be repeated in pairs until a different block is declared

Re: [fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Jonas Maebe
On 10 Dec 2013, at 18:10, Anthony Walter wrote: > The way FPC handles generics went against all other previous Pascal > conventions. You always had If you really want to restart the discussion, please move it to fpc-other. Thanks, Jonas FPC mailing lists admin

Re: [fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > > The way FPC handles generics went against all other previous Pascal > > conventions. You always had > > If you really want to restart the discussion, please move it to fpc-other. (or, if 2.7.1, use $mode delphi and the Delphi syntax)

Re: [fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Jonas Maebe
On 10 Dec 2013, at 18:16, Marco van de Voort wrote: > In our previous episode, Jonas Maebe said: >>> The way FPC handles generics went against all other previous Pascal >>> conventions. You always had >> >> If you really want to restart the discussion, please move it to fpc-other. > > (or, if 2

Re: [fpc-pascal] how to define a generic subclass inheriting from another generic class?

2013-12-10 Thread Anthony Walter
Marco: I agree with you, and that was also my advice I said in my first post (the third message in this thread). ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal