An example:
scriptname MyDataType extends form...int function AddAndDivide(int A,int B, int C) globalif C != 0 return ((A+B)/C) as intelse debug.MessageBox("Attempt to divide by zero in AddAndDivide Integer function")endifendfunctionfloat function AddAndDivide(float A,float B, float C) globalif C != 0.0 return ((A+B)/C)else debug.MessageBox("Attempt to divide by zero in AddAndDivide float function")endifendfunctionAnd the program would pick the correct one, returning an integer value if it is passed integers, and a float value if passed float values.
What I'm worried about is accidentally picking the same name as an existing global function in some other script somewhere, and having conflicts.
