1 module d2d.core.idisposable;
2 
3 /**
4  * Interface containing a delete function. Often combined with IVerifiable.
5  * Examples:
6  * ---
7  * class A : IDisposable
8  * {
9  *     ~this()
10  *     {
11  *         dispose();
12  *     }
13  *
14  *     public void dispose()
15  *     {
16  *         // Delete Native Stuff
17  *     }
18  * }
19  * ---
20  */
21 interface IDisposable
22 {
23 	/// Function for deallocating memory. Should be called in destructor.
24 	public void dispose();
25 }