Ah, I see what you meant. Well, in this case, Lite Foundation offers you something like "this".
Here would be the example using LF, assuming that there is a class named foo:

Code:
void sayHello(foo *this, int num)
{
   printf("Hello world");
   this->num = num;
}

foo *bar = createFooInstance();
sayHello(bar, 10);



It works basically the same way, but without the need of a invoke function. However, LF also has a invoke function which is used in cases where polymorphism is needed (protocols), but the functions also pass the receiving object ("this") as the first parameter to functions.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com