www.digitalmars.com         C & C++   DMDScript  

D - GC hooks for Dll's and DSO's

reply ericanderton yahoo.com writes:
Is there any plan for adding a hook to allow a D .dll to hook the parent .exe's
garbage collector?  Anyone on the GCC side of the house know of a way to do this
in linux?

I've done similar work with C/C++ under win32, and I can say that its anything
but trival (it requires extending both the OS's module loading and module init
routines to pull off with some degree of encapsulation).  It can however be
done.  And a language as promising as D, could really benefit from such a robust
feature.

Thanks.
Apr 20 2004
parent "Matthew" <matthew.hat stlsoft.dot.org> writes:
Not as yet, but you're right that this is an issue that should be explored.

My first version of a module loader should be - Walter ?? - going into
Phobos in the next release. At the moment, it's very simple, but as it'll be
the standard module loader it's the perfect place for putting in such hooks
/ mechanisms.



<ericanderton yahoo.com> wrote in message
news:c63oak$6sv$1 digitaldaemon.com...
 Is there any plan for adding a hook to allow a D .dll to hook the parent
.exe's
 garbage collector?  Anyone on the GCC side of the house know of a way to
do this
 in linux?

 I've done similar work with C/C++ under win32, and I can say that its
anything
 but trival (it requires extending both the OS's module loading and module
init
 routines to pull off with some degree of encapsulation).  It can however
be
 done.  And a language as promising as D, could really benefit from such a
robust
 feature.

 Thanks.
Apr 20 2004