March 09, 2005
Charlie Patterson wrote:
> My point was that, if you are going to deny the GC, and link to a bunch of C libs for a video game, uh, use C (or simple C++).  I'm all for higher-level languages whey they are practical, but it seems odd to carry the overhead of a garbage collector and then fight it.  How helpful will it be when limited to initialization if you then have to avoid it and test for it's accidental use, etc.

You have a couple of solutions possible:
* As others have noted, you don't have to turn off the gc forever.  You can turn it back on and have it do a garbage collecting pass periodically.
* You can implement your own garbage collector.  The current collector is simply implemented in the Phobos library which comes with Walter's compiler.  You can remove it and put in one of your own.  In fact, there are a number of us who would be delighted to see somebody implement a generational collector and then release it publicly.
1 2 3
Next ›   Last »