123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|729|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Java Integer Baffler

Tue, 24 May 2011, 05:19
JL235
it’s kinda typical that doing something this dangerous in Java still requires at least half a page of code: Linkage
Tue, 24 May 2011, 05:19
steve_ancell
Crickey! I never knew Java could do such damage. Thanx for the info Bud
Wed, 25 May 2011, 08:23
Scherererer
LOL! This is great. I'm going to have to sneak this bit into someone's project just to see how insane s/he goes.

-=-=-
YouTube Twitter
Computer Science Series: Logic (pt1) (part 2) (part 3) 2's Complement Mathematics: Basic Differential Calculus
Wed, 25 May 2011, 09:01
JL235
Another Java quirk is that because Java strings support unicode, you can embed unicode in Java source and they are correctly parsed into their unicode characters.

This means writing...

... is actually compiled as ...

... because \u000a is a line feed. However all editors will display it as a 1 line comment, making this very hard to spot. I believe that's from Java puzzlers (which also includes lots of other tid-bits like this).