Well that's why I did point out that "return" was not "always" necessary, but more good practice than anything else (and although not an OO language (not by a long shot lol
) ), it is a good practice to be able to logically follow the program flow... Structurally speaking the cog is incomplete without the "return". Sure it may run without it, but... I appreciate that this may not be the best expressed point I've ever made, but alas - fatigue strikes
I also totally agree with you about the while loop never reaching a break point, with the outcome being JK freezes up. Moral of the story - by all means use "while" loops, but treat with caution...
And with the variables - I believe it's because JK's COG language syntax checking is so poor that it lets you get away with the lack of variable declaration - with true OO languages (not any of that VB waffle, but like C/C++ or Java (no I'm not having a dig at your cogpad *wink wink, nudge nudge*)
lol ), they don't compile unless everything has been defined or declared that is going to be used.
I guess what I'm saying is that for a very long time, I used the "quick n' dirty" approach for COG variables, but it doesn't pay to get into bad habits, what with a large number of Massassians aspiring to learn other/new programming languages. I'm merely attempting to help budding coggers build on what they know with solid foundations, rather than trying to build castles on sand...
But to actually relate to the post (
), take GBK's advice, Raven
-Jackpot
------------------
Are you feeling lucky, cuz if you are, get your hands off me...
"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
[This message has been edited by lucky_jackpot (edited November 03, 2003).]