🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: wchar_t as a basic type

#1143
From: Walter Bright
Date: Tue, 22 Dec 1992 08:53
12 lines
1290 bytes
In article <1992Dec9.103811.28262@alf.uib.no> yngvar@novaja.imr.no (Yngvar Foelling) writes:
/Sorry about following up this so long afterwards.  But here's a point that I
/didn't see mentioned in the discussion.
/wchar_t is the type of a wide character constant, i.e. L'x'.
/Walter, you're a compiler writer.  Would you like the idea of making the type
/of a constant, defined in the language, a type from the library?
	It already is. L'x' is a wchar_t, which is defined in the library.
/How would you handle the correct insertion of a string like this:
/cout << L"Wide string constant";
	The compiler "knows" about wchar_t, just like it does now
	for ANSI C. No, it is not as clean as I would like, but the
	L wart is the only one I've found so far.
Technical Details
Message-ID: <1534@nazgul.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!pilchuck!fnx!nazgul!bright
References: <1992Nov10.092148.430@leland.Stanford.EDU> <1992Nov14.200111.14262@sophists.com> <1507@nazgul.UUCP> <1992Nov29.002658.16405@lucid.com> <1524@nazgul.UUCP> <1992Dec9.103811.28262@alf.uib.no>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pilchuck!fnx!nazgul!bright
From: bright@nazgul.UUCP (Walter Bright)
Newsgroups: comp.std.c++
Subject: Re: wchar_t as a basic type
Keywords: wchar_t
Message-ID: <1534@nazgul.UUCP>
Date: 22 Dec 92 08:53:37 GMT
References: <1992Nov10.092148.430@leland.Stanford.EDU> <1992Nov14.200111.14262@sophists.com> <1507@nazgul.UUCP> <1992Nov29.002658.16405@lucid.com> <1524@nazgul.UUCP> <1992Dec9.103811.28262@alf.uib.no>
Reply-To: bright@nazgul.UUCP (Walter Bright)
Organization: Zortech, Seattle
Lines: 12