Discussion Thread: DIP 1035-- at system Variables--Community Review Round 2

Dukc ajieskola at gmail.com
Tue Mar 2 16:22:06 UTC 2021


On Tuesday, 2 March 2021 at 16:04:14 UTC, Paul Backus wrote:
> On Tuesday, 2 March 2021 at 15:17:54 UTC, Dukc wrote:
>> So the queastion is:
>>
>> ```D
>> ShortString getSString() pure @system {<...>}
>> //under what conditions, if any, is the initialization 
>> inferred as @safe here?
>> ShortString n = getSString();
>> ```
>
> In this example, `n` will always be inferred as a @system 
> variable.

Fair enough. Remember to mention that in the DIP - either at the 
place I just quoted or at the changes you propose to what is 
considered a safe value.


More information about the Digitalmars-d mailing list