[#4745] Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...>

Having taken upon me the task to provide a Windows build for

24 messages 2005/04/20
[#4746] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Austin Ziegler <halostatue@...> 2005/04/20

On 4/20/05, Erik Huelsmann <ehuels@gmail.com> wrote:

[#4747] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/20

Hi Austin,

[#4762] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — nobu.nokada@... 2005/04/24

Hi,

[#4783] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/25

On 4/24/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:

[#4787] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — nobu.nokada@... 2005/04/25

Hi,

[#4794] Re: Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...> 2005/04/25

> > > Ruby is just using AC_TYPE_UID_T. So, using typedef for them,

[#4751] Illegal regexp causes segfault — Andrew Walrond <andrew@...>

irb(main):058:0> a = /\[([^]]*)\]/

13 messages 2005/04/22

signleton_methods / methods / public_methods - weirdness?

From: Johan Holmberg <holmberg@...>
Date: 2005-04-03 16:06:05 UTC
List: ruby-core #4654
Hi!

I was trying to find out the "class methods" of some classes.
Looking in the PickAxe I found out that there are at least three 
methods that return almost the same thing for a class/module:

     Object#singleton_methods(flag)
     Object#public_methods(flag)
     Object#methods(flag)

So potentially we can get six (3 * 2) different results. To find out 
the difference between all invocations, I ran the methods on all 
builitin classes/modules, and compared the result. It turned out 
that I actually got 4 different results:

     - methods(false) and singleton_methods(false)
       give the same result

     - singleton_methods(true)
       gives a unique result

     - public_methods(false)
       gives a unique result

     - methods(true) and public_methods(true)
       give the same result

The PickAxe said that Object#public_methods was a synonym for 
Object#methods. This is apparently not true (or true only when the 
argument is "true").

To me it seem like these methods have "degenerated" into something 
that is almost impossible to explain. Neither the PickAxe nor the 
online-docs explains it in a way so I can understand the 
differences. Can anyone explain the logic behind these different 
methods and their results?

Maybe I'm just stupid :)

/Johan Holmberg


In This Thread

Prev Next