Right now sglppow and SOTGrps "hack" into the smallgrp internals in order to extend it with additional layers.
This works, but is brittle, and highly non-trivial to do for 3rd parties who may wish to provide similar extensions. It also introduces questions about order dependence (i.e. if sglppow is loaded before or after SOTgrps may affect in which "layer" they go) that are difficult to resolve in the current setup.
It would be good to have a sane API for adding "layers". This could even be used by the "internal" layers, which are currently interwoven quite a bit.
Then the ordering problem could be handled by e.g. allowing to assign priorities to layers; as long as sotgrp and sglppow use different ones (mutually agreed) their loading order becomes irrelevant (granted, it probably is already because they don't overlap; but other extensions may not...)
Right now sglppow and SOTGrps "hack" into the smallgrp internals in order to extend it with additional layers.
This works, but is brittle, and highly non-trivial to do for 3rd parties who may wish to provide similar extensions. It also introduces questions about order dependence (i.e. if sglppow is loaded before or after SOTgrps may affect in which "layer" they go) that are difficult to resolve in the current setup.
It would be good to have a sane API for adding "layers". This could even be used by the "internal" layers, which are currently interwoven quite a bit.
Then the ordering problem could be handled by e.g. allowing to assign priorities to layers; as long as sotgrp and sglppow use different ones (mutually agreed) their loading order becomes irrelevant (granted, it probably is already because they don't overlap; but other extensions may not...)