I'd like to be able to create an object that is created like a String object, and when created verifies that the String value is an appropriate option.
I.E. SpecificString can be "Bob" or "Jim".
SpecificString BadName = "Sam" //Throws exception SpecificString GoodName = "Bob" //Does not throw exception.
The most important functionality is that when it is accessed it must behave like a string when accessed.
printf(SpecificString); // outputs Bob.
Is this possible?