[DIP idea] out variables

Max Haughton maxhaton at gmail.com
Wed Jan 27 18:25:57 UTC 2021


On Wednesday, 27 January 2021 at 09:34:36 UTC, Ogi wrote:
> On Tuesday, 26 January 2021 at 01:01:54 UTC, Q. Schroll wrote:
>> Main goal: Make the `out` parameter storage class live up to 
>> promises.
>> In current semantics, `out` is basically `ref` but with 
>> documented intent. The initialization of the parameter is more 
>> like a detail.
>>
>> [...]
>
> Is there any reason to use out parameters at all instead of 
> returning a tuple?

Struct ABI can mean overhead in places you don't expect


More information about the Digitalmars-d mailing list