From: Robert Klemme Date: 2012-03-29T23:59:39+09:00 Subject: Re: Why z = Complex(1,2) rather than z = Complex.new(1,2)? Ori Ben-Dor wrote in post #1053937: > But why would this be the way to create new instances of class Complex, > instead of through a constructor in class Complex itself? It's a convenience method which saves 4 characters (".new") and also looks nicer (although that lies in the eye of the beholder). Complex() is just an ordinary method. There are more of them, for example Integer() as well which is a safe version of String#to_i. Kind regards robert -- Posted via http://www.ruby-forum.com/.