circular reference

(idea) by WWWWolf Mon Oct 29 2001 at 20:24:57

An thing or idea that refers to something that then refers to the original thing again. A => B, B => A, or A => B, => C, C => A, or something similiar. This is different from self-reference where something refers to itself (A => A.)

In programming languages that use garbage collection circular references need to be broken before the thing is tossed to the hounds. This is because many garbage collectors keep track of object's references and only nuke things that are not referenced to, and objects that point to each other have always reference count > 0.

Example of circular reference - something you really should avoid - in Perl:

my ($a, $b);

$a = \$b;
$b = \$a;

Not to be confused with circular definition.

(idea) by mkb Mon Oct 29 2001 at 20:33:49
Circular references are often used to prove the existence of God.

One example:
1.) The Scriptures say that God exists.
2.) The Scriptures are the Word of God.
3.) The Scriptures tell the truth.
4.) Therefore, God exists.

Diagramming this argument looks something like:

(2)->(3)->(1)
   ^     /
    \   V
     (4)
Descartes got himself off the hook by pointing this out and then proclaiming, "The infidels would say that we think in a circle."

In the film Ridicule, the hero's nemesis was jailed after demonstrating this proof to King Louis XVI, and then claiming the ability to disprove God's existence.

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.