ManyThreads / mcconf

McConf is a compile-time configuration management tool for extensible software families.
Other
2 stars 0 forks source link

make order of includeModules() in template deterministic #15

Closed rottaran closed 5 years ago

rottaran commented 7 years ago

for example sorted by the module names. This should make the generated files more reproducable.

kubanrob commented 7 years ago

Note from previous discussion: We may use a topological order based on the dependencies, so that dependent modules can use definitions (or other stuff) provided by their dependencies.

Sorting by module names is still an good idea if there is no more important criterion.

rottaran commented 5 years ago

but we can have cyclic dependencies between modules, thus topological order needs a careful implementation. It is better if the design of all modules and templates does not rely on a specific ordering of the modules.