[DGD] Hooks
Noah Gibbs
noah_gibbs at yahoo.com
Mon Sep 15 19:10:26 CEST 2003
--- alderamin at jippii.fi wrote:
> I read somewhere that drivers supports something
> called hooks, which
> should let me do 'event-handling' which, in turn,
> would solve several
> expansion problems.
The Kernel Library supports things it calls hooks.
That's just when you register an object like an Object
Manager with it, and it forwards certain function
calls to that manager. Its telnet connections work
the same way.
However, that provides no actual new capabilities to
DGD, it just makes the Kernel Library nicely
expandable. The Kernel Library also provides a
similar but more abstract mechanism to send signals --
an object may register itself as able to send or
receive a particular signal, and may subscribe to
specific signals on other objects. Then when an
object calls a function to *send* that signal, all
subscribers get a function call to notify them of that
fact.
However, that's something you could set up for
yourself quickly enough (I've done the same thing in C
before several times, it's quite useful). It adds no
genuinely new capabilities to DGD, it's just a nice
abstraction.
What sort of events were you hoping to handle? What
is it that DGD doesn't seem to do for you currently
that you wanted to do?
=====
------
noah_gibbs at yahoo.com
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list