Proof of concept - library AA
IgorStepanov via Digitalmars-d
digitalmars-d at puremagic.com
Sat May 30 09:25:56 PDT 2015
On Saturday, 30 May 2015 at 15:24:49 UTC, Adam D. Ruppe wrote:
> On Saturday, 30 May 2015 at 14:10:35 UTC, IgorStepanov wrote:
>> static Foo opImplicitConstructFrom(T)(T val) if(is(T : int))
>
> I briefly mentioned this at the dconf and thinking about it a
> bit more, I think there's only two cases where we want implicit
> construction: function argument lists and function return
> values. (The syntax doesn't really matter, but I'd do it
> similar to C++ and just slap an @implicit on a regular
> constructor).
What did people say about this idea?
More information about the Digitalmars-d
mailing list