"Scott L. Johnson" wrote:
> 
> > From: Steve Jackson [mailto:[EMAIL PROTECTED]]
> > Is there any setting which causes string RESOURCES
> > referenced only by functions which are dead code to be
> > automatically stripped out?
> 
> Short answer: there is no such setting.
> 
> Long answer: how could this possibly work?  In order to exclude such a
> string resource, the system would need to prove that the resource is
> unreferenced by any code.  But due to the loose coupling between code and
> resources, it's trivial to give an example that shows that no such proof is
> practical.

The perfect is the enemy of the good. :) Yes, there's no way to
_guarantee_ that a given resource wasn't used, but it doesn't sound like
rocket science to strip out resources whose IDs (the identifiers used in
the .rcp) are only referenced by dead code. This of course would be
optional, but would probably handle the kind of code most of us write
100% correctly.

-- 
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