Advertisement
Guest User

Turning off the D garbage collector

a guest
Feb 26th, 2012
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import core.memory;
  2.  
  3. void main(string[] args) {
  4. GC.disable;
  5. // Do stuff.
  6. }
  7.  
  8. import std.gc;
  9.  
  10. void main(char[][] args) {
  11. std.gc.disable;
  12. // Do stuff.
  13. }
  14.  
  15. import tango.core.Memory;
  16.  
  17. void main(char[][] args) {
  18. GC.disable;
  19. // Do stuff.
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement