Call
A call is the invocation of a function or method.
Related concepts: FunctionMethodReturn
Closest Wikipedia entry: Subroutine — In computer programming, a function or subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed. Functions may be defined within programs, or separately in libraries that can be used by many programs.
Misconceptions about Call51 documented Misconceptions
Check YourselfCannotChainAttributeToObjectInstantiation
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.DeferredReturn
A return statement in the middle of a function doesn't return immediatelyInitCreates
__init__ must create a new objectInitReturnsObject
__init__ needs to return an objectObjectsMustBeNamed
A variable is needed to instantiate an objectOutsideInFunctionNesting
Nested function calls are invoked outside inParenthesesOnlyIfArgument
() are optional for function calls without argumentsReturnCall
Return statements need () around the return valueReturnUnwindsMultipleFrames
A return statement can unwind multiple call stack framesRightToLeftChaining
Chained accesses are invoked from right to left