sledge to goto's knees?

Posted By: tD_Datura_v

sledge to goto's knees? - 10/15/09 10:24

"A7.80 Lite-C
This HAS been mentioned before, but maybe not in enough wrong ways.

concerning the "goto" 'instruction', a manual says:
Quote:

This command is supported


...and seems to partially mention the behavior some users / abusers of other programming languages might expect with:
Quote:

Jumps to a target label in the function and proceeds from there with the subsequent instructions.

...and:
Quote:

label may be any name followed by a colon as target mark anywhere between two instructions in the same function.


...but also seems to attest to its own consistency, while simultaneously mentioning what might be, for some, both an ultra-grand limitation, and an abundantly thorough explanation for wonderful, if not mysterious, "label not found" compiler utterances:
Quote:

The target label must be within the same winged brackets ({ .. }) as the goto instruction.


If the behavior of the 'instruction' isn't that which is expected by many, than a change to the behavior might be nice.

Also any responses which include excessively typical, extremely relevant lectures or rants advising against the use of "goto" are strongly encouraged."
Posted By: EvilSOB

Re: sledge to goto's knees? - 10/15/09 11:07

Gotta agree, kindof.
Either dump goto entirely, or fix it so that you can
goto 'downwards' instead of only 'upwards' as it is ATM.
Posted By: jcl

Re: sledge to goto's knees? - 10/16/09 08:43

I have it on my list to fix this someday so that the ultra-grand limitation is removed. That's why it was not dumped yet. The fix is not so trivial, otherwise it had been done long ago.
© 2024 lite-C Forums