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 question of armaments, whether on land or sea, is the most immediately and intensely practical question connected with the future fortunes of nations and of mankind.”
—Woodrow Wilson (18561924)
“One of the great triumphs of the nineteenth century was to limit the connotation of the word immoral in such a way that, for practical purposes, only those were immoral who drank too much or made too copious love. Those who indulged in any or all of the other deadly sins could look down in righteous indignation on the lascivious and the gluttonous.... In the name of all lechers and boozers I most solemnly protest against the invidious distinction made to our prejudice.”
—Aldous Huxley (18941963)