[OT] Re: Why don't you advertise more your language on Quora etc ?

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Sun Mar 5 22:39:27 PST 2017


On Monday, 6 March 2017 at 05:50:01 UTC, Rico Decho wrote:
> Actually it's my case. I'd LOVE to use D for game development 
> for instance, but I won't take the risk of having the GC pause 
> the game when I don't want to, even for just an unknown amount 
> of milliseconds, and even if I know that anyway I'll try to 
> limit dynamic allocations by using caches etc.

void loop() {
     // code
}

void loadLevel() {
     import core.memory : GC;
     GC.disable();
     while(stuff)
         loop();
     GC.collect();
}

Also see EMSI containers for no gc containers with deterministic 
destruction https://github.com/economicmodeling/containers



More information about the Digitalmars-d mailing list