Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Java puzzler Date: Wed, 11 May 2011 09:07:21 -0400 Organization: albasani.net Lines: 40 Message-ID: References: <871987d9-1034-441d-9d33-b2dd6b4de234@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net 3PpFgmDjTxU7lkwY3cL0EMj6Rnh3I2yXcy9x5DRx+0+n2rgKFQB0sjtTGFnrBV8wYyMor6/HnvHx3qku0Zu4336dlQOz7Tmq9MI6dA7z/6VUcY3n+ZzqpRnbFP2TunS+ NNTP-Posting-Date: Wed, 11 May 2011 13:07:20 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="Z8uBbjJqTTkhNn+FwsKtkkq6Bikip/flYAu7rd2lywT2Rdt4zjOaVYr9N8NVgDzR9crKdjHt/iIe5GyNqOUF4GtArEbLSO0l0M1Wqpl34qJIwMBS94Vi2PhEXUXYExEV"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:ehVBeeRalK6VcIB2ytcC0hlS3KA= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3970 On 05/11/2011 06:03 AM, Roedy Green wrote: > On Tue, 10 May 2011 16:36:39 -0700 (PDT), Gábor Bakos > wrote, quoted or indirectly quoted someone who > said : > >> int x = 0; >> x += 0.5; > > If it is not illegal syntax, it should be. One of the language lawyers Utter nonsense. And you presume to give advice to Java programmers? > like Lew or Patricia will likely do a Delphi-style oracle reading on > the JLS and tell you what it is supposed to do. If it is not what it > is doing, prepare an SSCCE and submit the bug. > > See http://mindprod.com/jgloss/sscce.html > http://mindprod.com/jgloss/bug.html I already prepared an SSCCE half a day prior to your post, which youy apparently did not notice. The OP already cited relevant sections of the JLS, which you apparently did not notice. Is there something wrong with being well-educated on the rules of the Java language when programming Java code, as you snarkily imply? There is no bug to submit, so that was useless advice. The OP hasn't even explained what they dream a problem to be, which you apparently did not notice. You are doing a HUGE disservice to newbies by indicating that it is not good to be intimately familiar with the programming rules by which one is working. I thought you were all about helping the programmer, but apparently not. You should stop preaching the virtues of ignorance, Roedy. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg