Functions stuff

Blitz3D Forums/Blitz3D Programming/Functions stuff

Picklesworth(Posted 2005) [#1]
Is it possible to have a function with the same name as a Blitz function, which is still capable of doing that Blitz function that it replaces?


GfK(Posted 2005) [#2]
Erm... not really.

You CAN create a new function called DrawImage(), for instance, but each time you use DrawImage (the Blitz command) after that, it will call your function instead.

Further more, if you did create your own function called DrawImage(), then tried to use Blitz DrawImage within that function, Blitz will freeze up for a few seconds before causing a stack overflow due to your function repeatedly calling itself.


Cousin Gilgamesh(Posted 2005) [#3]
you're talking about function overloading. Learn C++ if you want to do that.