Daniel Ehrenberg wrote:
> In updating code and docs at the same time, I'm encountering a
> recurring problem, which works out basically like this in the general
> case. Say vocabs a and b are already loaded, and they've both been
> updated. Vocab b uses word w from vocab a, which was added after the
> last time it was loaded. When doing refresh-all, the files for the two
> vocabs reload in basically arbitrary order, so vocab b might load
> before vocab a.
It won't, but b has a USE: a in it.
>  In this case, there is an error that word w does not
> exist.
There shouldn't be. When you call refresh-all, all modified vocabs are 
marked as 'not loaded', then they're required one after the other. If a 
vocab is required before its dependency, no problem, the USE: takes care 
of loading the dependency first.
>  I'm not sure how to implement this, but somehow, since vocab b
> uses vocab a, a has to be loaded first to make things work properly.
> This sounds like an unrealistic edge case, but it keeps coming up. The
> workaround is to just use refresh to make things go in the right
> order, but I don't like this workaround.
Are you relying on the 'no-word' restarts to use vocabs automatically by 
any chance? Can you come up with a test case? The behavior you describe 
is already there.

Also, don't forget that circular dependencies between vocabs are not 
allowed either.

Slava

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to