Both solutions posted so far rely on having onInit be the one declaration section,
Not at all. Concatenate them! ( Oh I see, they're suppose to be called at different times. That means while the compilation of onRestore's snippet has to be done at the same time as the compilation preRestore's snippet's, their execution occur at different times. Truly my solution does not do that. )
Oh, and I like the idea of sandboxing everything into a package -- but I'm already doing that
Despite the name, my code isn't sandboxed. It can freely modify other packages. You'd probably have to use Safe to truly sandbox some code.
In reply to Re^2: Concatenating scripts intelligently
by ikegami
in thread Concatenating scripts intelligently
by sfink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |