RE: goto

new topic     » goto parent     » topic index » view thread      » older message » newer message

-------Phoenix-Boundary-07081998-

You wrote on 2/11/02 4:50:12 AM:

>
>I would like to know how euman has implemented his goto's
>What happens if the programmer puts goto or label where they should not
>be?..Euman?

Currently, my goto implementation can generate 6 Errors:
'goto's not allowed outside of subroutines'
'goto attempt to branch into loop'
'Subroutine missing label (:xxx:)'
'Duplicate Label'
'Expected Label, not keyword'
'Label syntax is ":label:"'

and 1 warning:
'Unreferenced label'

Goto is not allowed at file level (must be in function
or procedure), and is not allowed to branch to a
deeper nesting. Sort of prevents all the 'interesting'
cases, I hope.

Karl Bochert

-------Phoenix-Boundary-07081998---

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu