sclytrack: > It doesn't give an error when marking the function with safe. > > @safe > int[] create() > { > } I think marking it @safe is not relevant. In theory a good type system should give an error message on similar code. I don't know if D is supposed to spot similar error situations. Bye, bearophile