UFCS and constructors
deadalnix
deadalnix at gmail.com
Tue Jul 2 18:41:39 PDT 2013
On Tuesday, 2 July 2013 at 21:38:26 UTC, Timon Gehr wrote:
> Such restrictions need to be justified. The justification
> should make (at least some) sense. There is no point in
> heuristically designing language features from observations
> about other language features without applying insight.
>
The whole point of UFCS is to be able to provide additional
custom "methods" to a object (class or struct). Constructor UFCS
don't fulfill that use case.
Nothing is removed from the language as factories method can be
introduced anyway.
More information about the Digitalmars-d
mailing list