|
Posted by Oli Filth on 10/22/81 11:35
Anonymous said the following on 25/12/2005 12:21:
> Tony Marston wrote:
>
>>Why do most modern languages exclude the GOTO statement? Because it is
>>considered BAD.
>
>
> Do they? The last time I checked all modern languages get translated to
> machine code at compile time
Like C#, Java, PHP, VB, VBScript, JavaScript, Python and MATLAB do?
> and all machine languages I know have an
> equivalent to GOTO, which is usually called JMP in Assembler.
Yes, but the low-level constructs are usually completely abstracted by
the high-level language, that's the point of a high-level language. The
machine-code that a compiler/interpreter produces/invokes is just a
method of implementing each of the high-level constructs - the fact that
there's a GOTO construct at the machine level has no influence on
whether there's a GOTO construct at the language level.
--
Oli
Navigation:
[Reply to this message]
|