Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Call

Call

A call is the invocation of a function or method.

Related concepts:  FunctionMethodReturn

Closest Wikipedia entry:  Subroutine

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Call is based on principled authoritative sources such as:

Types and Programming Languages - Section 5.1

Misconceptions about Call
47 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
CannotChainAttributeAccesses
Attribute accesses cannot be chained together
Misconception
CannotChainAttributeToObjectInstantiation
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.
Misconception
DeferredReturn
A return statement in the middle of a function doesn't return immediately
Misconception
InitCreates
__init__ must create a new object
Misconception
InitReturnsObject
__init__ needs to return an object
Misconception
ObjectsMustBeNamed
A variable is needed to instantiate an object
Misconception
OutsideInFunctionNesting
Nested function calls are invoked outside in
Misconception
ParenthesesOnlyIfArgument
() are optional for function calls without arguments
Misconception
ReturnCall
Return statements need () around the return value
Misconception
ReturnUnwindsMultipleFrames
A return statement can unwind multiple call stack frames
Misconception
RightToLeftChaining
Chained accesses are invoked from right to left

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors