RE: goto
- Posted by kbochert at ix.netcom.com Feb 11, 2002
- 527 views
-------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---