Brian Candler
6/26/2005 7:22:00 AM
On Sat, Jun 25, 2005 at 07:49:29PM +0900, Jonas Hartmann wrote:
> You are sure the -autoUpdate flag does not check files and dependencies?
It's an Apache (mod_fastcgi) flag; mod_fastcgi doesn't know anything about
Ruby, to know which libraries the program depends on.
> foo requires bar
> foo changes => autoUpdate is invoked
yes
> bar changes => foo requires a different file?
But if you change bar without changing foo, Apache doesn't know that foo has
to be reloaded.
As for foo itself, it has probably done 'require bar' once at the top of the
file. Even if foo has 'require bar' inside the main loop, require will see
that bar is in $" and will not attempt to reload it.
> what about load and evil(eval)?
load will probably work, but if you load every library inside your main
loop, it will be slow. As for eval, what are you thinking of passing to
eval?
Regards,
Brian.