🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1887

string literals - lvalues ?

#1887
From: Alexsander Krotoff
Date: Fri, 01 Sep 1995 18:13
24 lines
1275 bytes
Hello gurus,

I have a questio: is it mentioned in the c++ draft standard are
string literals lvalues or not ? Is it possible to take an address
of string ?

ANSI C (3.3.1 Primary expressions)
	A string literal is a primary expression. It is an lvalue
	with type defined in 3.1.4.

C++ DS 3.9 (Lvalues and rvalues)
	An lvalue refers to an object or function.

I did not found to find explicit answer.

Thank you.
--
Alexander Krotoff				<krotoff@such.srcc.msu.su>
Research Computer Center			[Moscow]939-2638
Moscow State University				MGU, SRCC k316. GZ B-733r.
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <427hu8$2k8@alpha.phys.msu.su>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
Date: 01 Sep 95 18:13:10 GMT
Approved: fjh@cs.mu.oz.au
Return-Path: <daemon@ncar.UCAR.EDU>
From: krotoff@boy.rector.msu.su (Alexsander Krotoff)
Newsgroups: comp.std.c++
Subject: string literals - lvalues ?
X-Original-Date: 1 Sep 1995 18:03:51 GMT
Organization: Research Computer Center, Moscow State University
Message-ID: <427hu8$2k8@alpha.phys.msu.su>
Reply-To: krotoff@such.srcc.msu.su
X-Newsreader: TIN [version 1.2 PL2]