[Development] QTextStream::readLine(0) is an ambiguous overload in 5.5

Smith Martin Martin.Smith at theqtcompany.com
Sun May 17 21:55:41 CEST 2015


How do you get bitten by an out-reference?

________________________________________
From: development-bounces+martin.smith=theqtcompany.com at qt-project.org <development-bounces+martin.smith=theqtcompany.com at qt-project.org> on behalf of Giuseppe D'Angelo <dangelog at gmail.com>
Sent: Sunday, May 17, 2015 9:43 PM
To: Marc Mutz
Cc: development at qt-project.org
Subject: Re: [Development] QTextStream::readLine(0) is an ambiguous overload in 5.5

On Sun, May 17, 2015 at 10:17 PM, Marc Mutz <marc.mutz at kdab.com> wrote:
>
> *Any* form of out parameter is bad code policy. Much better in virtually all
> cases to return multiple values in a small struct.

No, I was simply referring to the specific case of using pointers
instead of references. I've been bitten too many times by
out-references. Then whether we should ban out-arguments is another
story entirely...

--
Giuseppe D'Angelo
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list