[fpc-pascal] Generic<T> compiler error
Sven Barth
pascaldragon at googlemail.com
Mon Oct 23 14:33:52 CEST 2017
Am 23.10.2017 12:55 schrieb "Marcos Douglas B. Santos" <md at delfire.net>:
On Mon, Oct 23, 2017 at 6:50 AM, Sven Barth via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
> Am 23.10.2017 08:29 schrieb "Marco van de Voort" <marcov at stack.nl>:
>
> In our previous episode, Sven Barth via fpc-pascal said:
>>
>> 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...
>
> How about a simple
>
>
> type tttt<x> = anotherunit.tttt<x>;
>
> ?
>
> That is often what I use type aliases for, aliasing code that has been
> factored out of an unit back in.
>
>
> Okay, that's an acceptable use case ^^'
So, can we have this in the next version? :)
Don't know. Only time will tell.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20171023/25b295d8/attachment.html>
More information about the fpc-pascal
mailing list