🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #59

Re: on "use", and the lvalue-ness of string literals

#59
From: Fran Litterio
Date: Tue, 03 Nov 1992 16:51
21 lines
1453 bytes
linden@diskus.Eng.Sun.COM (Peter van der Linden) writes:

> Blair asks:
> > It's an LVALUE.  This means that,
> >   "foo" = "bar";
> > is legal.  Right?
> 
> Wrong.   ANSI C defines and draws a distinction between l-values
> and modifiable l-values.  A string literal (in fact any array) is
> the former, but not the latter.

Was the term "non-modifiable l-value" invented by ANSI, or was it
"prior art"?  I was always taught that the 'l' in "l-value" comes from
the idea that an l-value is what can appear on the left-hand-side of
an assigment expression.

A non-modifiable l-value sounds a lot like an r-value to me.
--
franl@centerline.com   || Fran Litterio, CenterLine Software R&D
617-498-3255           || 10 Fawcett St, Cambridge, MA, USA 02138-1110
"It's not the thing you fling, it's the fling itself."  -- Chris Stevens
Technical Details
Message-ID: <FRANL.92Nov3115154@draco.centerline.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!emory!sol.ctr.columbia.edu!spool.mu.edu!hri.com!noc.near.net!news.centerline.com!franl
References: <1992Nov2.162310.10094@ichips.intel.com> <lfb087INN8na@exodus.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!gatech!emory!sol.ctr.columbia.edu!spool.mu.edu!hri.com!noc.near.net!news.centerline.com!franl
From: franl@centerline.com (Fran Litterio)
Newsgroups: comp.std.c
Subject: Re: on "use", and the lvalue-ness of string literals
Message-ID: <FRANL.92Nov3115154@draco.centerline.com>
Date: 3 Nov 92 16:51:54 GMT
References: <1992Nov2.162310.10094@ichips.intel.com> <lfb087INN8na@exodus.Eng.Sun.COM>
Organization: CenterLine Software, Inc.
Lines: 21
NNTP-Posting-Host: 140.239.3.116
In-reply-to: linden@diskus.Eng.Sun.COM's message of 2 Nov 92 19:27:03 GMT