|
|
|
|
|
by eru
2289 days ago
|
|
Yes. The simplest example is when the loop has no other side-effects. But you could also have something like: while(true) {
if(some condition) {
do stuff;
break;
}
}
In this case, a compiler might be allowed to assume that 'some condition' happens to be true eventually. |
|