Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats a kernel function (kfun)?

function Kernel
0
Posted

Whats a kernel function (kfun)?

0

A kernel function is a function provided by DGD itself. Documentation for these functions can be found in the doc/kfun directory of the DGD distribution and online (unofficially). These functions are available to every object (unless redefined by an inherited object — the auto object often does redefine them). What’s the auto object? The auto object is one of two special objects in DGD. It is (automatically) inherited by every other object except the driver object. In this way, any function in the auto object that is declared static will act much the same as a kfun. Functions like this are alternatively called efuns (since they act as efuns do in other LPC drivers) or afuns. It should be noted that even if a function that is static in the auto object isn’t explicitly defined as nomask it will always act as if it is in the context of the auto object. That is, although it may be masked in an object, calls to it from within the auto object will always use the version in the auto object.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123