Unwanted conflict

Jonathan M Davis jmdavisProg at gmx.com
Mon Jul 22 21:14:40 PDT 2013


On Tuesday, July 23, 2013 05:42:10 Carl Sturtivant wrote:
> On Sunday, 21 July 2013 at 18:37:23 UTC, Jonathan M Davis wrote:
> > On Sunday, July 21, 2013 16:25:15 Carl Sturtivant wrote:
> >> That's too bad, because in the real code this example was
> >> derived
> >> from I can't have type inference call the right constructor as
> >> there are two constructors with the same run-time argument
> >> types.
> > 
> > You could use a factory function instead.
> > 
> > - Jonathan M Davis
> 
> Yes, and I suppose it's not that awful of a work-around. Only D
> invited this nice technique in the interesting situation I am in,
> and I like simplicity and elegance, and I like to supply nice
> explanations based thereupon. I do hope this gets to work
> eventually in a later version. :)

Well, ideally it would work, and there's a decent chance that it will in the 
future, but for now, we're out of luck.

-  Jonathan M Davis


More information about the Digitalmars-d-learn mailing list