Is it intended that you should be able to Alias a function to a function within a class? Like this:
'myfile.monkey
Class MyNamespace
Function SetColor:Int(r:Int, g:Int, b:Int)
...
'main.monkey
Alias SetColor=myfile.MyNamespace.SetColor
I did it and it compiles without any errors, but the function never gets called.
This workaround works, but I am just curious.
'myfile.monkey
Class MyNamespace
Function SetColor:Int(r:Int, g:Int, b:Int)
...
Function MySetColor:Int(r:Int, g:Int, b:Int)
MyNamespace.SetColor(r, g, b)
...
'main.monkey
Alias SetColor=myfile.MySetColor
|