<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 1, 2014 at 4:49 PM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p>Am 01.12.2014 18:59 schrieb "silvioprog" <<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>>:<span class=""><br>
><br>
> Hello,<br>
><br>
> From the Embarcadero wiki:<br>
><br>
> "A helper type may not declare instance data, but class fields are allowed." ( <a href="http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi)" target="_blank">http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi)</a> ).<br>
><br>
> In Delphi it compiles fine:<br>
><br>
>   TFoo = class<br>
>   end;<br>
><br>
>   TBar = class helper for TFoo<br>
>   private class var<br>
>     FFoo: TFoo;<br>
>   end;<br>
><br>
> In FPC:<br>
><br>
> project1.lpr(11,5) Error: An interface, helper or Objective-C protocol or category cannot contain fields<br>
><br>
> Bug?</span></p>
<p>Yes, bug. Please report.</p>
<p>Regards,<br>
Sven</p></blockquote></div><div class="gmail_extra">Done: <a href="http://bugs.freepascal.org/view.php?id=27120">http://bugs.freepascal.org/view.php?id=27120</a>.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thx!</div><div class="gmail_extra"><br></div>--<br><div class="gmail_signature">Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>