Hey,
In my game im using AngelScript and i want to be able to convert a "string" into a number by doing this:
string test = "2224";
int someNumber = int(test);
Is there a way to do this? In your string class, you can convert a NUMBER to a STRING just by doing this:
string test = 2224;
But in my string class (which is a modification of yours) to convert a number to a string you do this:
string test;
test = string(2224);
//Doing it this way, i dont have to register the string operators for
//every data type, i just create a constructor for every data type
I would like to do the same when converting a string to a number.