HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Brief Explination of Return Bug ~ Needed

04-20-2004, 06:57 PM#1
PEON1577
Anyone want to briefly explain the return bug?

I searched this form and 23 topics came up for "return bug" and none of them contained it, just refrences.

Thanks for helping ^_^
04-20-2004, 09:24 PM#2
AIAndy
ok, in brief:
If a return is not the last return in a function, then Warcraft does not check the type of the value you return. That means you can return any value which means that you can type cast variables that way.
04-20-2004, 09:27 PM#3
PEON1577
Quote:
Originally Posted by AIAndy
ok, in brief:
If a return is not the last return in a function, then Warcraft does not check the type of the value you return. That means you can return any value which means that you can type cast variables that way.

thank you!!!!!!!!!!