From 7956122717472951473
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ae3be6396bd7be12
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1994-07-29 06:57:08 PST
Newsgroups: comp.std.c++
Path: bga.com!news.sprintlink.net!news.onramp.net!convex!news.duke.edu!MathWorks.Com!yeshua.marcam.com!charnel.ecst.csuchico.edu!olivea!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!news
From: maxtal@physics.su.OZ.AU (John Max Skaller)
Subject: Re: Standard C++ String classes
Message-ID: <CtozHx.9JH@ucc.su.OZ.AU>
Sender: news@ucc.su.OZ.AU
Nntp-Posting-Host: physics.su.oz.au
Organization: School of Physics, University of Sydney, Australia
References: <31865v$sq8@silver.jba.co.uk>
Date: Fri, 29 Jul 1994 07:58:45 GMT
Lines: 46

In article <31865v$sq8@silver.jba.co.uk> "Jonathan de Boyne Pollard" <@jba.co.uk:JdeBP@osmium> writes:
>I gather that the proposed string classes are as good as finalised.

	You gather wrong. It is being completely replaced
by a templated string class. 

	MAKE NO ASSUMPTIONS ABOUT ANYTHING CLAIMING TO BE
"TRACKING" THE STANDARDISATION EFFORT -- INCLUDING THE
WORKING PAPER ITSELF. WAIT UNTIL THERE REALLY IS AN ISO STANDARD.
>
>If so, could someone clear up the semantics of strings for me ?
>
>1.    What are the semantics of embedded NULs in strings ?

	Ordinary character.

>1.1   Do embedded NULs alter the length value of strings ?

	Ordinary character.

>1.2   If embedded NULs are allowed and the string length takes
>      account of them, what are the semantics of 
>      string::operator const char * ?

	Returns a pointer to an array containing the string.

>1.3   Do embedded NULs cause loss of contents during concatenation ?

	No more than any other character.

>1.4   Do embedded NULs cause loss of contents during substring extraction ?

	No, they behave like any other character.

	.. And the reason is at least part that ISO REQUIRES
that new languages NOT treat any character specially, in particular
because some ISO Standard multibyte character sequences contain
NUL (0) valued characters.

	In a string, all characters are equal.

--
        JOHN (MAX) SKALLER,         INTERNET:maxtal@suphys.physics.su.oz.au
	Maxtal Pty Ltd,		    
        81A Glebe Point Rd, GLEBE   Mem: SA IT/9/22,SC22/WG21 
        NSW 2037, AUSTRALIA	    Phone: 61-2-566-2189


