- This wiki is out of date, use the continuation of this wiki instead
Function
From FenixWiki
(Difference between revisions)
Revision as of 13:58, 23 March 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Revision as of 23:38, 24 March 2007 (edit) (undo) 86.136.103.186 (Talk) 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 acts on the [[parameters]]<br /> | |
- | + | *it processes [[data]] located elsewhere<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. | |
+ | As opposed to a [[process]], a function doesn't have a [[frame]]; statement. See [[process]] for more information. | ||
Revision as of 23:38, 24 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.
--Sandman 14:56, 23 March 2007 (CET)