ID:1308107
 
(See the best response by Kaiochao.)
Problem description: So this is not so much a problem. More of a question.

As you can see below I'm wondering when return would be required. I know when else comes into to play I don't think that return is needed.


Code:
mob/proc/test()
if(variable)
//things
return

usr<<"No return"

mob/proc/test2()
if(variable)
//more things

else
//some more

mob/proc/test3()
if(variable)
//things
return

if(anothervariable)
//things

else
//things




Best response
return is technically never required, as there are alternatives to using it.

For example, instead of this:
proc/thing()
return "thing"
world << "This line isn't reached!"

You could write this:
proc/thing()
. = "thing"
goto end
world << "This line isn't reached!"
end

Of course, the former would be most preferred.
Ah i see. Thanks for the information.