home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!torn!cunews!nrcnet0!bnrgate!bwdls58!brtph316!chrisf
- From: chrisf@brtph316.bnr.ca (Chris Fulmer)
- Newsgroups: comp.lang.c++
- Subject: Re: ||= and &&= operators
- Message-ID: <15063@bwdls58.bnr.ca>
- Date: 24 Jul 92 15:05:58 GMT
- References: <2044@devnull.mpd.tandem.com> <1992Jul12.002723.10300@ucc.su.OZ.AU> <DAVEG.92Jul16005618@synaptx.synaptics.com>
- Sender: news@bwdls58.bnr.ca
- Reply-To: woodstock!chris@mcnc.org
- Distribution: world
- Organization: BNR Dept 3B91, RTP
- Lines: 16
-
- I know I'll get flamed for this because my solution isn't exact, but
- what about:
-
- &&= -> *=
- and
- ||= -> +=
-
- Like I said, it isn't exact, but if you're just dealing with boolean
- conditions and you don't care about the short-circuiting, you should
- be fine.
-
- (Yeah, there are other problems: -1 is TRUE, overflows, etc...)
-
- --
- Chris
-
-