|
![](/i/fill.gif) |
Darren New <dne### [at] san rr com> wrote:
> > It looks like a really inefficient way of computing a simple calculation.
> It's a lazy calculation. Hopefully the compiler can figure out when it
> doesn't actually need to do that.
It's provable (no, not a typo of "probable", different thing) that, in
the general case, the problem "will this line of code ever be executed?"
is an unsolvable problem. Hence a compiler can make that decision only
in the most trivial cases.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |