Posted: Sun Aug 24, 2008 10:33 pm
A unique ID would be rather important, yes. Any implementation that doesn’t work if you rename an OXP is broken. Pity we don’t have such IDs for existing OXPs…
For information and discussion about Oolite.
https://bb.oolite.space/
Does it make sense ever to state load-before? Any kind of sensible dependency management normally only has I depend upon rather than depends upon me. Any patches or whatever should always be loaded after shouldnt they?Ahruman wrote:You’re welcome to implement a dependency system. I suggest “must-load-after” and “should-load-before” keys in requires.plist. The basic logic for this type of dependency management is already implemented in OOOXPVerifier.m.
I find that should-be-before adds flexibility without significant complexity. For instance, in the OXP verifier, it’s used by various verifier passes to state that they should be run before the list-unused-files stage, which doesn’t need to know about each stage that provides “used files”. It’s not immediately obvious that there’s a use for it with OXPs, but life would be pretty boring if OXPs could only do things we thought would be useful. :-)Cmdr James wrote:Does it make sense ever to state load-before? Any kind of sensible dependency management normally only has I depend upon rather than depends upon me. Any patches or whatever should always be loaded after shouldnt they?Ahruman wrote:You’re welcome to implement a dependency system. I suggest “must-load-after” and “should-load-before” keys in requires.plist. The basic logic for this type of dependency management is already implemented in OOOXPVerifier.m. :-)
Unless maybe you find a broken oxp that has an undeclared dependency, and rather than fix it, you pre-inject a fix? Sounds kind of fishy to me.