Nested_function Nested_function

Nested function - Definition

Related Words: Acting, Action, Activism, Activities, Activity, Affair, Affairs, Aim, Ambition, Animus, Appositive, Aspiration, Assignment, Attribute, Bag, Banquet, Behavior, Capacity, Celebration

A nested function is a function which can only be called from its parent function. That is, the scope of the nested function is limited to the current function only. For instance, assuming that C supports nested functions (which it does not):

void foo() {
 void bar() {
  /* do something */
 };
 bar();
}

In this case bar is a nested function for foo and can only be called from foo.

Nested functions are useful for creating code blocks that must remain logically seperate but are only useful for a specific function as opposed to the entire module or program.

Example Usage of function

LadyEyeCandy: I'm @ this hotel function wit my partna in crima & my lil sisters... these heffaz are turnt!!!
missingtoof: just turned off hypemachine's tweet function. ha. killin' it. sorriez.
mrbradshaw: Unfortunately, at a highly publicized function where I'm not the only homosexual present SMDH! RT @ShesYaYaB: @mrbradshaw #wheretheydodatat?
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.