From: Zev Blut Date: 2005-02-21T20:25:41+09:00 Subject: Re: Require when Executed file is required by another file. On Mon, 21 Feb 2005 20:00:37 +0900, Martin Ankerl wrote: >> In general, it is very hard and time consuming to determine that >> different paths refer to the same file, so require does not even try to >> pretend that it is robust. > > Why not calculate a hash of the file and use this in the check. This > would make the whole thing independent from the actual path, and allows > to re-require a file if its content changes. Interesting solution! Although, I am sure some people may not like the potential performance hit. Also the re-require could be good and it could be bad, depending upon various situations. A coworker of mine just commented why not just use File.expand_path for the required file? Is there any reason not to do this? Cheers, Zev