- This wiki is out of date, use the continuation of this wiki instead
Function
From FenixWiki
(Difference between revisions)
Revision as of 23:38, 24 March 2007 (edit) 86.136.103.186 (Talk) ← Previous diff |
Revision as of 23:24, 25 March 2007 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
Line 1: | Line 1: | ||
- | A function is a subroutine to which one or more of the following apply:<br /> | + | A function is a [[subroutine]] to which one or more of the following apply:<br /> |
*it received [[parameters]]<br /> | *it received [[parameters]]<br /> | ||
*it acts on the [[parameters]]<br /> | *it acts on the [[parameters]]<br /> | ||
Line 5: | Line 5: | ||
*it [[returns]] a value<br /> | *it [[returns]] a value<br /> | ||
- | A function does not create a new thread, and therefore the process which called the function waits until the function is completed before continuing executing its code. | + | A function does not create a new thread, and therefore the [[process]] which called the function waits until the function is completed before continuing executing its code. |
As opposed to a [[process]], a function doesn't have a [[frame]]; statement. See [[process]] for more information. | As opposed to a [[process]], a function doesn't have a [[frame]]; statement. See [[process]] for more information. | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | --[[User:Sandman|Sandman]] 14:56, 23 March 2007 (CET) |
Revision as of 23:24, 25 March 2007
A function is a subroutine to which one or more of the following apply:
- it received parameters
- it acts on the parameters
- it processes data located elsewhere
- it returns a value
A function does not create a new thread, and therefore the process which called the function waits until the function is completed before continuing executing its code.
As opposed to a process, a function doesn't have a frame; statement. See process for more information.