From: Peter Lammich <lammich@in.tum.de>
Hi,
the order of serialization of "code_printing code_module" seems to be
documented nowhere. The implementation seems to order the modules
alphabetically by name.
My current application relies on the ordering of serialization, as
code_modules depend on other code_modules. Thus, two questions:
1) What is the ordering? Can I rely on alphabetical ordering?
2) Can I influence the ordering by somehow declaring the dependencies
between the code_modules?
From: Florian Haftmann <florian.haftmann@informatik.tu-muenchen.de>
Hi Peter,
My current application relies on the ordering of serialization, as
code_modules depend on other code_modules. Thus, two questions:1) What is the ordering? Can I rely on alphabetical ordering?
It has never been specified; all kind of dependency management while
printing code relies on Graph.strong_conn, and I guess it falls back on
the critical order of strings when now other constraints are involved.
2) Can I influence the ordering by somehow declaring the dependencies
between the code_modules?
There is currently the possibility to make code_modules depend on the
presence of certain constants, and maybe a slight extension could also
dependencies of modules. I will think about it.
Cheers,
Florian
Last updated: Nov 21 2024 at 12:39 UTC