X-Received: by 10.236.13.36 with SMTP id a24mr2475395yha.50.1390853060040; Mon, 27 Jan 2014 12:04:20 -0800 (PST) X-Received: by 10.50.124.225 with SMTP id ml1mr183573igb.0.1390853059769; Mon, 27 Jan 2014 12:04:19 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!f11no7449307qae.1!news-out.google.com!wo6ni13igb.0!nntp.google.com!uq10no4551543igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Mon, 27 Jan 2014 12:04:19 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.76.32.212; posting-account=_7xgmwoAAADi7iXKBO-oX5zbCfSzsCV0 NNTP-Posting-Host: 130.76.32.212 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: The Assignment Principle From: FredK Injection-Date: Mon, 27 Jan 2014 20:04:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1907 X-Received-Body-CRC: 361507873 Xref: csiph.com comp.lang.java.programmer:27409 On Sunday, January 26, 2014 2:27:13 PM UTC-8, markspace wrote: > On 1/26/2014 12:17 PM, Stefan Ram wrote: > > > Also, it is > > > about values and not expressions, so that > > > > > > v = java.lang.Math.random(); > > > > > > Well, most often it is about expressions: > > > > a = 2; > > b = 1; > > v = a * a + b; > > System.out.println( v == 5 ); > > > > Had darn well better print 'true'; > > I don't think this fits the definition. "5" is not the assigned value. The test should be v == (a * a + b) Consider double a = 2.3; double b = 1.1; double c = a + b; Then the test c == 3.4 may or may not be true. However, the test c == (a+b) should be true. -- Fred K (snip)