An abstract type means you can't make an instance of it. It's supposed to be used when you inherit. But I'm doing this:
Everything works fine, except the debugger won't show the values of these globals when the program is stopped. I think it assumes you would never do what I am doing. Is doing this a bad idea? I'm just calling it abstract to show that you never make an instance of it.
Type FPSCounter Abstract Global Draws:Int Global DrawTime:Int Global FPS:Int Function Update() If MilliSecs()-drawtime>=1000 Then fps=draws draws=0 drawtime=MilliSecs() Else draws:+1 EndIf EndFunction Function Draw() SetColor 255,255,255 DrawText "FPS: "+fps,1,1 EndFunction EndType
Everything works fine, except the debugger won't show the values of these globals when the program is stopped. I think it assumes you would never do what I am doing. Is doing this a bad idea? I'm just calling it abstract to show that you never make an instance of it.