Only types and strings are derived from the Object class.
So, casting an int to an object is not possible.
As for function pointers, I don't know but wouldn't count on it. I'd create a container class for them anyways, e.g.:
So, casting an int to an object is not possible.
As for function pointers, I don't know but wouldn't count on it. I'd create a container class for them anyways, e.g.:
Type IFunction Global _list:TList Field func:Int( a, b, c, d ) Field _link:TLink Method New( ) _link = _list.AddLast( Self ) End Method End Type IFunction._list = New TList