From: Dave Thomas Date: 2000-01-11T22:09:29-06:00 Subject: [ruby-talk:01110] Re: YADQ (Yet Another Dumb Question) matz@netlab.co.jp (Yukihiro Matsumoto) writes: > But it requires knowledge about the constants to overwrite. For > example, to reload the program without error, you have to remove all > constants defined in the program before loading it. In what circumstances are modules normally reloaded (rather than having the program simply restarted)? Would it suffice to say that you don't issue the warning if the constant's value did not change? Alternatively, we could think about itemizing the different kinds of warnings and letting the program turn individual warning messages on and off (a bit like Perl's 'use strict') no_warn %w( REDEFINED_CONSTANT REDEFINED_METHOD ) { load "mymod.rb" } (I'm struggling here ;-) Dave