<p>Am 29.04.2017 22:19 schrieb "Marcos Douglas B. Santos" <<a href="mailto:md@delfire.net">md@delfire.net</a>>:<br>
><br>
><br>
> On Sat, Apr 29, 2017 at 2:10 PM, Michael Van Canneyt <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>> wrote:<br>
>><br>
>><br>
>>> Hi,<br>
>>><br>
>>> I would like to write some packages that should work in FPC and Delphi.<br>
>>> I know that I will need to use {mode delphi} to do that.<br>
>>><br>
>>> My ask is: Is there some disadvantages using this mode?<br>
>>><br>
>>> I mean, is there something that we only can do in mode objfpc but not in<br>
>>> mode delphi, or is it just about syntax?<br>
>><br>
>><br>
>> It is not just about syntax. In ObjFPC mode, the compiler is more strict.<br>
>> (for examlpe: no method parameter names that concide with properties of the object)<br>
><br>
> Hmm, right (in fact I like this feature).<br>
> So, it is about syntax and strict.<br>
><br>
> But is there something that I can't do with mode delphi but I can using mode objfpc?<br>
> Let me rephrase: Is there some (new cool) feature that only works in mode objfpc?</p>
<p>The only thing comes to mind would be complex expressions containing inline specializations of generics. Due to the Delphi modes not using the "generic" and "specialize" keywords there is some disambigity that the compiler is not yet able to handle (most of these cases can however be worked around either by explicitly declaring the specializations as types or breaking the expressions up into simpler ones).</p>
<p>Regards,<br>
Sven</p>