arathorn at NOSPAM_fastwebnet.it
Thu Aug 31 05:48:44 PDT 2006
> Well, as far as I can tell, you can't create a new object without a new
> expression, in which you need to state the exact type, so even if you
> could specify a constructor signature in an interface, you still
> couldn't generically create an object.
> If you could do it, though, what would the rest of the code look like?
> (I think you can't code around explicitly listing types somewhere, so
> I'm interested what you feel would be gained).
That's true again... auto a = new SomeInterface is meaningless, as you
cannot tell what 'concrete' class you need.
More information about the Digitalmars-d-learn