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:

    The idealists dream and the dream is told, and the practical men listen and ponder and bring back the truth and apply it to human life, and progress and growth and higher human ideals come into being and so the world moves ever on.
    Anna Howard Shaw (1847–1919)

    There are certain queer times and occasions in this strange mixed affair we call life when a man takes this whole universe for a vast practical joke, though the wit thereof he but dimly discerns, and more than suspects that the joke is at nobody’s expense but his own.
    Herman Melville (1819–1891)