Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27409
| 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 | <lc4243$fqg$1@dont-email.me> |
| 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 | <assignment-principle-20140126210852@ram.dialup.fu-berlin.de> <lc4243$fqg$1@dont-email.me> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <e606479e-df8b-4a48-a4ae-8eb24fbdff71@googlegroups.com> (permalink) |
| Subject | Re: The Assignment Principle |
| From | FredK <fred.l.kleinschmidt@gmail.com> |
| 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 |
Show key headers only | View raw
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)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: The Assignment Principle markspace <markspace@nospam.nospam> - 2014-01-26 14:27 -0800
Re: The Assignment Principle Robert Klemme <shortcutter@googlemail.com> - 2014-01-27 18:50 +0100
Re: The Assignment Principle markspace <markspace@nospam.nospam> - 2014-01-27 13:33 -0800
Re: The Assignment Principle Robert Klemme <shortcutter@googlemail.com> - 2014-01-29 06:10 -0800
Re: The Assignment Principle Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2014-01-29 16:24 +0200
Re: The Assignment Principle FredK <fred.l.kleinschmidt@gmail.com> - 2014-01-27 12:04 -0800
csiph-web