[#41916] Proposal: Bitmap Marking GC — Narihiro Nakamura <authornari@...>

Hi.

18 messages 2012/01/05

[#41941] [ruby-trunk - Bug #5851][Open] make check fails when compiling with GCC 4.7 - *** longjmp causes uninitialized stack frame *** — Vit Ondruch <v.ondruch@...>

12 messages 2012/01/06

[#41979] [ruby-trunk - Bug #5865][Open] Exception#== should return false if the classes differ — Hiro Asari <asari.ruby@...>

10 messages 2012/01/08

[#42003] [ruby-trunk - Bug #5871][Open] regexp \W matches some word characters when inside a case-insensitive character class — Gareth Adams <gareth@...>

14 messages 2012/01/09

[#42016] [ruby-trunk - Feature #5873][Open] Adopt FFI over DL — Heesob Park <phasis@...>

15 messages 2012/01/10

[#42149] [ruby-trunk - Feature #5899][Open] chaining comparsions. — Ondrej Bilka <neleai@...>

12 messages 2012/01/16

[#42164] [ruby-trunk - Feature #5903][Open] Optimize st_table (take 2) — Yura Sokolov <funny.falcon@...>

18 messages 2012/01/17

[ruby-core:42105] Re: [ruby-trunk - Bug #5887] The documentation of Module.constants is incorrect

From: Shugo Maeda <shugo@...>
Date: 2012-01-13 02:07:31 UTC
List: ruby-core #42105
Hi,

2012/1/13 Marc-Andre Lafortune <ruby-core@marc-andre.ca>:
>> OT: I think Module.constants should be renamed in the future, because Mo=
dule.constants is confusing with Module#constants. =A0Why the hell do I hav=
e to write the following tricky code to invoke Module#constants on Module i=
tself?
>>
>> =A0 p Module.instance_method(:constants).bind(Module).call
>
> Actually, you can simply pass a parameter to `Module.constants` and the s=
ingleton method will call the instance method. The documentation should def=
initely reflect this too...

Oh, I didn't know that.  However, I doubt that Matz has accepted the featur=
e.

The optional arguments of Module.constants were introduced by nobu in
r11338, but the change of Module.constants was not described in the
commit log.

    * intern.h, object.c, variable.c (rb_mod_constants): added an optional
      flag to search ancestors, which is defaulted to true, as well as
      const_defined? and const_get.  [ruby-dev:29989]

It was not discussed in the thread starting from [ruby-dev:29989] either.

Is it an official feature?

--=20
Shugo Maeda

In This Thread