Oppolzer - Informatik / Blog


Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie

PL1-L - Merkwürdige Fehler im Zusammenspiel mit PL/1 und C (ON ERROR)

Subject:

Re: ON ERROR GOTO ... ??

From:

Bernd Oppolzer <bernd.oppolzer@T-ONLINE.DE>

Reply-To:

PL1 (language) discussions <PL1-L@LISTSERV.DARTMOUTH.EDU>

Date:

2012.06.21 07:42:16


On 6/20/2012 4:42 PM, Bernd Oppolzer wrote:
...

Bernd, you got a lot of replies to this, but I'll add my $.02.

Unwinding this, if the original problem arises in "FUNCTION." Assuming no other
ERROR ON-Units the program enters your first ON-Unit. If no error occurs there
the program will terminate. If there's an error the code gos to ENDE which
establishes the second ON-Unit, but of course doesn't execute it. It would take
a third error to enter that ON-Unit. I can see the possibility of an endless
loop here, even without the second ON-Statement, based on the rest of the code
that's not shown.

I agree it's not the best coding technique.

Blog-Hauptseite      Neuester Artikel      Älterer Artikel      Neuerer Artikel      Älterer gleiche Kategorie      Neuerer gleiche Kategorie