Is there anything in particular I have to do in order to create class extensions, like this:
Monkey
1
2
3
4
5
6
7
ClassPixmap Extension
Method FloodFill(x:Int,y:Int,color:Color)
Print("Flood fill!")
End
End
I’m getting an error here, and get the same error on the blog example (which is a Canvas extension)
Monkey
1
2
Error on Line 180 of 'app render test.monkey2'
--> Super class 'std.graphics.Pixmap' has no default constructor
And while I’m on that topic, trying to create a new class that extends the original results in the same error. Do I have to create the same New() overloads as the original? Can the new class simply use the Super.New( … ) overloaded methods automatically?