From owner-freebsd-hackers Fri Aug 10 7:46:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from safety.net (ns3.safety.net [216.200.162.38]) by hub.freebsd.org (Postfix) with ESMTP id 8A8AC37B401 for ; Fri, 10 Aug 2001 07:46:18 -0700 (PDT) (envelope-from les@safety.net) Received: (from les@localhost) by safety.net (8.9.3/8.9.3) id HAA99867; Fri, 10 Aug 2001 07:46:17 -0700 (MST) (envelope-from les) From: Les Biffle Message-Id: <200108101446.HAA99867@safety.net> Subject: Re: the =+ operator In-Reply-To: <3B73F0BC.548D40B3@home.com> from Rob at "Aug 10, 2001 07:33:32 am" To: europax@home.com (Rob) Date: Fri, 10 Aug 2001 07:46:16 -0700 (MST) Cc: hackers@FreeBSD.ORG (hackers@FreeBSD.ORG) Reply-To: les@safety.net X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > My first post on hackers, so please don't flame me too bad :) I think > that only an old hacker can give me the answer :) > > I've searched far and wide on search engines to find out what the =+ > operator does, to no avail. I'm porting some old code and found it. I ran into this a couple of times, and it was always a typo by the programmer. Whether they meant to use "+=" or not wasn't always clear. In C, you should imagine reading the code with all of the non-quoted white space removed to see how the compiler will treat something, so "a =+ 1;" is the same as "a=+1;" or "a = +1;" There has never been an operator =+, even checking back to the BCPL days. So, read the code carefully to see if you can figure out if they meant += Regards, -Les -- Les Biffle Community Service... Just Say NO! (480) 585-4099 les@safety.net http://www.les.safety.net/ Network Safety Corp., 5831 E. Dynamite Blvd., Cave Creek, AZ 85331 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message