Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!pikes!mercury.cair.du.edu!diana.cair.du.edu!rwelch From: rwelch@diana.cair.du.edu (RANDY S WELCH) Newsgroups: comp.lang.c Subject: Re: structure assignment, why you would want to do it Message-ID: <1990Aug27.050123.15481@mercury.cair.du.edu> Date: 27 Aug 90 05:01:23 GMT References: <1081.26d26274@desire.wright.edu> <352@saxony.pa.reuter.COM> <3615@goanna.cs.rmit.oz.au> <1096.26d52ea3@desire.wright.edu> Sender: news@mercury.cair.du.edu (netnews) Organization: University of Denver Lines: 17 In-Reply-To: demon@desire.wright.edu's message of 24 Aug 90 18:41:55 GMT In article <1096.26d52ea3@desire.wright.edu> demon@desire.wright.edu writes: [ lots of stuff deleted] Thanx! Everyone wondered why I asked it. If you are doing transformations/similar math stuff or (like I'm doing) vehicle position updates for a military simulation, you'd like to be able to say pres_location += current_move; C++ lets you do things like this with structures. Granted you have to define the +=, etc operation for it... -- Randy Welch Mail to : ...!ncar!scicom!bldr!randy or rwelch@du.edu Boulder, CO VOICE : 303-442-6717 "Unfortunately, life contains an unavoidable element of unpredictability" -David Lynch "The Angriest Dog in the World"