Can't make inout work.
aliak
something at something.com
Mon Mar 18 10:40:42 UTC 2019
On Sunday, 17 March 2019 at 20:23:44 UTC, Paul Backus wrote:
> On Sunday, 17 March 2019 at 10:49:03 UTC, aliak wrote:
>> [...]
>
> For some reason, when you call `make("hello")`, the template
> argument T is being inferred as char[] instead of string. (You
> can see this by putting `pragma(msg, T)` in the body of make.)
> It works if you instantiate make explicitly with
> `make!string("hello")`.
>
> This seems like a bug to me. If you remove inout from the code,
> T is correctly deduced as string.
https://issues.dlang.org/show_bug.cgi?id=19749
More information about the Digitalmars-d-learn
mailing list