Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!linus!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.lang.c Subject: Re: Uses of Short Message-ID: <2777@sun.uucp> Date: Tue, 10-Sep-85 20:40:34 EDT Article-I.D.: sun.2777 Posted: Tue Sep 10 20:40:34 1985 Date-Received: Thu, 12-Sep-85 23:15:22 EDT References: <1388@brl-tgr.ARPA> Organization: Sun Microsystems, Inc. Lines: 15 > `What are the stimuli that would provoke Guy to respond by typing `short' > at the C compiler?' How about an array of 10000 counters, each one of which won't ever get over 10000. Perfect opportunity for "short" on any machine, especially machines like mine which has 32-bit "int"s. "short" is also useful for declaring members of a structure which is defined by some agency other than the coder (like the hardware designer, in the case of a device register, or like another program). Then again, if the data structure is to be exported to other machines, the agency in question may want to define it using some language other than C, since you have to specify byte order, padding between/alignment of members, etc., etc.. Guy Harris