From: nobu.nokada@... Date: 2002-07-04T04:00:09+09:00 Subject: Re: Class.forName("Array") Hi, At Thu, 4 Jul 2002 03:31:22 +0900, Sylvia Chai wrote: > Is it possible to create an object of the class > 'Class' dynamically? > > Fox example: to create an object of 'Class' with the > value of 'Hash' by something like: Class.new('Hash') > or Class.forName('Hash') eval('Hash').new Or Object.const_get('Hash').new > Isn't it very useful? Probably. But Class.new creates anonymous subclass for the argument, and forName doesn't look so good. -- Nobu Nakada