Re: What if gc.disable at all
Daniel Keep Wrote: How about by reading the error message? Error 42:Symbol Undefined _D5tango4core6Memory2GC6addrOfFpvZPv -- Error 42:Symbol Undefined void* tango.core.Memory.GC.addrOf(void*) Ergo, you didn't link in tango.core.Memory, which it wants. Thanks a lot.But may I ask...so I have to use Tango's runtime in D2 other than D2's runtime,or,to use both? Regards, Sam
Re: What if gc.disable at all
Sam Hu wrote: Ah yes,I once translated most of Tango's tango.util.container.* into D2 excluding one or two modules which heavily depends on Tango other modules.It get compiled.However,the test program crashed with below error message: Error 42:Symbol Undefined _D5tango4core6Memory2GC6addrOfFpvZPv ---errorlevel 1 I have no clue what this means and where to restart. Regards, Sam How about by reading the error message? Error 42:Symbol Undefined _D5tango4core6Memory2GC6addrOfFpvZPv -- Error 42:Symbol Undefined void* tango.core.Memory.GC.addrOf(void*) Ergo, you didn't link in tango.core.Memory, which it wants.
What if gc.disable at all
Greeting to everybody, If this is too silly a question,please just ignore it. I was wondering what if GC is turned off during the lifetime of the application?Just as if D is a better,safer/unsafer C with class?Can't work?Or some special stuff need to handle? Thanks for your help in advance. Regards, Sam
Re: What if gc.disable at all
Hello Sam, Greeting to everybody, If this is too silly a question,please just ignore it. I was wondering what if GC is turned off during the lifetime of the application?Just as if D is a better,safer/unsafer C with class?Can't work?Or some special stuff need to handle? There are some parts of D (like AA) that allocate memory from the GC but for which it would be hard to impossible for the programmer to tell when to deallocate. If you use these features while the GC is off, you will leak memory untill you turn it back on (at that point the GC will clean it up). In some short lived programs this is no problem. Thanks for your help in advance. Regards, Sam
Re: What if gc.disable at all
Thank you all for your help! Regards, Sam