I just tried and it errors like crazy, AKA it don't work the way I did it at least.
Strict
Import mojo
Function Main:Int()
Local thread1:C_App
Local thread2:C_App
Local thread3:C_App
Local thread4:C_App
thread1 = New C_App("1'st thread")
thread2 = New C_App("2'nd thread")
thread3 = New C_App("3'rd thread")
thread4 = New C_App("Hey Freddy!, look at all them Freds")
Return 0
End
Class C_App extends App
Field message:String
Method OnCreate:Int()
Return 0
End
Method OnUpdate:Int()
Return 0
End
Method OnRender:Int()
Cls
DrawText(self.message, 10, 10)
Return 0
End
Method New(message:String)
Self. message = message
End
End
|