[Issue 8441] mixin containing template functions causes compiler errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 18 09:49:29 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8441
--- Comment #6 from monarchdodra at gmail.com 2013-01-18 09:49:28 PST ---
(In reply to comment #5)
>
> But the instantiation of a signal and the access:
> mixin T!("1") t0;
> alias t0 t1;
> x.f1().j!(3,"a")(2.2, 3.3);
>
> vs
> mixin T!() t0;
> x.t0.j!(3,"a")(2.2, 3.3);
>
> would change, which is part of the public accessible API. If the
> workaround gets removed, people would have to adopt their code, which is
> kind of unacceptable for phobos.
>
> Best regards,
>
> Robert
I don't understand. You used to have:
mixin T!("1") t0;
alias t0 t1;
x.f1().j!(3,"a")(2.2, 3.3);
And I proposed something that worked with
mixin T!("1") t0;
alias t0 t1;
x.f1().j!(3,"a")(2.2, 3.3);
Nothing changed. Where did:
mixin T!() t0;
x.t0.j!(3,"a")(2.2, 3.3);
Come from?
All you should need is a private "man in the middle"...
Well, I don't have your end code, so I don't know how acceptable that is
anyways. Good luck :)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list