D
DaViper
Gosub is not so much a swear word at all since it implies the return linkage of the subroutine (the "sub" part) you are "going" to.
It's "GoTo" thats become passe and no longer used.
The equalivent "verb" or "control" statement to Gosub in COBOL is "Perform".
xBased languages use "Do" in calling a closed subroutine.
In Java and C++ which are Objected Oriented Development platforms, the term or it's equilavent is moot since the very technique itself is superceded by invoking instances of Classes.
But at the pure machine code level after it's been compiled, the action is controlled by the the same concept.
Object orientation is a conceptual paradigm, at the source code level, just as "Top Down Modular" was when "Gosub" was a common practice.
GoTo was merely the first control statement that was used for branching. As computers themselves became more sophisticated and powerful, automatic return linkage was built into the source code languages that forced the compiler to automatically return to the next statement after Gosub when the subroutine had completed firing.
Thus eliminating the "spaghetti" logic of "goto" code.
But all the dicipline of Object Oriented Programming (OOP) still doesn't keep some people from writing really crummy code.
It's "GoTo" thats become passe and no longer used.
The equalivent "verb" or "control" statement to Gosub in COBOL is "Perform".
xBased languages use "Do" in calling a closed subroutine.
In Java and C++ which are Objected Oriented Development platforms, the term or it's equilavent is moot since the very technique itself is superceded by invoking instances of Classes.
But at the pure machine code level after it's been compiled, the action is controlled by the the same concept.
Object orientation is a conceptual paradigm, at the source code level, just as "Top Down Modular" was when "Gosub" was a common practice.
GoTo was merely the first control statement that was used for branching. As computers themselves became more sophisticated and powerful, automatic return linkage was built into the source code languages that forced the compiler to automatically return to the next statement after Gosub when the subroutine had completed firing.
Thus eliminating the "spaghetti" logic of "goto" code.
But all the dicipline of Object Oriented Programming (OOP) still doesn't keep some people from writing really crummy code.
Last edited: