<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Indirection</id>
	<title>Indirection - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Indirection"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Indirection&amp;action=history"/>
	<updated>2026-12-01T13:58:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=Indirection&amp;diff=119757&amp;oldid=prev</id>
		<title>imported&gt;GoingBatty: /* Overview */ fixed link</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Indirection&amp;diff=119757&amp;oldid=prev"/>
		<updated>2026-06-20T23:25:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Overview: &lt;/span&gt; fixed link&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Computers accessing information referentially}}&lt;br /&gt;
{{sources|date=February 2022}}&lt;br /&gt;
In [[computer science]], an &amp;#039;&amp;#039;&amp;#039;indirection&amp;#039;&amp;#039;&amp;#039; is a way of referring to something using a name, [[reference]], or container instead of the value itself. {{clarify|reason=It needs be clarified considering Reference and Identifier (computer languages) articles|date=January 2026}}The most common form of indirection is the act of manipulating a value through its [[memory address]]; e.g., accessing a [[variable (programming)|variable]] through the use of a [[pointer (computer programming)|pointer]]. A stored pointer that exists to provide a reference to an object by double indirection is called an &amp;#039;&amp;#039;indirection node&amp;#039;&amp;#039;. In some older computer architectures, indirect words supported a variety of more-or-less complicated [[addressing mode]]s.&lt;br /&gt;
&lt;br /&gt;
Another important example is the [[domain name system]] which enables names such as &amp;lt;code&amp;gt;en.wikipedia.org&amp;lt;/code&amp;gt; to be used in place&lt;br /&gt;
of network addresses such as &amp;lt;code&amp;gt;208.80.154.224&amp;lt;/code&amp;gt;. The indirection from human-readable names to network addresses means that the references to a web page become more memorable, and links do not need to change when a web site is relocated to a different server.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
A famous [[aphorism]] of [[Butler Lampson]] that is attributed to [[David Wheeler (computer scientist)|David Wheeler]] goes: &amp;quot;All problems in computer science can be solved by another level of indirection&amp;quot; (the &amp;quot;[[fundamental theorem of software engineering]]&amp;quot;).&amp;lt;ref&amp;gt;{{cite book|last=Spinellis|first=Diomidis|url=http://www.dmst.aueb.gr/dds/pubs/inbook/beautiful_code/html/Spi07g.html|chapter=Another level of indirection|editor1-last=Oram|editor1-first=Andy|editor2-last=Wilson|editor2-first=Greg|title=Beautiful Code: Leading Programmers Explain How They Think|pages=279–291|publisher=O&amp;#039;Reilly and Associates|location=Sebastopol, California|year=2007}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
This is often deliberately mis-quoted{{By whom|date=July 2024}} with &amp;quot;[[abstraction layer]]&amp;quot; substituted for &amp;quot;level of indirection&amp;quot;. A [[corollary]] to this aphorism, and the original conclusion from Wheeler, is &amp;quot;...except for the problem of too many layers of indirection.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
A [[April Fools&amp;#039; Day Request for Comments|humorous Internet memorandum]], {{IETF RFC|1925}}, insists that:&lt;br /&gt;
{{quote|(6) It is easier to move a problem around (for example, by moving the problem to a different part of the overall [[network architecture]]) than it is to solve it.&lt;br /&gt;
: (6a) (corollary). It is always possible to add another level of indirection.}}&lt;br /&gt;
&lt;br /&gt;
[[Object-oriented programming]] makes use of indirection extensively, a simple example being [[dynamic dispatch]].  Higher-level examples of indirection are the [[design pattern (computer science)|design pattern]]s of the [[proxy pattern|proxy]] and the [[proxy server]]. [[Delegation (programming)|Delegation]] is another classic example of an indirection pattern. In [[strongly typed programming language|strongly typed]] [[interpreted language]]s with dynamic [[data type]]s, most variable references require a level of indirection: first the type of the variable is checked for safety, and then the pointer to the actual value is dereferenced and acted on.&lt;br /&gt;
&lt;br /&gt;
In languages with statically sized types, indirection is often used to define [[recursive data type]]s. For example, [[Rust (programming language)|Rust]] requires recursive [[enum]] variants to contain a [[Pointer_(computer_programming)|pointer]]-like type such as &amp;lt;code&amp;gt;Box&amp;lt;T&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Rc&amp;lt;T&amp;gt;&amp;lt;/code&amp;gt; rather than directly containing another value of the same type. This gives the recursive type a known size, because the variant stores a pointer of fixed size while the recursive value is stored elsewhere.&amp;lt;ref&amp;gt;{{cite book |last1=Klabnik |first1=Steve |last2=Nichols |first2=Carol |title=The Rust Programming Language |chapter=Using Box&amp;lt;T&amp;gt; to Point to Data on the Heap |publisher=No Starch Press |url=https://doc.rust-lang.org/book/ch15-01-box.html |access-date=19 June 2026}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When doing symbolic programming from a formal mathematical specification the use of indirection can be quite helpful.  To start with a simple example the variables &amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039; and &amp;#039;&amp;#039;z&amp;#039;&amp;#039; in an equation such as &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;z = \sqrt{ x^2 + y^2}&amp;lt;/math&amp;gt; can refer to any number.  One could imagine objects for various numbers and then &amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039; and &amp;#039;&amp;#039;z&amp;#039;&amp;#039; could point to the specific numbers being used for a particular problem.  The simple example has its limitation as there are infinitely many real numbers.  In various other parts of symbolic programming there are only so many symbols.  So to move on to a more significant example, in logic the formula &amp;#039;&amp;#039;α&amp;#039;&amp;#039; can refer to any formula, so it could be &amp;#039;&amp;#039;β&amp;#039;&amp;#039;, &amp;#039;&amp;#039;γ&amp;#039;&amp;#039;, &amp;#039;&amp;#039;δ&amp;#039;&amp;#039;, ... or &amp;#039;&amp;#039;η&amp;#039;&amp;#039;→&amp;#039;&amp;#039;π&amp;#039;&amp;#039;, &amp;#039;&amp;#039;ς&amp;#039;&amp;#039; ∨ &amp;#039;&amp;#039;σ&amp;#039;&amp;#039;, ... When [[set-builder notation]] is employed the statement Δ={&amp;#039;&amp;#039;α&amp;#039;&amp;#039;} means the set of all formulae — so although the reference is to &amp;#039;&amp;#039;α&amp;#039;&amp;#039; there are two levels of indirection here, the first to the set of all &amp;#039;&amp;#039;α&amp;#039;&amp;#039; and then the second to a specific formula for each occurrence of &amp;#039;&amp;#039;α&amp;#039;&amp;#039; in the set Δ.&lt;br /&gt;
==See also==&lt;br /&gt;
{{portal |Computer programming}}&lt;br /&gt;
&lt;br /&gt;
{{columns-list|&lt;br /&gt;
&lt;br /&gt;
* [[Abstraction (computer science)]]&lt;br /&gt;
* [[Delegation pattern]]&lt;br /&gt;
* [[Dereference operator]]&lt;br /&gt;
* [[Handle (computing)|Handle]]&lt;br /&gt;
* [[Law of Demeter]]&lt;br /&gt;
* [[Pointer (computer programming)|Pointer]]&lt;br /&gt;
* [[Reference (computer science)|Reference]]&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Data types]]&lt;br /&gt;
[[Category:Programming constructs]]&lt;br /&gt;
[[Category:Computing terminology]]&lt;br /&gt;
[[Category:Unary operations]]&lt;/div&gt;</summary>
		<author><name>imported&gt;GoingBatty</name></author>
	</entry>
</feed>