How do you get bitten by an out-reference? ________________________________________ From: [email protected] <[email protected]> on behalf of Giuseppe D'Angelo <[email protected]> Sent: Sunday, May 17, 2015 9:43 PM To: Marc Mutz Cc: [email protected] Subject: Re: [Development] QTextStream::readLine(0) is an ambiguous overload in 5.5
On Sun, May 17, 2015 at 10:17 PM, Marc Mutz <[email protected]> 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 [email protected] http://lists.qt-project.org/mailman/listinfo/development _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
