[fpc-pascal] Adding method dynamically to a class
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Tue Jun 19 14:42:17 CEST 2012
On Tue, 19 Jun 2012, ik wrote:
> Hello,
>
> Is there a way to tell in run-time that a specific function/procedure
> should belong to a class ?
>
> For example, let's say I have the following class:
>
> Type
> TTest = class
> procedure Foo;
> end;
>
> And I have also:
>
> procedure Bar;
> ...
> end;
>
> Is there a way to make at some point of my code execution, that Bar will be
> a method of TTest ?
> Or maybe for a specific instance of TTest ?
As far as I know there is no language structure for this, unless the
objective C classes support offers this.
Michael.
More information about the fpc-pascal
mailing list