Jump to content

What does Void do?


djp1988
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...