Newsgroups: alt.lang.design,comp.lang.c++,comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!nntp.club.cc.cmu.edu!newsfeed.pitt.edu!gatech!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!fnnews.fnal.gov!gw1.att.com!nntpa!nntpa.cb.att.com!lgm
From: lgm@polaris.ih.att.com (Lawrence G. Mayka)
Subject: Re: Comparing productivity: LisP against C++ (was Re: Reference Counting)
In-Reply-To: nmein@bifrost.otago.ac.nz's message of 5 Jan 1995 01:03:37 GMT
Message-ID: <LGM.95Jan5080255@polaris.ih.att.com>
Sender: news@nntpa.cb.att.com (Netnews Administration)
Nntp-Posting-Host: polaris.ih.att.com
Organization: AT&T Bell Laboratories, Naperville, Illinois, USA
References: <19941203T221402Z.enag@naggum.no> <3danhm$fqi@xmission.xmission.com>
	<3dc3ur$fsc@wariat.wariat.org> <3dd145$gnl@xmission
	<19950104.155848.591924.NETNEWS@UICVM.UIC.EDU>
	<3efgh9$icq@celebrian.otago.ac.nz>
Date: Thu, 5 Jan 1995 14:02:55 GMT
Lines: 25
Xref: glinda.oz.cs.cmu.edu comp.lang.c++:105990 comp.lang.lisp:16271

In article <3efgh9$icq@celebrian.otago.ac.nz> nmein@bifrost.otago.ac.nz (Nick Mein) writes:

   David Hanley (dhanley@matisse.eecs.uic.edu) wrote:
   : Fergus Henderson (fjh@munta.cs.mu.OZ.AU) wrote:

   : :  It quite simply does not make
   : : sense to "add" two characters together.

   :         Granted, adding 'a' to 'a' does not make too much sense.  

   Although subtracting one character from another is perfectly sensible:

   char x;
   //...
   if (('a' <= x) && (x <= 'z'))
      x += 'A' - 'a';

This is an excellent example of needlessly nonportable bit-twiddling.
The standard library routine to do this in C is toupper().
--
        Lawrence G. Mayka
        AT&T Bell Laboratories
        lgm@ieain.att.com

Standard disclaimer.
