I have no idea what you are trying to achieve, but I am willing to bet putting a type in a string is the wrong way to do it. Why don't you give an example of what *outcome* you are trying to achieve first, maybe in a language you are more familiar with, and then we can tell you how to do it in D.