[#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

Re: signleton_methods / methods / public_methods - weirdness?

From: "David A. Black" <dblack@...>
Date: 2005-04-04 02:30:52 UTC
List: ruby-core #4657
Hi --

On Mon, 4 Apr 2005, Saynatkari wrote:

> David A. Black wrote:
>> 
>>   irb(main):001:0> class A; def A.x; end; end; class B < A; end
>>   => nil
>>   irb(main):002:0> B.singleton_methods(false)
>>   => []
>>   irb(main):003:0> B.singleton_methods(true)
>>   => ["x"]
>> 
>> I would argue that there is a bit of a contradiction here, arising
>> from the special case of inheritance.  x is not really a singleton
>> method of B; it's a singleton method of B's superclass, and the rules
>> of inheritance allow the (arguably anomalous) behavior that the
>> subclass can serve as the receiver for what would otherwise be a truly
>> singleton method.
>> 
>> I believe this is the only scenario where, after doing this:
>> 
>>   def obj.meth; end
>> 
>> any object other than obj can call meth.  In other words, a Class's
>> singleton methods ("class methods") don't quite behave in a singleton
>> fashion.
>
> other = obj.clone

But in that case, the clone is calling its own singleton method of the
same name:

   irb(main):001:0> a = Object.new
   => #<Object:0x4029aa34>
   irb(main):002:0> def a.x; 1; end
   => nil
   irb(main):003:0> b = a.clone
   => #<Object:0x40295b4c>
   irb(main):004:0> b.x
   => 1
   irb(main):005:0> def a.x; 2; end
   => nil
   irb(main):006:0> b.x
   => 1

(I'm actually not sure whether the 'x' prior to the redefinition of
a#x is the same for both objects.  If so, it's just an optimization,
since b#x is a different method after a#x is redefined.)


David

-- 
David A. Black
dblack@wobblini.net

In This Thread