Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: =?UTF-8?b?xLVlc3M=?= stone Newsgroups: comp.lang.java.programmer Subject: Re: Bytes [Was: Re: Driving 7-Segment LEDs on Raspberry Pi] Date: Wed, 22 Oct 2014 10:49:53 +0000 (UTC) Organization: A noiseless patient Spider Lines: 19 Message-ID: References: <6c324a98-b16e-4904-b014-c53fd799cb1b@googlegroups.com> NNTP-Posting-Host: lQA7rOFasboES0+IO4savg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Forte Agent 6.00/32.1186 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:30154 In article slrnm4ep45.fp3.avl@login.logic.tuwien.ac.at, Andreas Leitgeb said... > ĵess stone wrote: >> The problem is mainly the interaction with that and the signedness of >> bytes. So you end up with binary 11001001 turning into >> 10000000000000000000000001001001 [...] > > [calls me a liar] No! None of the nasty things that you have said or implied about me are at all true. > The problem with propagation is mostly a cosmetic one, namely that you > casually need some extra casts: > > byte a = 1, b = 2, c; c = (byte)(a + b); That doesn't help either.