MonkeyC supports applying instance methods to a built in type. Such as:
var num1, num2;
num2 = num1.toFloat();
I'd like to create my own instance method that can be used against built in types. For example:
num2 = num1.myOwnMethod();
I can't seem to get this to work. I assume I'd need to create a module that has classes that extend Float, Integer, etc. Except it seems maybe those parent classes aren't exposed to allow it. Or is there another way to make this work?
Thanks!