Thanks Sven. Overall generics in Fpc are very much improved. So good
work! Your work is much appreciated!
I also experienced some different problems with classes which implement
generic interfaces where the compiler thinks that method aren't implement.
On my blog I have a page where I describe mu
Any discussion of this has, unfortunately, gone very quiet. However,
while it wasn't me who raised it I continue to poke around, and have
come up with a couple of relevant points.
The first is that somebody suggested using MUSIC/SP as a development
platform since it has a degree of TCP/IP supp
On 11.05.2012 20:10, Anthony Walter wrote:
Okay with the latest trunk version I tried compiling my generic classes.
It seems there is a problem with fpc generics in that you cannot use a
generic as a type parameter. e.g type TDictionary =
class(TEnumerable>) ...
Yes, this is a known problem and
Okay with the latest trunk version I tried compiling my generic classes. It
seems there is a problem with fpc generics in that you cannot use a generic
as a type parameter. e.g type TDictionary =
class(TEnumerable>) ...
Given:
type
TCollection = class
end;
TPair = class
Key: K;
Val
The example problem I listed seems to be fixed in trunk. I'll write a few
more examples. Thank you FPC development team!
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
Okay, i'll try getting trunk sources from svn and building. I'll reporting
back shortly.
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
It will compile correctly with the trunk version.
Generics support has been greatly improved in the trunk version; you may
want to give it a try.
On May 12, at 00:11, Anthony Walter wrote:
> Generics still have a lot of problems. I know they've been in the works
> for years but they still fail
Generics still have a lot of problems. I know they've been in the works
for years but they still fail easily. Consider the Delphi mode below, I get
"Error: Generics without specialization cannot be used as a type for a
variable"
I could easily write up a whole bunch of test cases were generic sti