Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2
Walter Bright
newshound2 at digitalmars.com
Fri Jan 29 11:08:04 UTC 2021
On 1/28/2021 12:46 AM, SealabJaster wrote:
> Finally, and I'm sorry if I missed this being described in the DIP, but consider
> this case (and similar):
>
> ```
> void f(T)(T array)
> if(isArray!T)
> {
> //...
> }
>
> f(i"...");
> ```
>
> What would happen here? My best guess is that it won't compile unless written as
> `f(i"...".idup)` which then introduces an odd discrepancy where there's certain
> usages that still require explicitly calling .idup, e.g. `i"...".idup.splitter`
This does appear to be an omission, please file it in the feedback thread.
More information about the Digitalmars-d
mailing list