Re: [Flightgear-devel] fancy lvalues in c++

2007-07-06 Thread Thomas Förster
Am Freitag 06 Juli 2007 10:19 schrieb Melchior FRANZ: > ... > Maybe you should stop by in our IRC channel at some time. It's > usually much more relaxed and friendly there, and it's easier to > clear matters. I second that. I was quite surprised yesterday :-) Thx OTOH sometimes it's not an option

Re: [Flightgear-devel] fancy lvalues in c++

2007-07-06 Thread Melchior FRANZ
Hi, I didn't intend to take part in more threads with you that could (and most likely would) turn out to be yet another flame war. The following is really meant to be the opposite, but I assume that it will fail poorly. * John Denker -- Friday 06 July 2007: > I'm sure some people will take this

Re: [Flightgear-devel] fancy lvalues in c++

2007-07-05 Thread Csaba Halász
On 7/6/07, John Denker <[EMAIL PROTECTED]> wrote: > Attached is a simplified, somewhat academic example to illustrate > what I'm talking about. Would be a lot better if it worked for any number of arguments. Looks nice, though. Variable arguments using "..." don't work with references and I could

[Flightgear-devel] fancy lvalues in c++

2007-07-05 Thread John Denker
On 07/05/2007 12:59 PM, Andy Ross wrote: References can be lvalues, so it's possible to write functions whose returned valued can be assigned. True. The examples are usually pretty academic, but consider a sparse 2D array with a method like int& element(int x, int y); You can use this