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

Seb seb at wilzba.ch
Fri Jan 31 14:46:15 UTC 2020

On Friday, 31 January 2020 at 02:29:15 UTC, Walter Bright wrote:
> On 1/30/2020 4:39 AM, Seb wrote:
>> Structs are essentially just fancy tuples and look the same 
>> when stored in memory.
> I've wanted to make tuples<=>structs. Here's the big problem - 
> passing them as function parameters.
> It just doesn't work and be compatible with the C ABI.

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?

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

More information about the Digitalmars-d mailing list