Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site reed.UUCP
Path: utzoo!linus!philabs!prls!amdimage!amdcad!amd!pesnta!hplabs!tektronix!reed!bart
From: bart@reed.UUCP (Bart Massey)
Newsgroups: net.misc
Subject: Re: Bizarre Code
Message-ID: <1800@reed.UUCP>
Date: Wed, 14-Aug-85 13:49:09 EDT
Article-I.D.: reed.1800
Posted: Wed Aug 14 13:49:09 1985
Date-Received: Tue, 20-Aug-85 03:15:35 EDT
References: <462@moncol.UUCP>
Organization: Reed College, Portland, Oregon
Lines: 31

> What is the most bizarre line/piece of code you have seen in a production
> program?
> 
> My favorite (in BASIC) is:
> 
> 		X = N & -1
> 
> which is the equivalent of:
> 
> 		X = INT(N)
> 
> 
> I know there must be some better(?) ones out there. Let's see em'.

So name five lines of BASIC you COULDN'T call bizarre!  I've seen
an official 'ls' source ( I don't remember which version of UN*X )
which says

	int i,j;

	....

	i = j << 0;

or some such.  The '<< 0' motif is was repeated several times throughout
the code...

					Bart Massey
					..tektronix!reed!bart

"I want to speak to Dr... uh..."