[DIP idea] out variables

Ogi ogion.art at gmail.com
Wed Jan 27 09:34:36 UTC 2021


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?


More information about the Digitalmars-d mailing list