DIP 1027---String Interpolation---Format Assessment

Steven Schveighoffer schveiguy at gmail.com
Mon Feb 24 21:48:02 UTC 2020


On 2/24/20 4:41 PM, aliak wrote:
> On Monday, 24 February 2020 at 21:23:43 UTC, Adam D. Ruppe wrote:
>> On Monday, 24 February 2020 at 20:55:16 UTC, Walter Bright wrote:
>>> and proposed a lowering to:
>>>
>>> > i"your hex data is ${%02x}someByte"
>>> >
>>> > (_d_interpolated_string!("your hex data is ",
>>> > _d_interpolated_format_spec("%02x"))(), someByte)
>>
>> Do you understand that `_d_interpolated_string` and 
>> `_d_interpolated_format_spec` are to be defined EXCLUSIVELY inside 
>> druntime?
>>
>> There's nothing user-defined about this.
> 
> Does that mean no betterC support if it's in druntime?

It will be supported in betterC, as long as you have object.d available. 
This does not require any D features such as TypeInfo, ModuleInfo, 
static constructors, GC, etc.

-Steve


More information about the Digitalmars-d-announce mailing list