The following is a complete program that loads DerelictILU:
import derelict.ilu.ilu; void main() { DerelictILU.load(); // now you can call ILU functions }
From this point on, you may call ILU functions as normal.
As with other Derelict packages, DerelictILU will throw an exception if an error occurs while loading the shared library. For more information on Derelict exceptions, see the documentation for Loading/Unloading Shared Libraries.
Finally, the method DerelictILU.unload() is provided for convenience. In normal practice you do not need to call this function, as Derelict will unload the library automatically when the app exits. You generally should only use this function if you need to unload DerelictILU while the application is running.