Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Gavino" Newsgroups: comp.lang.java.programmer Subject: Re: Curious compiler warning Date: Wed, 11 Jan 2012 20:05:25 +0100 Lines: 21 Message-ID: <9n64rgF40bU1@mid.individual.net> References: X-Trace: individual.net QGRs32FSw5BEmyZmg5ZJlgwOx7uRcFsDyagGqMIrvFShoKV6lx Cancel-Lock: sha1:sntFpUJ1CNzTt1qJC9TB2x+CVUM= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11236 "Roedy Green" wrote in message news:dnlqg711uq7njg5bi19fhu76cc6ploibb9@4ax.com... > On Wed, 11 Jan 2012 04:55:00 +0000 (UTC), Novice > wrote, quoted or indirectly quoted someone who said : > > >I'm just wondering why the compiler is so offended by "start--".... > > The compiler worries when you compute something and don't use the > result. If you had said bar( --start ) it would be happy since > the incremented start is passed to bar. No. This would produce the same warning. It's nothing to do with not using the result - in the original example, the result *was* used. It's simply that assigning to a method parameter value is considered 'bad style', that's all.