[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01111] Re: YADQ (Yet Another Dumb Question)

From: matz@... (Yukihiro Matsumoto)
Date: 2000-01-12 05:58:03 UTC
List: ruby-talk #1111
Hi,

In message "[ruby-talk:01110] Re: YADQ (Yet Another Dumb Question)"
    on 00/01/11, Dave Thomas <Dave@thomases.com> writes:

|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?

I'm thiking of interactive systems like browsers.  This problem was
found by JED/Ruby when it tried to provide interactive Ruby feature.

|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"
|  }

Let me think about it.

  * whether redefining raises an exception, or warning, or report nothing.
  * if reports some kind of error, whether it can be stopped or not.

Hmm, 5 combinations.  And if error reports can be stopped, we should
determine how to specify it.
							matz.

In This Thread

Prev Next