On 2006-07-08, Sean O'Halpin <sean.ohalpin / gmail.com> wrote:

> ... I do think it would be nice if Klass() were a synonym for
> Klass.new(). As far as I know, this wouldn't conflict with anything
> in the Ruby standard lib ...

Yes it would:

$ irb
irb(main):001:0> x = Object.new
=> #<Object:0xb7c8c7a8>
irb(main):002:0> def x.to_i ; 42 ; end
=> nil
irb(main):003:0> Integer(x)
=> 42
irb(main):004:0> Integer
=> Integer
irb(main):005:0> Integer.new
NoMethodError: undefined method `new' for Integer:Class
        from (irb):5
        from :0
irb(main):006:0>

Regards, 

Jeremy Henty