ts | 3 May 15:17

[1.8] Struct::new


 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


Gmane