IT lexicon › Programming › Message dispatch

Message dispatch

Programming På svenska → Updated: 2026-11-13

A mechanism for finding and executing the right method when an object receives a message — the message name is looked up in the object's class at runtime.

Smalltalk and later object-oriented languages thought of method calls as "messages" — an object receives a message and determines which method to run. Different from procedural languages where you call a function directly. Lookup was dynamic and often unoptimized; later languages like Objective-C extended this with the ability to handle unknown messages at runtime.

← Back to the lexicon