I don't think I've seen it here, but a warning: forgetting to put a return in your overridden method can cause the program to crash (i.e., just disappear).
Yes, it's the same as IBasic where a closing brace (ENDSUB) doesn't automatically return, which I think it does in C when a function returns "void" (nothing).
The compiler does give a warning that you've forgotten it. A method is a subroutine.
Quote from: Ionic Wizard on December 27, 2005, 08:44:05 PM
The compiler does give a warning that you've forgotten it.ÂÃ, A method is a subroutine.
It does. My point is that you should heed it.ÂÃ, ;)
I have changed the parser so it will automatically add the return for functions that don't return a value. Much like C++ does.
Yes! No need to put "return;" at the end anymore! Just something that bugged me I guess...
Hey thats cool. Never thought that would be an optional thing to put if your not returning anything.
Lewis