January 30, 2013
On Wednesday, January 30, 2013 21:51:19 Namespace wrote:
> > What change? My point was that it's _not_ changing. Function
> > parameters can be
> > marked with ref, but the call site doesn't use ref, and it
> > isn't going to
> > start using ref.
> > 
> > - Jonathan M Davis
> 
> My fault. I thought that the optional call site ref/out whatever might be implemented in the future. The C# way makes more sense, so I thought many users here would see something like this also. Even if it would be optional.

No, it's been argued before, and IMHO optional ref does more harm than having none. The real benefit is when it's required, but even if it were generally agreed that that were better, it wouldn't get changed at this point, since it would break too much code. I suspect that it would cause problems with generic code though, regardless.

- Jonathan M Davis
January 30, 2013
Maxim Fomin:

> By the way, recently problem with functions taking by ref and returning passed ref was discussed and was considered to be a @safity hole. If your proposal is accepted, issue with ref and @safe may be needed to be taken into account in application to your proposal.

I see. I am willing to close down that request 9423, if you want, it's not important.

Bye,
bearophile
1 2
Next ›   Last »