Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!pyramid!hplabs!gatech!emory!platt From: platt@emory.uucp (Dan Platt) Newsgroups: comp.sys.mac Subject: LSC bug(s) Message-ID: <2274@emory.uucp> Date: Mon, 12-Oct-87 19:47:41 EDT Article-I.D.: emory.2274 Posted: Mon Oct 12 19:47:41 1987 Date-Received: Wed, 14-Oct-87 06:05:49 EDT Reply-To: platt@emory.UUCP (Dan Platt) Organization: Math & Computer Science, Emory University, Atlanta Lines: 39 ------------------------------------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ choke on this lineater. ------------------------------------------------------------------- ------------------------------------------------------------------- I've detected a condition where code generated by the lightspeed C compiler causes a system crash. This code is generated by a simple and innocuous piece of code: walker.x=(r=rmax+rjump)*cos(theta=2*pi*rndm()); Pulling the two assignments out of the above statement: theta=2*pi*rndm(); r=rmax+rjump; walker.x=r*cos(theta); produces code which doesn't cause the system to crash (make a little bomb dialog box). Declarations are of the form double rndm(); double r,rmax,rjump,theta; #define pi 3.14159265358979 struct { double x,y} walker; rndm() returns a random number between 0 and 1 using the Random() function from quickdraw. Another thing I noticed is that programs generated by LSC don't seem to work well with Juggler. Any idea of whether and when these are expected to be fixed would be appreciated. Dan