Article View: comp.std.c
Article #53Re: on "use", and the lvalue-ness of string literals
From: Peter van der Linden
Date: Mon, 02 Nov 1992 19:27
Date: Mon, 02 Nov 1992 19:27
14 lines
837 bytes
837 bytes
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.
Peter van der Linden
--
Inventor of the Lambada-Calculus.
Technical Details
Message-ID:
<lfb087INN8na@exodus.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!decwrl!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!diskus.Eng.Sun.COM!lindenReferences:
<1992Nov2.162310.10094@ichips.intel.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!decwrl!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!diskus.Eng.Sun.COM!linden From: linden@diskus.Eng.Sun.COM (Peter van der Linden) Newsgroups: comp.std.c Subject: Re: on "use", and the lvalue-ness of string literals Message-ID: <lfb087INN8na@exodus.Eng.Sun.COM> Date: 2 Nov 92 19:27:03 GMT Article-I.D.: exodus.lfb087INN8na References: <1992Nov2.162310.10094@ichips.intel.com> Organization: Sun Microsystems, Mt. View, Ca. Lines: 14 NNTP-Posting-Host: diskus