Date: Sat, 28 Apr 2001 17:25:33 -0600 From: Duke Normandin <01031149@3web.net> To: Jan Grant <Jan.Grant@bristol.ac.uk> Cc: Freebsd Questions <freebsd-questions@freebsd.org> Subject: Re: OT - C Pointers Message-ID: <20010428172532.A87243@mandy.rockingd.calgary.ab.ca> In-Reply-To: <Pine.GSO.4.31.0104281730490.27668-100000@mail.ilrt.bris.ac.uk>; from "Jan Grant" on Sat, Apr 28, 2001 at 05:32:49PM References: <20010427193048.A70243@mandy.rockingd.calgary.ab.ca> <Pine.GSO.4.31.0104281730490.27668-100000@mail.ilrt.bris.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 28, 2001 at 05:32:49PM +0100, Jan Grant wrote: > On Fri, 27 Apr 2001, Duke Normandin wrote: > > > > > Hi guys... > > > > Little OT if I might -- please! > > > > Ted Jensen, in his "A Tutorial on Pointers and Arrays in C" states, > > [cut] > > > Ruurd Pels, in his "A Brief Tutorial on Pointers, Lvalues, & Rvalues" > > states: > > > > [some text snipped for brevity] > > > > " Definitions: > > > > rvalue the attribute of a variable that holds the address where > > that particular variable is stored. > > lvalue the attribute of a variable that holds the value of the > > variable. > > > I'm confused!! In his "Definitions:" above, did Pels get rvalue and lvalue > > switched around? > > Yes. The "l" in "lvalue" comes from the fact that you need an lvalue on > the left-hand-side of the assignment operator. > > jan So given the fact, a variable is a tuple, namely: tuple(storage, scope, type, address, value) the "address" in the tuple is the lvalue -- or what's on the left of an assignment. the "value" in the tuple is the r value -- or what's on the right of an assignment. is that correct? So indeed, it appears that Pels mis-wrote. Thanks! -- -duke Calgary, Alberta, Canada To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010428172532.A87243>