3 May 15:17
[1.8] Struct::new
From: ts <decoux <at> moulon.inra.fr>
Subject: [1.8] Struct::new
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-05-03 13:21:05 GMT
Expires: This article expires on 2008-05-17
Subject: [1.8] Struct::new
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-05-03 13:21:05 GMT
Expires: This article expires on 2008-05-17
Struct::new call twice #to_str when it's defined vgs% ./ruby -ve'class A; def to_str() puts "to_str"; "Str" end end; Struct.new(A.new)' ruby 1.8.7 (2008-05-02 patchlevel 5000) [i686-linux] to_str to_str vgs% p.s.: 1.9 do something stupid but it's (*partially*) in test_knownbug.rb Guy Decoux
RSS Feed