Hi, On 5/29/07, blackdog <[EMAIL PROTECTED]> wrote:
Simple question, if I wanted to use D to interface to neko would the fact that is also uses the boehm garbage collector present a problem?
Following on from what Nicolas said, D injects some startup code which initialises the garbage collector and runs static constructors, before calling the D-style main() function. If you provide a C-style main(), this injection doesn't happen and you have to call the D startup functions yourself. It's necessary to work this way in quite a few cases when working with external libraries, and Neko is one of those cases, since you need to initialise Neko before initialising D. If you don't already know how to do this I have some old (non-Neko specific) code laying about and can probably give you a hand getting things working. Good luck, Dan. -- Neko : One VM to run them all (http://nekovm.org)
