Thanks, indeed that is an option. Actually I already have many explicit ways built to convert
tMyType to
string using different formatting parameters, but I wanted to have a simple mechanism to convert to
string with the default parameter more elegantly.
Following your logic, if I understand correctly, overloading the
:= operator would never make sense. As a basic rule the operator overload always have to have different to and from types:
operator := (a : tType1) : tType2;
This allows
VariableType2 := VariableType1;
but as I see, you want always to use
VariableType2 := VariableType1.ToType2;
and that would kill the whole concept.
Do I miss something?