Trying to override loadimage.

BlitzMax Forums/BlitzMax Beginners Area/Trying to override loadimage.

No offense, but Throw, Catch and Try are utter crap.

Rem
Throw generates a BlitzMax exception.
End Rem

Try
	repeat
		a:+1
		print a
		if a>20 throw "chunks"
	forever
Catch a$
	print "caught exception "+a$
EndTry


That isn't easy to parse at ALL.


What on earth is wrong with:

	repeat
		a:+1
		print a
		if a>20 
                   print "caught exception chunks"
                   exit
                endif
	forever


I could see maybe MAYBE if you had a whole mess of conditions that could fail in a block of code and you wanted them to all throw up different errors, but how often does that happen? I can't think of a single time I've ever had such a situation crop up.