Private
Specifies a procedure having internal linkage
Private Sub procedure_name [cdecl|stdcall|pascal] [Overload] [Alias "external_name"] [([parameter_list])] [Constructor [priority]] [Static] [Export]
Private Function procedure_name [cdecl|stdcall|pascal] [Overload] [Alias "external_name"] [([parameter_list])] As return_type [Static] [Export]
In procedure definitions, Private specifies that a procedure has internal linkage, meaning its name is not visible to external modules.
The Option Private statement allows procedures to be defined with internal linkage by default.
Syntax
Private Sub procedure_name [cdecl|stdcall|pascal] [Overload] [Alias "external_name"] [([parameter_list])] [Constructor [priority]] [Static] [Export]
..procedure body..
End SubPrivate Function procedure_name [cdecl|stdcall|pascal] [Overload] [Alias "external_name"] [([parameter_list])] As return_type [Static] [Export]
..procedure body..
End FunctionDescription
In procedure definitions, Private specifies that a procedure has internal linkage, meaning its name is not visible to external modules.
The Option Private statement allows procedures to be defined with internal linkage by default.
Example
'e.g.
Private Sub i_am_private
End Sub
Sub i_am_public
End Sub
Private Sub i_am_private
End Sub
Sub i_am_public
End Sub
Differences from QB
- New to FreeBASIC
See also
- Private: (Access Control)
- Public
- Option Private
- Sub
- Function