other/9245: Loop commands should return a value if they are aborted
ville_jungman@hotmail.com
ville_jungman@hotmail.com
Thu Jan 9 15:56:00 GMT 2003
>Number: 9245
>Category: other
>Synopsis: Loop commands should return a value if they are aborted
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jan 09 07:56:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Ville Jungman
>Release: unknown-1.0
>Organization:
>Environment:
-
>Description:
Wouldn't it be nice if loop commands (while, for etc) returned a value. The value is often needed if the loop is aborted. I mean:
--------------------------------------
if(
for(i=0;;i++){
if(i == 5)break;
}
){
printf("Loop didn't finish!");
}
--------------------------------------
This is needed very often when you'd like to exit the loop, so I consider this might not be a bug improvement - but a nice feature.
Regards, Ville
>How-To-Repeat:
-
>Fix:
?
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list