Re: pattern for an error



On Wed, 28 May 2008 02:31:57 -0700 (PDT), mario
<mmc_vw1200@xxxxxxxxxxx> wrote:

so as u maybe see in any paragraph there are exit conditions when the
program should stop and write error massage
my problem now: is there any style guide or pattern to make that in a
clean way WITHOUT goto because i have to transfair it into an acu code
without goto.
the only way i´m thinking is to give a intern retern key after any
paragraph but code would look very confusing right??

In my case, I don't have the option of EXIT PERFORM, so if I wanted to
convert an old CoBOL program to eliminate GO TOs, I would have to
write code.

What compiler do you use, do you have the option of EXIT PERFORM?
.



Relevant Pages

  • Re: Is David Fenton right about error handling? (re-post?)
    ... > Error Goto 0 a proper termination. ... after the Exit Function. ... Clears all property settings of the Err object. ... Exit Sub, Exit Function, Exit Property ...
    (comp.databases.ms-access)
  • Re: On Local Error Goto Somewhere
    ... an EXIT DO or EXIT FOR. ... going if there is no label to show you the destination. ... IMO the GoTo statement has never been "THE" problem. ... ON ERROR GOTO MySubErr Dim lFNbr as long ...
    (microsoft.public.vb.general.discussion)
  • Re: COBOL aint quite dead - yet !
    ... The point about goto is that there is nothing at all wrong with a goto ... For example the use of an exit paragraph signals ... loops - which was all about replacing a GOTO with something that did the ...
    (comp.lang.cobol)
  • [patch 06/10] Introduce path_put()
    ... goto fail; ... return err; ... * Given a path decrement the reference count to the dentry and the vfsmount. ...
    (Linux-Kernel)
  • [patch 1/4] Introduce pathput
    ... if (!ret) { ... goto fail; ... return err; ...
    (Linux-Kernel)