From: Joel VanderWerf Date: 2006-04-27T03:17:13+09:00 Subject: Re: Rake task dependeny vs. method call Joel VanderWerf wrote: > task :b => :a do puts "b" end > task :a => :b do puts "a" end > > b() > > > > Output: > > a > b I guess, strictly speaking, this isn't the correct behavior for dependencies, either. (Unless you are in a situation where you don't care so much about order as about the set of tasks which get done, and about doing them at most once.) So Ara's use of TSort would be a good way to check for correctness at "compile" time. Another way (checkin at "run" time) would be to have three states for each task: {not_run_yet, running, done}, instead of just two... -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407