<div dir="ltr"><div class="gmail_quote">On Wed, Jun 20, 2012 at 8:33 AM, LacaK <span dir="ltr"><<a href="mailto:lacak@zoznam.sk" target="_blank">lacak@zoznam.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<u></u>


  
  

<div bgcolor="#ffffff" text="#000000">
Class helpers would not help ?<br>
<br>
<a href="http://wiki.freepascal.org/Helper_types" target="_blank">http://wiki.freepascal.org/Helper_types</a><br></div></blockquote><div><br><br>They can, but there is a protocol that I'm trying to create that provides me information what to execute (out of white list). The thing is, that the first request maps the methods to be used, and there could be 2 or 200. To implement 200 methods that might be used is not a good idea imho, but adding the proper method to the instance/class will work much better. <br>

<br>It's easy to do in dynamic language, and I might need to implement it there instead :(<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div bgcolor="#ffffff" text="#000000">
<br>
-Laco.<div class="im"><br>
<blockquote type="cite">
  <div dir="ltr">
  <div class="gmail_quote">
  <blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
    <div>
    <div style="margin:5px 0px">
    <div><br>
    <div>
    <div> <br>
    <div>
    <blockquote style="border-left:1px solid blue;margin-left:0px;padding-left:10px">
      <div dir="ltr"> Hello, <br>
      <br>
Is there a way to tell in run-time that a specific function/procedure
should belong to a class ? <br>
      <br>
For example, let's say I have the following class: <br>
      <br>
Type <br>
  TTest = class <br>
    procedure Foo; <br>
  end; <br>
      <br>
And I have also: <br>
      <br>
procedure Bar; <br>
... <br>
end; <br>
      <br>
      </div>
    </blockquote>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
  </blockquote>
  </div>
  </div>
</blockquote>
<br>
</div></div>

<br>_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br></blockquote></div><br></div>