[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

Re: irb doesn't work, because tempfile doesn't work

From: matz@... (Yukihiro Matsumoto)
Date: 2003-05-02 17:09:18 UTC
List: ruby-core #1007
Hi,

In message "Re: irb doesn't work, because tempfile doesn't work"
    on 03/05/03, Dave Thomas <dave@thomases.com> writes:

|FWIW, I always thought that Object#methods should have accepted a 
|'recurse' parameter and that it should have defaulted to 'false'. In 
|daily use, I seem to care more about the methods actually defined in an 
|object's class than those methods it responds to.

Interesting!  As I told you in the personal message, I thought
opposite way.  Let me think about this issue more further.

|So, if we're making things incompatible, I'd like to suggest a more 
|global change. Make _all_ the reflection methods accept a 'recurse' 
|parameter (including things such as method_defined?), and have that 
|parameter default to the current 1.6.x behavior. As it stands right now 
|we have a curious mixture: some allow you recurse, some let you specify 
|it, and some don't recurse.

We both agree to make reflection methods more consistent.  I will do
something on it.

|By making the parameter default to the current behavior, we retain 
|compatibility for all the developers out there, but by providing the 
|parameter we give ourselves future flexibility.

By this way, inconsistency (e.g. instance_methods and methods)
remains.  We need to make incompatible change to accomplish
consistency.  All is my fault.  Sorry.

							matz.

In This Thread