Mixin analysis support for templated arguments possible?

jacobkemple jacobkemple at outlook.com
Sun Mar 3 04:02:24 UTC 2019


On Saturday, 2 March 2019 at 08:09:00 UTC, Rainer Schuetze wrote:
>
>
> On 01/03/2019 21:17, jacobkemple wrote:
>> [...]
>
> Don't expect wonders, but this problem is "just" that the 
> stringof property of template instances doesn't evaluate to the 
> correct string, i.e. "foo" instead of "foo!int".
>
> This should help for the next release: 
> https://github.com/aBothe/D_Parser/pull/218

Sorry for spam, but it appears my above comment is pretty much 
what the pull request is doing did not review it properly. My bad.

> sb.Append("!(");
> if (t.DeducedTypes.Count() > 0)
> 	AcceptType(t.DeducedTypes[0]);
> for (int i = 1; i < t.DeducedTypes.Count(); i++)
> {
> 	sb.Append(", ");
> 	AcceptType(t.DeducedTypes[i]);
> }
> sb.Append(")");


More information about the Digitalmars-d-ide mailing list