On Thursday, May 09, 2013 20:55:43 Rob T wrote: > On Friday, 26 April 2013 at 16:13:44 UTC, Luís Marques wrote: > > BTW, I was working on a Object.factory scenario right now (!) > > and stumbled on the limitation that the class can only have a > > default constructor. Couldn't you call a non-default > > constructor by passing var args to Object.factory()? > > In the docs, > > "The class must either have no constructors or have a default > constructor." > > I thought that meant that the class must have either no > constructors at all, or if it does have constructors there must > be a default constructor. That is not that same as stating that > it must have only a default constructor, correct?
If a class doesn't have any constructors, then a default constructor is provided. - Jonathan M Davis