Richard Hartman wrote:
> 
> This hypothetical optimization would fall apart on some of my
> code, where I do "resource math".
> 
> I have a series of resources, starting at X.  I have a status
> represented by an enum (or integer).  I then translate the
> status to a displayable text string by calculating the resource
> thus:
> 
>     int resid = BASE_ID + status;

I've only said this about five times by now, but I guess I have to say
it again: There is no practical way to do this _perfectly_, but it is
quite possible to do it in a way that would work with the way most of us
code.

> Your optimization would strip out all of my displayable strings!

I've also said this before: the optimisation would have to be
configurable.

I don't really care about this optimisation, nor can I imagine I'd use
it. My only point was that just because tool X can't be perfect doesn't
mean it can't work at all. We programmers, as binary beings, sometimes
forget this more analog conception of quality.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to