As soon as the memory referenced by a isn't referenced anymore through any variable in the program, the garbage collector will free its memory.
D also allows pointer arithmetic, except in code that is marked as @safe.
void safeFun() @safe
{
writeln("Hello World");
// allocatin...