TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Tucker Taft <[log in to unmask]>
Date: Thu, 19 Mar 1998 19:43:52 -0500
Reply-To: Tucker Taft <[log in to unmask]>
Parts/Attachments: text/plain (20 lines)
> >While we're in the same general area, why wasn't the exit statement
> >permitted to exit a block statement?
>
> Having spent a lot of effort to get this to work, I can assure that there
> is no such limitation in Ada 83 or in Ada 95.

I think you may have misinterpreted the question.

I suspect the question was why can't you use "exit foo;" to go to
the statement immediately following the end of the enclosing block
named foo, since blocks can have labels just like loops?

I.e., why is "exit" only defined for loops?

> ...
>                                 Randy.
>

-Tuck

ATOM RSS1 RSS2