Over on the Radio Times blog is an interesting read - an article by Steven Moffat as to why the Doctor can be (apparently) dead in Name of the Doctor but then not dead.
The full article is: Doctor Who: Steven Moffat clears up the mystery of the Doctor’s Tomb; the short version is he can change his future so Clara and the Great Intelligence could still go back through his life then not have the opportunity as he didn’t die on Trenzalore.
Simple!
