[fpc-pascal] Generic<T> compiler error
Sven Barth
pascaldragon at googlemail.com
Mon Oct 23 08:03:22 CEST 2017
Am 23.10.2017 04:14 schrieb "Marcos Douglas B. Santos" <md at delfire.net>:
Hi,
In Pascal we can do this:
type
TXStream = TStream;
Now, TXStream is just an alias to TStream.
How do the same with generic classes, using mode delphi?
TBar<T> = TFoo<T>;
Type aliases are currently not supported in mode Delphi. In mode ObjFPC
they might work, but I'm not sure about that either...
That said I also don't see the use of type aliases for generics...
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20171023/a87e41bb/attachment.html>
More information about the fpc-pascal
mailing list