Changes between Version 9 and Version 10 of DependencyAnalysis

Show
Ignore:
Timestamp:
05/28/08 20:06:36 (5 years ago)
Author:
Saizan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DependencyAnalysis

    v9 v10  
    120120Considering only files we can solve this by checking if target T is older than all its dependencies, using timestamps.  
    121121 
    122 If T depends on {{{d = FileExist "foo.hs" instead}}}, we have a problem since we can't assing a sensibile timestamp to {{{d}}}, what really matters if the value computed for that dependency has changed or not wrt when we built T, so we can test this condition by storing the old value (that we'll call the representation, in this case a Bool) and compare it to the current one. 
     122If T depends on {{{d = FileExist "foo.hs" instead}}}, we have a problem since we can't assing a sensibile timestamp to {{{d}}}, what really matters is if the value computed for that dependency has changed or not wrt when we built T, so we can test this condition by storing the old value (that we'll call the representation, in this case a Bool) and compare it to the current one. 
    123123 
    124124If all the cached representations are equal to the ones in the current environment for both the dependencies and the target, then we don't have to build T again, since the old one is still valid.