From: Jim Weirich Date: 2004-08-23T23:06:09+09:00 Subject: Re: Help with Rake and FileList > * Jim Weirich [2004-08-23 20:38:38 +0900]: >> FileList use a "lazy load" technique where we don't calculate the exact jim@freeze.org said: > I think the problem is that it is 'too lazy' on OS X. > > Here is the same rake file, two different OS's. [...] > Linux: > ruby -v; rake -V; rake > rake, version 0.4.4 > ruby 1.8.0 (2003-08-04) [i386-linux-gnu] > (in /home/jfn/tmp) > ["Rakefile"] > > OS X: > ruby -v; rake -V; rake > rake, version 0.4.4 > ruby 1.8.1 (2003-12-25) [powerpc-darwin] > (in /home/jfn/tmp) > [] Or the difference could be 1.8.0 vs 1.8.1. If the 1.8.0 version of inspect invokes any array-specific methods (and the 1.8.1 version doesn't), then that is enough to trigger resolution. (I don't have a copy of 1.8.0 handy to test this). I've tried your simple rakefile on Linux and windows and aways get the same results as your OSX example. BTW, I've looked at the FileList code. Any Array-specific method will trigger resolution. I also add "to_s" to the list of trigger methods. I will add "inspect" to this list as well. My question is: are there any other methods in Kernel in addition to to_s and inspect that should trigger resolution? I'll try to get 0.4.5 out tonight with these changes. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)