Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #31839
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: elementary loops |
| Date | Mon, 22 Jun 2015 13:35:10 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 21 |
| Message-ID | <mm9gtv$3mb$1@dont-email.me> (permalink) |
| References | <loops-20150622181350@ram.dialup.fu-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 22 Jun 2015 17:33:51 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="858a9d65d95f4ea4d355bd116aa2cdbf"; logging-data="3787"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kD20hEjwTvjMK/9Z/ZnRt" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
| In-Reply-To | <loops-20150622181350@ram.dialup.fu-berlin.de> |
| Cancel-Lock | sha1:Wi9kR1mHjRPgDuu5En96sMGbXoM= |
| Xref | csiph.com comp.lang.java.programmer:31839 |
Show key headers only | View raw
On 6/22/2015 12:15 PM, Stefan Ram wrote:
> public class Main
> { public static void main( final java.lang.String[] args )
> { short i = -1;
> int j = -1;
> for( int k = 0; k < 65; ++k ){ i >>>= 1; j <<= 32; }
> java.lang.System.out.println( i );
> java.lang.System.out.println( j ); }}
>
> I hope you can all predict what this prints and explain why.
It prints "Rejected by code review," and the explanation
is "Because it's badly formatted, and silly to boot."
In the actual code, are there any clues as to what the author
intended to accomplish? I'd be interested in any explanation,
even if it's largely speculative.
--
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Re: elementary loops Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-06-22 13:35 -0400
Re: elementary loops v_borchert@despammed.com (Volker Borchert) - 2015-06-22 19:17 +0000
Re: elementary loops Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-06-22 16:15 -0400
Re: elementary loops Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-06-22 16:28 -0400
Re: elementary loops Arne Vajhøj <arne@vajhoej.dk> - 2015-06-28 20:09 -0400
csiph-web