Discussion Thread: DIP 1036--String Interpolation Tuple Literals--Community Review Round 2
Steven Schveighoffer
schveiguy at gmail.com
Fri Jan 29 15:28:21 UTC 2021
On 1/29/21 9:54 AM, Dukc wrote:
> On Friday, 29 January 2021 at 14:30:03 UTC, Adam D. Ruppe wrote:
>> On Friday, 29 January 2021 at 14:21:39 UTC, Paul Backus wrote:
>>> ...unless you happen to have something else named `interp` in scope
>>> that makes the `.stringof` results compile. Have fun chasing down
>>> *that* bug. :)
>>
>> What are you talking about?
>>
>> this DIP is pretty explicit about where interp lives.
>
> But you could define your own to the same module where the mixin lives.
> In that case, it would get called by the mixin, not `object.interp`.
The intent is for the compiler to identify the exact location of interp.
This doesn't necessarily mean lowering, it means that only the druntime
interp template will be used (which is easy to do internally).
There will be no overriding of interp or idup allowed in user code. I
could have sworn I had a statement in the DIP that said that, but I may
have deleted it in the many rewrites.
-Steve
More information about the Digitalmars-d
mailing list