Encyclopedia > Binding (computer science)

  Article Content

Binding (computer science)

In computer science, binding ,means associating objects with names in programming language. Objects' names are said to be "bound" to them.

Binding can be either Static binding[?], which means it happens at compile-time, or dynamic[?], which means it happens at run-time. Deep binding[?] and shallow bindings[?] are not kinds of binding, but ways to implement binding.

Also, scope rules might define binding time of objects.

Binding time is determined largely with allocation of objects.

Some objects can be bound at compile-time or link-time[?]. For example,

static int n;
int main ()
{
  n = 12;
  return n;
}

In this C code, a global variable n is bound to certain location in the memory of the computer.


See also: Object, Dynamic binding[?], Static binding[?], Scope, Object-oriented programming, Label, Deep binding[?], Programming language



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Thomas a Kempis

... (cf. the De tabernaculis, and Hortus rosarum, Pohl's ed., ut inf., i. also iii. 357, vi. 219, 235 sqq.). External Link the e-text of Thomas a Kempis' The Imitation ...

 
 
 
This page was created in 46.6 ms