[#1378] differences between Module and Class ? — Mathieu Bouchard <matju@...>

25 messages 2003/08/11
[#1387] Re: differences between Module and Class ? — matz@... (Yukihiro Matsumoto) 2003/08/12

Hi,

[#1442] Re: differences between Module and Class ? — Mathieu Bouchard <matju@...> 2003/08/21

[#1406] _id2ref bug? — Ryan Pavlik <rpav@...>

While debugging some caching code, I've come across a segfault related

22 messages 2003/08/14
[#1407] Re: _id2ref bug? — matz@... (Yukihiro Matsumoto) 2003/08/14

Hi,

[#1413] Re: _id2ref bug? (REPRODUCED, short) — Ryan Pavlik <rpav@...> 2003/08/14

On Fri, 15 Aug 2003 01:57:18 +0900

intialize_copy for classes

From: "Christoph" <chr_news@...>
Date: 2003-08-05 09:35:40 UTC
List: ruby-core #1352
Hi,


is this a bug or feature (1.8 release)?

---
class C
  def self.initialize_copy(orig)
    puts "class initialize_copy called"
  end
  def initialize_copy(orig)
    puts "instance initialize_copy called"
  end
end

C.clone     # initialize_copy is not called
C.new.clone # instance initialize_copy called
---


/Christoph
 

In This Thread