[fpc-devel] Generics in FPC have many problems
Anthony Walter
sysrpl at gmail.com
Mon Aug 29 16:23:27 CEST 2011
On Mon, Aug 29, 2011 at 10:15 AM, Paul Ishenin <webpirat at mail.ru> wrote:
> Yes. These are known problems and you would found even more a year ago.
> Sven Barth now trying to fix exising problems and implement missing things.
>
> If you wish to try fix them yourself you need to study how parser part of
> the compiler works.
>
> Best regards,
> Paul Ishenin.
>
>
Paul, thanks for the reply. Did you mean to say that the generics are
actually being improved ... that is that someday you might be able to say:
procedure TMyNonGenericClass.MyGenericMethod<T>(List: TList<T>);
Or that the random seeming bugs with the existing way generics works is
being fixed?
I think the way generics work needs to fixed first, to allow code like above
to work. Then the strange bugs surrounding the new way they work can be
addressed.
One thing that basically needs to go away is the need to "specialize" a
generic. This causes problems even in {$mode delphi}.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20110829/a37c5461/attachment.html>
More information about the fpc-devel
mailing list