Changes

An Overview of Objective-C Functions

3 bytes added, 20:04, 20 October 2009
Function Scope and the ''static'' Specifier
== Function Scope and the ''static'' Specifier ==
Objective-C functions are considered by default to be global in scope. This means that a function declared in one file in a program can be called from any other code file in the program. This means that function names must be unique. Two functions with the same name will cause an error when the code is linked during the build process. To confine the scope of a function to the file in which it is declared, simply prefix the declaration with the ''static'' keyword:
<pre>