D - GC hooks for Dll's and DSO's
- ericanderton yahoo.com (9/9) Apr 20 2004 Is there any plan for adding a hook to allow a D .dll to hook the parent...
- Matthew (13/22) Apr 20 2004 Not as yet, but you're right that this is an issue that should be explor...
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
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'sgarbage collector? Anyone on the GCC side of the house know of a way todo thisin linux? I've done similar work with C/C++ under win32, and I can say that itsanythingbut trival (it requires extending both the OS's module loading and moduleinitroutines to pull off with some degree of encapsulation). It can howeverbedone. And a language as promising as D, could really benefit from such arobustfeature. Thanks.
Apr 20 2004