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
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
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
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
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
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
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
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
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)
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
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
11 matches
Mail list logo