From: "Klaus Spreckelsen,NB 7/129,22329" Date: 2003-10-10T01:24:55+09:00 Subject: Problem with Struct in Ruby 1.8.0 I have a problem with class Struct in Ruby 1.8.0. The following lines are ok in Ruby 1.6.8, but not in 1.8.0. puts defined? File::Stat p Struct.new(File.name, 'key').new p Struct.new(File::Stat.name, 'key').new Output in ruby 1.6.8 (2002-12-24) [i386-linux-gnu] constant # # Output in ruby 1.8.0 (2003-02-08) [i686-linux] constant # t:3:in `new': identifier File::Stat needs to be constant (NameError) from t:3 Is this new behaviour intended? Klaus Spreckelsen