<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-02-07 23:17 GMT-03:00 Paul Ishenin <span dir="ltr"><<a href="mailto:paul.ishenin@gmail.com" target="_blank">paul.ishenin@gmail.com</a>></span>:<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-">07.02.2017 18:10, Mattias Gaertner wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The getter/setter of a class-property must be "static" (Delphi<br>
compatible).<br>
If I understand "static" correctly, then "static" simply omits passing<br>
the class as parameter. So a static class procedure is just a dumber<br>
version of a normal class procedure.<br>
<br>
What is the advantage of using "static" for class property accessors?<br>
Aka: Why did Delphi choose static here?<br>
</blockquote></span>
Class properties has apperared together with class constants and class variables (which are static by their nature). They were introduced (as I understand) to give access to private/protected static elements.<br></blockquote><div><br><br></div><div>For the record, there was a discussion about the topic years ago: <a href="https://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg30511.html">https://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg30511.html</a><br><br><br></div><div>Luiz<br></div></div></div></div>