[fpc-pascal] Generic: generic type in generic methods

silvioprog silvioprog at gmail.com
Sun Feb 8 20:22:34 CET 2015


On Sun, Feb 8, 2015 at 6:37 AM, Sven Barth <pascaldragon at googlemail.com>
wrote:

> On 08.02.2015 04:06, silvioprog wrote:
>
>> Hello,
>>
>> I'm trying to port some of my drafts from Delphi to FPC, but I'm taking
>> some problems. See this sample:
>>
>> http://pastebin.com/Jb6UjDX9
>>
>> Notice that I specialized the generic types directly in the method call.
>> This is very useful, and allows one to use a clean syntax for direct
>> calls in methods with generic types.
>>
>> I believe that this feature is not implemented in FPC yet. So, I ask: is
>> there any table to check the compatibility of generic types between FPC
>> and Delphi?
>>
>
> No, that feature is not implemented yet. It's however on my near term todo
> list.
>

Great. I'll follow your changes via GIT log.


> And no, there is no table to check for compatibility.
>

Hm... This table could be useful for who's doing code compatible with Free
Pascal and Delphi (I'm making a small MVC structure that will be compatible
with FPC and Delphi XE).


> Regards,
> Sven


-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150208/9d1e433b/attachment.html>


More information about the fpc-pascal mailing list