COMEFROM - Practical Uses

Practical Uses

Although COMEFROM is syntactically and semantically valid, and capable of replacing GOTO in some programs, it is considerably more difficult to visualise in program design and actually implement in a programming language. The most well known use of a COMEFROM-like construct is setting a breakpoint during debugging. One implementation of FORTRAN included it, under the name "AT", as a debugging aid, with dire warnings against using it in production code. In addition, many modern CPUs have hardware support for breakpoints.

Some elements of aspect-oriented programming have been compared to the COMEFROM statement.

In some reversible computing assembly languages, the target of a GOTO is always a COMEFROM targeting the GOTO.

Read more about this topic:  COMEFROM

Famous quotes containing the word practical:

    As for Clothing, to come at once to the practical part of the question, perhaps we are led oftener by the love of novelty and a regard for the opinions of men, in procuring it, than by a true utility.
    Henry David Thoreau (1817–1862)

    [Girls] study under the paralyzing idea that their acquirements cannot be brought into practical use. They may subserve the purposes of promoting individual domestic pleasure and social enjoyment in conversation, but what are they in comparison with the grand stimulation of independence and self- reliance, of the capability of contributing to the comfort and happiness of those whom they love as their own souls?
    Sarah M. Grimke (1792–1873)