Different type of loop

Blitz3D Forums/Blitz3D Programming/Different type of loop

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I understand you can use
While
Wend

Repeat
Forever

Repeat
Until

For
Next


But... would it be any worse/better if we used...........
Graphics 800,600,0,2
SetBuffer BackBuffer()
AppTitle "Function loop ;)"

omg_loop()

Function omg_loop()
	If KeyHit(1) End
	
	Cls
	
	For k = 2 To 255
		If KeyDown(k)
			Color 255,255,255
			Rect 0,0,GraphicsWidth(),GraphicsHeight()
			Color 0,0,0
			Text GraphicsWidth()/2,GraphicsHeight()/2,":D OM NOm NomNNMOm TEH LEWP!!!11!!",1,1
		EndIf
	Next
	
	Flip
	omg_loop()
End Function


.....a function for a loop?