ApplicationMaker icon indicating copy to clipboard operation
ApplicationMaker copied to clipboard

UpdateInit is dependencies ignorant

Open akater opened this issue 10 years ago • 1 comments

UpdateInit of PackageMaker.m is dangerous. It lists packages in alphabetical order and puts them into Init.m this way. Consider now two packages in an application,

  • SomeFundamentalPackage.m
  • NotSoFundamentalPackage.m

When NotSoFundamentalPackage lists SomeFundamentalPackage as a dependency, everything then breaks down, because NotSoFundamentalPackage would be loaded first.

The issue with dependencies is pretty global for Mathematica. This one can be addressed by analysing BeginPackage expressions inside packages. Cyclic dependencies should probably be prohibited.

akater avatar Oct 22 '14 03:10 akater

I am currently writing an application with some somewhat complex (but nowhere cyclic) dependencies. Can you elaborate on what you mean by "This one can be addressed by analysing BeginPackage expressions inside packages."

trakkabase avatar Feb 28 '22 14:02 trakkabase