Encyclopedia > TOM computer language

  Article Content

TOM computer language

TOM is an object oriented programming language that can be considered as the ultimate incarnation of Objective C. The main purpose of TOM is to allow for "unplanned reuse" of code via a well-developed extension mechanism. This concept was introduced seemingly by accident in Objective C and later proved to be of wide use, and was applied with a vengeance in TOM.

The primary changes in TOM are the addition of multi-inheritance, tuples as a first-class part of the language, cleaner syntax, free of the C requirements for header files and pre-compiler commands, and the ability to use categories (the re-use mechanism) to include anything.

It is this later ability that represents "the whole idea". Unlike Objective C's categories that allowed only new methods to be built onto existing classes, TOM allows you to add class and instance variables, new methods, even new superclasses. This results in the redefinition of "class" as "a class is defined by its main definition and any extensions", these extensions have become a first-class citizen of the language.

Links:

The TOM Programming Language (http://www.gerbil.org/tom/)



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
Lake Ronkonkoma, New York

... out with 24.7% under the age of 18, 7.4% from 18 to 24, 32.6% from 25 to 44, 23.2% from 45 to 64, and 12.2% who are 65 years of age or older. The median age is 37 years. ...

 
 
 
This page was created in 23.3 ms