[fpc-pascal] [OT] Generics and Type Constraints sample

Sven Barth pascaldragon at googlemail.com
Sat Nov 1 12:51:14 CET 2014


On 01.11.2014 02:16, Flávio Etrusco wrote:
> On Fri, Oct 31, 2014 at 12:08 PM, silvioprog <silvioprog at gmail.com> wrote:
>> On Fri, Oct 31, 2014 at 11:23 AM, Sven Barth <pascaldragon at googlemail.com>
>> wrote:
>>>
>>> Am 30.10.2014 20:49 schrieb "silvioprog" <silvioprog at gmail.com>:
>>>>    TMath<T; A: TAdder<T>, constructor> = class
>>>
>>> It is not yet possible to reuse a type parameter directly in the parameter
>>> declaration. There already exists a bug report though.
>>>
>>> Regards,
>>> Sven
>>
>> Very nice!
>>
>> Some link? I will follow it.
>>
>
> Probably this: http://bugs.freepascal.org/view.php?id=25678
> It was easy to find just searching "generics" in unresolved FPC tickets ;-)

Yes, that's the one. Thanks for searching.

Regards,
Sven




More information about the fpc-pascal mailing list