From: Stephen D. <sd...@gm...> - 2006-02-25 18:27:12
|
On 2/25/06, Zoran Vasiljevic <zv...@ar...> wrote: > Hi! > > Can somebody explain me why are the global modules > loaded as part of the prestart callbacks instead of > directly from within bin/init.tcl ?? > > ns_runonce -global { > ns_atprestartup { > set modules [ns_configsection ns/modules] > if {$modules ne ""} { > foreach {module file} [ns_set array $modules] { > ns_moduleload -global $module $file > } > } > } > } > > > The question is: why ns_atprestartup ?? It is the order things used to get loaded when the C code handled things. Loading global modules first might make more sense... |