Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Infinite Loops and Explicit Exits
Sorry, I garbled my response.  Let's try this again:

"Peter Lacey" <lacey@mb.sympatico.ca> wrote in message
news:418A7805.D4C9605D@mb.sympatico.ca...
> If I understand the discussion properly, there's a need for a
> distinction between not performing one iteration of the loop, and
> getting out of it altogether.
>
> EXIT CYCLE resembles EXIT PERFORM in the sense that they both imply
> getting the hell out of there; as such, EXIT CYCLE might be better
> expressed by SKIP CYCLE.  Only a suggestion.
>
> PL

The 2002 standard added EXIT PERFORM CYCLE (and EXIT PERFORM -- without
CYCLE), not EXIT CYCLE.  CYCLE was added as a *context-sensitive* word in
the 2002 standard (where it is only recognized as "special" in the context
of the EXIT statement).

To provide SKIP CYCLE as new syntax in 2002, it would have been necessary to
add "SKIP" as a reserved word.  J4 is reluctant to add new reserved words
unless there's really no other reasonable alternative.  That didn't happen,
so what we *now have* in 2002 COBOL is "EXIT PERFORM CYCLE".

Or are you suggesting we should have EXIT PERFORM and EXIT PERFORM CYCLE in
the context of in-line PERFORM (as the 2002 standard now specifies), and
EXIT PERFORM and SKIP CYCLE in the context of out-of-line PERFORM?   I don't
think I like that idea all that much ...

-Chuck Stevens



Report this thread to moderator Post Follow-up to this message
Old Post
Chuck Stevens
11-16-04 11:44 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:06 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.