From: Jason Creighton Date: 2003-06-27T12:21:15+09:00 Subject: Re: Warning error in YAML On Thu, 26 Jun 2003 09:46:50 +0900 nobu.nokada@softhome.net wrote: > Hi, > > At Tue, 24 Jun 2003 20:16:53 +0900, > ts wrote: > > U> Is this behaviour common? Or I did something wrong. > > > > No, the problem is in yaml which make reference to Kernel::Hash rather > > than Object::Hash > > ::Hash wouldn't be better? It looks like almost anything would be better: ~$ ruby -v ruby 1.8.0 (2003-06-23) [i686-linux] ~$ ruby -w a = Kernel::Hash.new b = Object::Hash.new c = ::Hash.new d = Hash.new -:1: warning: toplevel constant Hash referenced by Kernel::Hash Personally, I think Object::Hash, Kernel::Hash are silly, and ::Hash is ugly. Why not just say "Hash"? Jason Creighton