[#3479] Missing .document files for ext/ libraries — Brian Candler <B.Candler@...>

The ri documentation for zlib, strscan and iconv doesn't get built by 'make

12 messages 2004/10/06

[#3492] Re: ANN: Free-form-operators patch — Markus <markus@...>

> In message "Re: ANN: Free-form-operators patch"

15 messages 2004/10/11
[#3493] Re: ANN: Free-form-operators patch — Yukihiro Matsumoto <matz@...> 2004/10/11

Hi,

[#3495] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/12

On Mon, 2004-10-11 at 16:16, Yukihiro Matsumoto wrote:

[#3561] 1.8.2 - what can we do to help? — Dave Thomas <dave@...>

Folks:

23 messages 2004/10/26
[#3562] Re: 1.8.2 - what can we do to help? — Yukihiro Matsumoto <matz@...> 2004/10/27

Hi,

[BUG] autoload

From: Joel VanderWerf <vjoel@...>
Date: 2004-10-30 20:34:51 UTC
List: ruby-core #3655
(I'm not sure if this is still the right place to report bugs. I didn't 
see a link on ruby-lang.org to a bug report form.)

Something has changed in 1.9 snapshots in the last week that is breaking 
my autoloads.

Here is a simple example:

==== bug.rb ====
autoload :Bug1, "bug1"
autoload :Bug2, "bug1" # note same file as above!

p Bug2
====

==== bug1.rb ====
class Bug1; end

require "bug2"
====

==== bug2.rb ====
class Bug2; end
====

And this is the effect:

$ ruby-stable-snapshot -v bug.rb
ruby 1.8.2 (2004-10-29) [i686-linux]
Bug2
$ ruby-snapshot -v bug.rb
ruby 1.9.0 (2004-10-29) [i686-linux]
./bug1.rb:1: uninitialized constant Bug1 (NameError)
         from bug.rb:4


So it appears that the autoloader does not detect that "bug1.rb" is 
already being loaded when it sees the "class Bug1; end" line in bug1.rb.

Is this a bug or should autoload not be used in this way any more?

In This Thread

Prev Next