[ Prev ] [ Index ] [ Next ]

Introspection

Created Tuesday 07 October 2008

Goal: permit a dBus binding/implementation

TODO: find an API

Behaviour

At compile time, the compiler would construct a static data structure containing all the information needed about the program such as all the prototypes compiled. For each prototype we would have:

For each slot:

Some slots could be dynamically called. Generally it would not be the case, but it could be specifically asked at compile time, either by a setting in the project, or using a special keyword (a special Section ?).

In those cases, a pointer to the function will be stored in the static data structure. For the runtime to be able to call it, it should have a unified prototype (something like the prototype of the fallback slot). The parameters would be serialised in an array.


Backlinks: :Computer:Lisaac:Specs