[#1147] Copying RVALUE — why the lucky stiff <ruby-core@...>

Hello, everyone. Hope you are all doing well.

18 messages 2003/06/17
[#1155] Re: Copying RVALUE — matz@... (Yukihiro Matsumoto) 2003/06/20

Hi,

[#1157] Re: Copying RVALUE — why the lucky stiff <ruby-core@...> 2003/06/20

Yukihiro Matsumoto (matz@ruby-lang.org) wrote:

[#1173] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...>

Hi, I'm new to this mailing list so I don't know the procedure for

15 messages 2003/06/22
[#1174] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — nobu.nokada@... 2003/06/22

Hi,

[#1175] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...> 2003/06/22

On Sun, 2003-06-22 at 05:36, nobu.nokada@softhome.net wrote:

[#1176] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — nobu.nokada@... 2003/06/22

Hi,

[#1193] Re: [Patch] class.c code cleanup (rb_class_*_instance_methods) — Matthew Dempsky <jivera@...> 2003/06/25

On Sun, 2003-06-22 at 07:41, nobu.nokada@softhome.net wrote:

[#1177] Re: In 1.8.0 nil.to_s is not the same as "" — ts <decoux@...>

14 messages 2003/06/22

Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c

From: Dave Thomas <dave@...>
Date: 2003-06-01 03:13:19 UTC
List: ruby-core #1109
Yukihiro Matsumoto wrote:

> 1  module X
> 2    autoload :XXX, "x.rb"
> 3  end
> 4  p X::XXX'
> 
> 
> On line 2, autoload is declared, so that "x.rb" will be loaded when
> X::XXX is referenced.  And I believe "x.rb" should define XXX under X,
> not ::XXX.
> 
> On line 4, X::XXX is referenced, so that autoload is executed, "x.rb"
> is loaded.  Then, in autoload process, it should check if X::XXX is
> defined.  In this case, x.rb does not define XXX under X.  This means
> autoload process should raise NameError.  Right?

But either way, shouldn't autoload be compatible with load? After all, 
the name implies that it "automatically loads".


Cheers


Dave



In This Thread