Is @safe still a work-in-progress?
Mike Franklin
slavo5150 at yahoo.com
Wed Aug 22 09:34:00 UTC 2018
On Wednesday, 22 August 2018 at 09:23:26 UTC, Walter Bright wrote:
>> The proposed idea wants to make the first parameter, if it's
>> `ref`, special.
>
> This is because Phobos is written with functions of the form:
>
> void put(sink, parameters...)
>
> which corresponds to:
>
> sink.put(parameters...)
>
> The two forms are fairly interchangeable, made more so by the
> Uniform Function Call Syntax.
Makes perfect sense. This is the kind of stuff I'd like you to
put in a formal document and present to us as an RFC along with
your PR. Then transfer that information to the spec to accompany
the DMD PR, after you've received feedback.
Mike
More information about the Digitalmars-d
mailing list