Discussion Thread: DIP 1028--Make @safe the Default--Final Review
Timon Gehr
timon.gehr at gmx.ch
Sun Apr 5 19:07:08 UTC 2020
On 04.04.20 09:01, Walter Bright wrote:
> On 3/27/2020 2:02 PM, Jonathan M Davis wrote:
>> I don't know if we can reasonably change how @trusted is treated in name
>> mangling at this point, but I definitely think that it was a mistake to
>> distinguish between @safe and @trusted with name mangling.
>
> If @trusted wasn't part of the mangling, one could not turn the mangling
> back into the function signature.
Jonathan's more general point was that there is no reason to distinguish
@safe and @trusted in function signatures. In fact, it would be an
improvement if @trusted functions had @safe function signatures.
More information about the Digitalmars-d
mailing list