<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 29, 2017 at 2:10 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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>
</blockquote>
<br></span>
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)</blockquote></div><div class="gmail_extra">Hmm, right (in fact I like this feature).</div><div class="gmail_extra">So, it is about syntax and strict.</div><div class="gmail_extra"><br></div><div class="gmail_extra">But is there something that I can't do with mode delphi but I can using mode objfpc?</div><div class="gmail_extra">Let me rephrase: Is there some (new cool) feature that only works in mode objfpc?</div><div class="gmail_extra"><br></div><div class="gmail_extra">My concern is make my code cross between FPC and Delphi, but loosing some feature that exists only in FPC.</div><div class="gmail_extra">I would like to know if worth make my code compilable between FPC/Lazarus and Delphi, even if my priority is FPC.</div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Marcos Douglas</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>