Maybe it is not possible.
Starting palying with generics I have an object that is something like (code reduced to the essential parts)
TFirstGeneric <T1>=class
Private
..
A:T1;
..
End;
My need is to play with T1 both integer and double type.
Everything is going well up to the point I need to do a conversion from an input string, and I have to properly select one of the two alternatives
(S is a string)
..
A:=S.ToInteger;
A:=S.ToDouble;
..
How can do that ?
alternatives ?