Difference between revisions of "Routine"
From Free Pascal wiki
Jump to navigationJump to searchJwdietrich (talk | contribs) |
|||
Line 1: | Line 1: | ||
{{Routine}} | {{Routine}} | ||
− | A routine is a piece of [[Source code|source code]] that performs some functionality. A routine may be coded directly as part of a [[Program|program]], or if it is usable by more than one piece of code, it may be defined as a [[Function|function]] if it returns a value, or as a [[Procedure|procedure]] if it does not. A [[property]] is a routine which is callable as a function in an [[object]], and can be assigned a value. A routine in an object that is callable but cannot be assigned a value is a [[Method|method]]. | + | A routine is a piece of [[Source code|source code]] that performs some functionality. A routine may be coded directly as part of a [[Program|program]], or if it is usable by more than one piece of code, it may be defined as a [[Function|function]] if it returns a value, or as a [[Procedure|procedure]] if it does not. A [[Property|property]] is a routine which is callable as a function in an [[Object|object]], and can be assigned a value. A routine in an object that is callable but cannot be assigned a value is a [[Method|method]]. |
[[Category:Pascal]] | [[Category:Pascal]] | ||
[[Category:Control Structures]] | [[Category:Control Structures]] |
Revision as of 22:31, 16 October 2015
│
English (en) │
suomi (fi) │
français (fr) │
русский (ru) │
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 property is a routine which is callable as a function in an object, and can be assigned a value. A routine in an object that is callable but cannot be assigned a value is a method.