DIP 1027--String Interpolation--Final Review Discussion Thread

Walter Bright newshound2 at digitalmars.com
Sun Feb 2 07:23:31 UTC 2020


On 1/31/2020 6:46 AM, Seb wrote:
> As mentioned earlier and by others: there are still two options (even without a 
> solution for this) that would solve the C ABI problem. I'm failing to understand 
> why they wouldn't work:
> 
> 1) There are only a handful of C functions that would be able to receive this 
> tuple (the printf family). Why can't we add an overload for them?

Then they aren't really printf? C functions aren't overloadable?


> 2) If (1) isn't an option, wouldn't printf(i"interpolated ...".c) work?

structs and tuples aren't interchangeable if you have to remember to do things 
like that.



More information about the Digitalmars-d mailing list