Jump to content

What does Void do?


Recommended Posts

Regardless of the language (I suppose you're talking about ActionScript), "void" is "nothing". That is, when you say a function doesn't accept any parameter, you say "functionName( void )" in it's declaration to show that. Look at how some PHP functions are declared for example."void" is different than "null" in that "null" is a value that means nothing, and "void" means there isn't any value, including a value that means nothing.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...