Okay Sven I'll be using the bug tracker with the "generics" to assist in
the best way I can. I just added an issue for the problem I mentioned which
I believe was previously an undocumented issue.
Issue #22019
http://bugs.freepascal.org/view.php?id=22019
___
On 11.05.2012 22:58, Anthony Walter wrote:
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.
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
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