Re: Value

From: Stefan Ram <ram_at_zedat.fu-berlin.de>
Date: 23 Feb 2008 13:47:39 GMT
Message-ID: <value-20080223143638_at_ram.dialup.fu-berlin.de>


mAsterdam <mAsterdam_at_vrijdag.org> writes:
>>"Value" in this context is a CS term.
>Do you have a better reference?

  The notion »value« does not have a special connection to   /object-oriented/ programming.

  A value in mathematics or computer science is any object or   entity.

  To test, whether something is a value, one can use the   following rule:

      Something is a value, whenever an assertion can be made
      about it.

  For example, »The moon orbits the earth.« is an assertion   about the moon, so the moon is a value.

  In computer programming and also in user interfaces, values   often appear in a context, where a selection from a set of   values can be made, to indicate (select) a certain element of   this set. Insofar, values represent a certain choice from a   set of possible choices.

  When /digital/ computers are used, the set is finite and   discrete. All values are part of a specific data type and   eventually are being represented by a tuple of binary values.   The mapping between such binary tuples and values is given by   the implementation of the data type.

  For example, the data type consisting of the value moon and   the value earth in Pascal can specified as follows.

type body =( moon, earth ); Received on Sat Feb 23 2008 - 14:47:39 CET

Original text of this message