in reply to Re: the "return" in a module
in thread the "return" in a module
The first is that if you put a return before some code that you want executed, it won't be because you returned.
The second is that if you just use a true value but don't return, and accidentally put some executable code after it (eg a variable initialization) with a false value, then your module will fail to load.
Both should be obvious if you are bitten by them. But I like putting the true return value at the end anyways.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 2: the "return" in a module
by mpeppler (Vicar) on Mar 11, 2002 at 14:07 UTC |