From -4743375678254438017 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,ae3be6396bd7be12 X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 1994-07-31 07:09:10 PST Newsgroups: comp.std.c++ Path: bga.com!news.sprintlink.net!rtp.vnet.net!news1.digex.net!lynx.unm.edu!nntp.sunbelt.net!udel!gatech!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!netcomsv!netcom.com!rfg From: rfg@netcom.com (Ronald F. Guilmette) Subject: Re: Standard C++ String classes Message-ID: Organization: Netcom Online Communications Services (408-241-9760 login: guest) References: <31865v$sq8@silver.jba.co.uk> Date: Sun, 31 Jul 1994 08:26:16 GMT Lines: 25 In article maxtal@physics.su.OZ.AU (John Max Skaller) writes: >In article <31865v$sq8@silver.jba.co.uk> "Jonathan de Boyne Pollard" <@jba.co.uk:JdeBP@osmium> writes: > >>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. Congratulations on giving two non-answer answers in a row John. > In a string, all characters are equal. Perhaps this is true for C++ ``Strings'', but it sure as heck is NOT true for the strings pointed to by (char*) pointers. -- -- Ron Guilmette, Sunnyvale, CA ---------- RG Consulting ------------------- ---- domain addr: rfg@netcom.com ----------- Purveyors of Compiler Test ---- ---- uucp addr: ...!uunet!netcom!rfg ------- Suites and Bullet-Proof Shoes -