Am 23.10.2017 04:14 schrieb "Marcos Douglas B. Santos" <m...@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to