Forum OpenACS Development: Re: procs.tcl vs init.tcl

Collapse
2: Re: procs.tcl vs init.tcl (response to 1)
Posted by Tom Jackson on

The -procs.tcl files in each package are sourced first, then all the -init.tcl files. The reason is that this allows you to use procedures from any package (because they are sourced first), as you initialize each package. It also clearly separates initialization code from library code.

Collapse
3: Re: procs.tcl vs init.tcl (response to 2)
Posted by Tilmann Singer on
Also you can 'watch' -procs.tcl files with a switch in /acs-admin/apm so that they get reloaded every time you change something in them. It wouldn't be too good if the -init.tcl files would be reloaded as well.

I can't recall this question coming up before, so for now it's more a Once Asked Question than a Frequently Asked Question in my opinion ...