<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Once upon a time, on 12/18/2012 06:42
AM to be precise, Sven Barth said:<br>
</div>
<blockquote
cite="mid:CAFMUeB8DDVLSDVrEKEc0EjB5NeJxeVvht4u3_WC=mWwBRreaEg@mail.gmail.com"
type="cite">
<p>Am 17.12.2012 22:27 schrieb "Ewald" <<a
moz-do-not-send="true" href="mailto:ewald@yellowcouch.org">ewald@yellowcouch.org</a>>:<br>
><br>
> It should not contain this hidden parameter? In that case
the above code (with the intermediate pointer cast) would prove
correct? (of course it is no cross platform solution or
anything, but that is besides the matter now)</p>
<p>It would be a cross plattform solution, because the method
pointer will just be a Pointer insteat of a TMethod record.</p>
</blockquote>
Indeed, my thoughts got a bit mixed up at one point. This would
indeed be cross platform.<br>
<br>
<blockquote
cite="mid:CAFMUeB8DDVLSDVrEKEc0EjB5NeJxeVvht4u3_WC=mWwBRreaEg@mail.gmail.com"
type="cite">
<p>
> > If you want to use the above you need to declare your
method as "static;". In that case a method will behave the same
as a normal procedure variable, but if you want to change e.g.
class properties or class variables of the class the method
belongs to, you must use the class name (e.g.
TMyClass.MyProperty) to access it.<br>
><br>
> So if I get you right, the use of `static` after a method
make the hidden class type parameter disappear, but also
mandates use of the class name every time I want to use the
class' [static fields / class properties / class methods]?<br>
></p>
<p>Not quite, see Paul's mail. Sorry for the confusion :)</p>
<p>> Suppose TTestClass contains `AField: Integer; static;`,
then the following would be right if I understand you correctly?<br>
><br>
> Class Procedure TTestClass.AMethod; static; // I don't
know if `static` should be in the implementation as well, but
I'll soon figure out :-)</p>
<p>It's enough to have it in the declaration.</p>
</blockquote>
<br>
Alright. Seems like you helped me fix this issue. Thanks for your
time (as well as Paul's of course)!<br>
<br>
<pre class="moz-signature" cols="72">--
Ewald
</pre>
</body>
</html>