Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

GC Library

MiniD is garbage-collected. This library just gives you access to some of the GC's functionality.

Like the modules library, this library is kind of part of the base library and will always be loaded.

Members

  1. gc.collect()
  2. gc.allocated()

gc.collect()

Forces a garbage collection cycle. Returns how many bytes were freed.

gc.allocated()

Returns the total number of bytes currently allocated by the GC.