Call
A call is the invocation of a function or method.
Related concepts: FunctionMethodReturn
Closest Wikipedia entry: Subroutine
Misconceptions about Call47 documented Misconceptions
Check YourselfBaseCaseNotNeeded — Java
Recursive computations do not necessarily need a base case
BaseCaseSelfRecursive — Java
The base case of a structural recursion consists of a recursive self-call
CallNotStaticallyChecked — Java
A method invocation on a reference of a type that does not have that method won't compile
CallOnPrimitive — Java
One can invoke a method on primitive values
CallRequiresVariable — Java
One needs a variable to invoke a method
CallWithoutFrame — Java
A method invocation does not necessarily allocate a stack frame
CallerFrameContainsCalleeFormal — Java
Stack frame of caller includes variables for callee's formal parameters
CannotChainMemberAccesses — Java
Member accesses cannot be chained together
CannotChainMemberToConstructor — Java
Method calls or field accesses cannot be chained to a constructor invocation
ChainedMethodsNotCalledFromOutside — Java
Chained methods are all called on the object at the beginning of the chain
ConstructorAllocates — Java
The constructor allocates the object
ConstructorReturnsObject — Java
Constructors need to return objects
ConstructorWithoutNew — Java
One can write the constructor name, without new, to instantiate a class
DeferredReturn — Java
A return statement in the middle of a method doesn't return immediately
FrameIsClassInstance — Java
A stack frame is the same as an instance of a class
NoCallOnStringLiteral — Java
One cannot invoke methods on String literals
NoInsideMethodCallInConstructor — Java
It is foirbidden to call other methods on the same object while inside its constructor
NoStringToString — Java
One cannot invoke toString() on a String
ObjectsMustBeNamed — Java
A variable is needed to instantiate an object
OutsideInMethodNesting — Java
Nested method calls are invoked outside in
ParenthesesOnlyIfArgument — Java
() are optional for method calls without arguments
RecursiveCallSiteNoReturn — Java
Tail-recursive call sites of non-void methods need no return statement
ReturnCall — Java
Return statements need () around the return value
ReturnUnwindsMultipleFrames — Java
A return statement can unwind multiple call stack frames
RightToLeftChaining — Java
Chained accesses are invoked from right to left
StackTraceIsCallHistory — Java
A stack trace is the sequence of previously called methods
StaticCallPolymorphic — Java
A static method call is dispatched polymorphically at runtime based on the argument types
StaticDispatch — Java
The method to be called is determined by the static type
SuperAlwaysHasParentheses — Java
To call a method on a superclass, parentheses are needed after the keyword super
SuperNotFirstStatement — Java
super() can be called anywhere in the constructor of a subclass
CallbackParametersInCaller — JavaScript
Parameters of a callback function may be written as parameters of the caller function
FunctionAsValueWithParentheses — JavaScript
To use a function as a value, one needs to have parentheses after its name
FunctionsCannotBeImmediatelyInvoked — JavaScript
Functions cannot be called in the expression in which they are defined
NoFunctionCallsChaining — JavaScript
It is not allowed to chain function calls
NumberOfParametersMatchArguments — JavaScript
Functions must be called with the same number of arguments as defined in their signature
CannotChainAttributeAccesses — Python
Attribute accesses cannot be chained together
CannotChainAttributeToObjectInstantiation — Python
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.
DeferredReturn — Python
A return statement in the middle of a function doesn't return immediately
InitCreates — Python
__init__ must create a new object
InitReturnsObject — Python
__init__ needs to return an object
ObjectsMustBeNamed — Python
A variable is needed to instantiate an object
OutsideInFunctionNesting — Python
Nested function calls are invoked outside in
ParenthesesOnlyIfArgument — Python
() are optional for function calls without arguments
ReturnCall — Python
Return statements need () around the return value
ReturnUnwindsMultipleFrames — Python
A return statement can unwind multiple call stack frames
RightToLeftChaining — Python
Chained accesses are invoked from right to left
BaseCaseNotNeeded — Scratch
Recursive computations do not necessarily need a base case