Hans Wichman skriver:
> 
> That said, AS3 is much more about (strong) typing than AS2 was.
> In that line of thinking, you need to specify exactly what types of
> parameters go into a method/function and what it returns, even if that
> "what" is nothing.
> The type of "Nothing" is this respect is void.
> 

Need and need, it is good practice. So good that some compilers will
raise a warning if you fail to do it.

The point of void here is twofold, to let the compiler check that the
return statement doesn't try to return anything and to let the compiler
check that the caller isn't expecting a return value. Other types have
similar checks.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to