Difference between revisions of "Routine"
From Free Pascal wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | A routine is a piece of [[source code]] that performs some functionality. A routine may be coded directly as part of a [[program]], or if it is usable by more than one piece of code, it may be defined as a [[function]] if it returns a value, or as a [[procedure]] if it does not. | + | A routine is a piece of [[source code]] that performs some functionality. A routine may be coded directly as part of a [[program]], or if it is usable by more than one piece of code, it may be defined as a [[function]] if it returns a value, or as a [[procedure]] if it does not. A [[method]] is a routine which is callable as a function or procedure in an object. |
Revision as of 20:28, 10 May 2006
A routine is a piece of source code that performs some functionality. A routine may be coded directly as part of a program, or if it is usable by more than one piece of code, it may be defined as a function if it returns a value, or as a procedure if it does not. A method is a routine which is callable as a function or procedure in an object.