Path: utzoo!mnetor!uunet!husc6!cca!alex From: alex@cca.CCA.COM (Alexis Layton) Newsgroups: comp.lang.c++ Subject: ``Character'' constants in C++. Message-ID: <26270@cca.CCA.COM> Date: 29 Mar 88 17:03:28 GMT Reply-To: alex@CCA.CCA.COM (Alexis Layton) Organization: Computer Corp. of America, Cambridge, MA Lines: 15 Why are ' ', '\n'', etc., defined as integer constants in C++, rather than as character constants which get widened to integer when necessary? This would make cout << ' ' possible, would it not? It would be possible to declare 'xx' to be a short constant and 'yyyy' to be a long constant for those programs which really use multi-character constants. Am I missing an obvious short-comming with this approach? Curiously, Alexis Layton alex@CCA.CCA.COM {decvax,cbosgd,linus}!cca!alex