I don't think it's the same. You can do template metaprogramming, but Zig lets you use Zig itself which is a lot nicer.
I'm not a D programmer though so I could be wrong.